Permalink
Browse files

Changing some fields to final since we don't modify them.

  • Loading branch information...
1 parent 9360ccc commit 5c4978843c7a043e27951e77548434d167fc2d79 @jvshahid jvshahid committed Oct 24, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 ext/java/nokogiri/internals/NokogiriHandler.java
@@ -73,11 +73,11 @@
* TODO: should these be stored in the document 'errors' array?
* Currently only string messages are stored there.
*/
- private LinkedList<XmlSyntaxError> errors = new LinkedList<XmlSyntaxError>();
-
+ private final LinkedList<XmlSyntaxError> errors = new LinkedList<XmlSyntaxError>();
+
private Locator locator;
- private ArrayDeque<Integer> lines;
- private ArrayDeque<Integer> columns;
+ private final ArrayDeque<Integer> lines;
+ private final ArrayDeque<Integer> columns;
private static String htmlParserName = "Nokogiri::HTML::SAX::Parser";
private boolean needEmptyAttrCheck = false;
@@ -106,6 +106,7 @@ public void startDocument() throws SAXException {
call("start_document");
}
+ @Override
public void xmlDecl(String version, String encoding, String standalone) {
call("xmldecl", stringOrNil(ruby, version),
stringOrNil(ruby, encoding),

0 comments on commit 5c49788

Please sign in to comment.