diff --git a/core/src/endorsed/nanoxml/org/jnode/nanoxml/XMLElement.java b/core/src/endorsed/nanoxml/org/jnode/nanoxml/XMLElement.java index de83ba3f12..a83056240a 100644 --- a/core/src/endorsed/nanoxml/org/jnode/nanoxml/XMLElement.java +++ b/core/src/endorsed/nanoxml/org/jnode/nanoxml/XMLElement.java @@ -1713,7 +1713,7 @@ public void parseString(String string) this.parseFromReader(new StringReader(string), /*startingLineNr*/ 1); } catch (IOException e) { - // Java exception handling suxx + throw new AssertionError("StringReader should not throw IOException", e); } } @@ -1821,7 +1821,7 @@ public void parseString(String string, try { this.parseFromReader(new StringReader(string), startingLineNr); } catch (IOException e) { - // Java exception handling suxx + throw new AssertionError("StringReader should not throw IOException", e); } } @@ -2301,6 +2301,7 @@ protected char scanWhitespace(StringBuffer result) case '\t': case '\n': result.append(ch); + break; case '\r': break; default: