jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [1/3] jena git commit: Always set the error handler to something non-null.
Date Mon, 20 Jun 2016 08:34:27 GMT
Repository: jena
Updated Branches:
  refs/heads/master e1bb3c967 -> 646c910fd


Always set the error handler to something non-null.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/b43dfcfb
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/b43dfcfb
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/b43dfcfb

Branch: refs/heads/master
Commit: b43dfcfb1132deecf0b3e8ff12362ae0700505f9
Parents: e1bb3c9
Author: Andy Seaborne <andy@apache.org>
Authored: Fri Jun 17 09:49:48 2016 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Fri Jun 17 09:49:48 2016 +0100

----------------------------------------------------------------------
 jena-cmds/src/main/java/riotcmd/CmdLangParse.java | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/b43dfcfb/jena-cmds/src/main/java/riotcmd/CmdLangParse.java
----------------------------------------------------------------------
diff --git a/jena-cmds/src/main/java/riotcmd/CmdLangParse.java b/jena-cmds/src/main/java/riotcmd/CmdLangParse.java
index 080edd7..67571d8 100644
--- a/jena-cmds/src/main/java/riotcmd/CmdLangParse.java
+++ b/jena-cmds/src/main/java/riotcmd/CmdLangParse.java
@@ -213,9 +213,8 @@ public abstract class CmdLangParse extends CmdGeneral
         if ( modLangParse.explicitChecking() )  checking = true ;
         if ( modLangParse.explicitNoChecking() ) checking = false ;
         
-        ErrorHandler errHandler = null ;
-        if ( checking )
-        {
+        ErrorHandler errHandler = ErrorHandlerFactory.errorHandlerWarn ;
+        if ( checking ) {
             if ( modLangParse.stopOnBadTerm() )
                 errHandler = ErrorHandlerFactory.errorHandlerStd  ;
             else
@@ -223,8 +222,7 @@ public abstract class CmdLangParse extends CmdGeneral
                 errHandler = ErrorHandlerFactory.errorHandlerWarn ;
         }
         
-        if ( modLangParse.skipOnBadTerm() )
-        {
+        if ( modLangParse.skipOnBadTerm() ) {
             // TODO skipOnBadterm
         }
         
@@ -240,10 +238,8 @@ public abstract class CmdLangParse extends CmdGeneral
         // If multiple files, choose the overall labels. 
         if ( langHandlerOverall == null )
             langHandlerOverall = handler ;
-        else
-        {
-            if ( langHandlerOverall != langHandlerAny )
-            {
+        else {
+            if ( langHandlerOverall != langHandlerAny ) {
                 if ( langHandlerOverall != handler )
                     langHandlerOverall = langHandlerAny ;
             }


Mime
View raw message