sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r904056 - in /sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal: LogManager.java slf4j/LogConfigManager.java
Date Thu, 28 Jan 2010 12:15:54 GMT
Author: cziegeler
Date: Thu Jan 28 12:15:54 2010
New Revision: 904056

URL: http://svn.apache.org/viewvc?rev=904056&view=rev
Log:
Remove code warnings.

Modified:
    sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/LogManager.java
    sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java

Modified: sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/LogManager.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/LogManager.java?rev=904056&r1=904055&r2=904056&view=diff
==============================================================================
--- sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/LogManager.java
(original)
+++ sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/LogManager.java
Thu Jan 28 12:15:54 2010
@@ -233,6 +233,7 @@
             return "LogWriter configurator";
         }
 
+        @SuppressWarnings("unchecked")
         public void updated(String pid, Dictionary configuration)
                 throws ConfigurationException {
             logConfigManager.updateLogWriter(pid, configuration);
@@ -262,6 +263,7 @@
             return "Logger configurator";
         }
 
+        @SuppressWarnings("unchecked")
         public void updated(String pid, Dictionary configuration)
                 throws ConfigurationException {
             logConfigManager.updateLoggerConfiguration(pid, configuration);

Modified: sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java?rev=904056&r1=904055&r2=904056&view=diff
==============================================================================
--- sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java
(original)
+++ sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java
Thu Jan 28 12:15:54 2010
@@ -601,7 +601,7 @@
         Object[] loggersArray;
         if (loggers.getClass().isArray()) {
             loggersArray = (Object[]) loggers;
-        } else if (loggers instanceof Collection) {
+        } else if (loggers instanceof Collection<?>) {
             loggersArray = ((Collection<?>) loggers).toArray();
         } else {
             loggersArray = new Object[] { loggers };



Mime
View raw message