From f8cb7ca797541973ced643cdc7ab4f8bf9c471fa Mon Sep 17 00:00:00 2001 From: Furcy Pin Date: Wed, 26 Aug 2015 16:41:00 +0200 Subject: [PATCH] optimizing CachingParser --- src/main/java/ua_parser/Parser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ua_parser/Parser.java b/src/main/java/ua_parser/Parser.java index cffbab3..3e27257 100644 --- a/src/main/java/ua_parser/Parser.java +++ b/src/main/java/ua_parser/Parser.java @@ -45,8 +45,8 @@ public Parser(InputStream regexYaml) { } public Client parse(String agentString) { - UserAgent ua = parseUserAgent(agentString); - OS os = parseOS(agentString); + UserAgent ua = uaParser.parse(agentString); + OS os = osParser.parse(agentString); Device device = deviceParser.parse(agentString); return new Client(ua, os, device); }