You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/03/14 15:08:51 UTC
[camel] 04/04: Fixed compiler warning
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 1a1ba5acd9785a7b165854576b8a25a0c67e4f37
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Mar 14 16:08:22 2020 +0100
Fixed compiler warning
---
core/camel-xml-io/src/main/java/org/apache/camel/xml/io/MXParser.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/camel-xml-io/src/main/java/org/apache/camel/xml/io/MXParser.java b/core/camel-xml-io/src/main/java/org/apache/camel/xml/io/MXParser.java
index c71ceab..ca0c13f 100644
--- a/core/camel-xml-io/src/main/java/org/apache/camel/xml/io/MXParser.java
+++ b/core/camel-xml-io/src/main/java/org/apache/camel/xml/io/MXParser.java
@@ -2528,11 +2528,11 @@ public class MXParser implements XmlPullParser {
if (ch == 'y') {
ch = requireInput(ch, YES);
// Boolean standalone = new Boolean(true);
- xmlDeclStandalone = new Boolean(true);
+ xmlDeclStandalone = Boolean.TRUE;
} else if (ch == 'n') {
ch = requireInput(ch, NO);
// Boolean standalone = new Boolean(false);
- xmlDeclStandalone = new Boolean(false);
+ xmlDeclStandalone = Boolean.FALSE;
} else {
throw new XmlPullParserException("expected 'yes' or 'no' after standalone and not " + printable(ch), this, null);
}