sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1499399 - in /sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util: logging/MonolineFormatter.java resources/IndexedResourceBundle.java
Date Wed, 03 Jul 2013 13:44:54 GMT
Author: desruisseaux
Date: Wed Jul  3 13:44:54 2013
New Revision: 1499399

URL: http://svn.apache.org/r1499399
Log:
Added a check for null argument, and trivial javadoc fix.

Modified:
    sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/logging/MonolineFormatter.java
    sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/resources/IndexedResourceBundle.java

Modified: sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/logging/MonolineFormatter.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/logging/MonolineFormatter.java?rev=1499399&r1=1499398&r2=1499399&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/logging/MonolineFormatter.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/logging/MonolineFormatter.java
[UTF-8] Wed Jul  3 13:44:54 2013
@@ -33,6 +33,7 @@ import org.apache.sis.internal.system.OS
 import org.apache.sis.internal.util.X364;
 import org.apache.sis.io.IO;
 import org.apache.sis.io.LineAppender;
+import org.apache.sis.util.ArgumentChecks;
 import org.apache.sis.util.CharSequences;
 import org.apache.sis.util.Configuration;
 import org.apache.sis.util.ThreadSafe;
@@ -856,6 +857,7 @@ loop:   for (int i=0; ; i++) {
     @Debug
     @Configuration
     public static MonolineFormatter install(final Logger logger, final Level level) throws
SecurityException {
+        ArgumentChecks.ensureNonNull("logger", logger);
         MonolineFormatter monoline = null;
         for (final Handler handler : logger.getHandlers()) {
             if (handler instanceof ConsoleHandler) {

Modified: sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/resources/IndexedResourceBundle.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/resources/IndexedResourceBundle.java?rev=1499399&r1=1499398&r2=1499399&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/resources/IndexedResourceBundle.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/resources/IndexedResourceBundle.java
[UTF-8] Wed Jul  3 13:44:54 2013
@@ -245,7 +245,7 @@ public class IndexedResourceBundle exten
                 /*
                  * If there is no explicit resources for this instance, inherit the resources
                  * from the parent. Note that this IndexedResourceBundle instance may still
-                 * differ from its parent in the way date and numbers are formatted.
+                 * differ from its parent in the way dates and numbers are formatted.
                  */
                 if (resources == null) {
                     // If we get a NullPointerException or ClassCastException here,



Mime
View raw message