@@ -61,9 +61,9 @@ public static UserAgentParser parse(final Reader input, final Collection<BrowsCa
61
61
private UserAgentParser parse (final Reader input ) throws IOException , ParseException {
62
62
63
63
final List <Rule > rules = new ArrayList <>();
64
- CSVFormat format = CSVFormat .DEFAULT .withSkipHeaderRecord ();
64
+ final CSVFormat format = CSVFormat .DEFAULT .withSkipHeaderRecord ();
65
65
try (CSVParser records = format .parse (input )) {
66
- for (CSVRecord record : records ) {
66
+ for (final CSVRecord record : records ) {
67
67
final Rule rule = getRule (record );
68
68
if (rule != null ) {
69
69
rules .add (rule );
@@ -113,7 +113,7 @@ private static String normalizePattern(final String pattern) {
113
113
return lowerCase ;
114
114
}
115
115
116
- private Map <BrowsCapField , String > getBrowsCapFields (CSVRecord record ) {
116
+ private Map <BrowsCapField , String > getBrowsCapFields (final CSVRecord record ) {
117
117
final Map <BrowsCapField , String > values = new EnumMap <>(BrowsCapField .class );
118
118
for (final BrowsCapField field : myFields ) {
119
119
values .put (field , getValue (record .get (field .getIndex ())));
@@ -193,7 +193,7 @@ Rule createRule(final String pattern, final Capabilities capabilities) {
193
193
return new Rule (prefix , suffixArray , postfix , pattern , capabilities );
194
194
}
195
195
196
- private Rule getWildCardRule () {
196
+ private Rule getWildCardRule () {
197
197
// The default match all pattern
198
198
final Map <BrowsCapField , String > fieldValues = new EnumMap <>(BrowsCapField .class );
199
199
for (final BrowsCapField field : myFields ) {
0 commit comments