From 6bb1a37255485563920628a00367c2e56b1fedc4 Mon Sep 17 00:00:00 2001 From: Andrej Mak Date: Tue, 11 Oct 2016 09:38:03 +0200 Subject: [PATCH] Bug 6918: Edit ErrorSeverity and ErrorType from() method to accept lowercase strings Change-Id: Ifbf4e3447ccd65bf476df3477e63c95748d52493 Signed-off-by: Andrej Mak --- .../controller/config/util/xml/DocumentedException.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.36.6