diff options
author | Elliott Hughes <enh@google.com> | 2011-02-17 18:00:29 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-02-17 18:00:29 -0800 |
commit | 6aa068b481cc4cca7765ce90fdf32f3eb2b5a77c (patch) | |
tree | 922222d8b561e98cada975d917cfeed27fde74d3 /xml/src/main/java/org/kxml2 | |
parent | 66e1a782c0ffafcb7c4226798d6ecc4cfc071916 (diff) | |
download | libcore-6aa068b481cc4cca7765ce90fdf32f3eb2b5a77c.zip libcore-6aa068b481cc4cca7765ce90fdf32f3eb2b5a77c.tar.gz libcore-6aa068b481cc4cca7765ce90fdf32f3eb2b5a77c.tar.bz2 |
Fix various FindBugs warnings.
Only the ChunkHandler and ZoneInfo ones were real bugs. The former is only
called with one input value that doesn't exercise the bug, and the latter
would cause us to think that a time zone that stopped using daylight time
before 1970 was still using daylight time (which would defeat various
optimizations, but should otherwise be harmless).
The other stuff is trivia not worth individual changes.
Change-Id: Ib0752560cd16edc6538d1fc2b234451a66d48171
Diffstat (limited to 'xml/src/main/java/org/kxml2')
-rw-r--r-- | xml/src/main/java/org/kxml2/io/KXmlParser.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xml/src/main/java/org/kxml2/io/KXmlParser.java b/xml/src/main/java/org/kxml2/io/KXmlParser.java index 4b4f328..7a2d052 100644 --- a/xml/src/main/java/org/kxml2/io/KXmlParser.java +++ b/xml/src/main/java/org/kxml2/io/KXmlParser.java @@ -38,11 +38,11 @@ import org.xmlpull.v1.XmlPullParserException; */ public class KXmlParser implements XmlPullParser, Closeable { - private final String PROPERTY_XMLDECL_VERSION + private static final String PROPERTY_XMLDECL_VERSION = "http://xmlpull.org/v1/doc/properties.html#xmldecl-version"; - private final String PROPERTY_XMLDECL_STANDALONE + private static final String PROPERTY_XMLDECL_STANDALONE = "http://xmlpull.org/v1/doc/properties.html#xmldecl-standalone"; - private final String PROPERTY_LOCATION = "http://xmlpull.org/v1/doc/properties.html#location"; + private static final String PROPERTY_LOCATION = "http://xmlpull.org/v1/doc/properties.html#location"; private static final String FEATURE_RELAXED = "http://xmlpull.org/v1/doc/features.html#relaxed"; private static final Map<String, String> DEFAULT_ENTITIES = new HashMap<String, String>(); |