From: Andrej Mak Date: Tue, 11 Oct 2016 07:38:03 +0000 (+0200) Subject: Bug 6918: Edit ErrorSeverity and ErrorType from() method to accept lowercase strings X-Git-Tag: release/carbon~442 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=6bb1a37255485563920628a00367c2e56b1fedc4 Bug 6918: Edit ErrorSeverity and ErrorType from() method to accept lowercase strings Change-Id: Ifbf4e3447ccd65bf476df3477e63c95748d52493 Signed-off-by: Andrej Mak --- diff --git a/opendaylight/config/config-util/src/main/java/org/opendaylight/controller/config/util/xml/DocumentedException.java b/opendaylight/config/config-util/src/main/java/org/opendaylight/controller/config/util/xml/DocumentedException.java index 09b82f1a96..736a4fc035 100644 --- a/opendaylight/config/config-util/src/main/java/org/opendaylight/controller/config/util/xml/DocumentedException.java +++ b/opendaylight/config/config-util/src/main/java/org/opendaylight/controller/config/util/xml/DocumentedException.java @@ -71,7 +71,7 @@ public class DocumentedException extends Exception { public static ErrorType from( String text ) { try { - return valueOf( text ); + return valueOf( text.toUpperCase() ); } catch( Exception e ) { return APPLICATION; @@ -131,7 +131,7 @@ public class DocumentedException extends Exception { public static ErrorSeverity from( String text ) { try { - return valueOf( text ); + return valueOf( text.toUpperCase() ); } catch( Exception e ) { return ERROR;