logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1395145 - /logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java
Date Sat, 06 Oct 2012 18:30:23 GMT
Author: ggregory
Date: Sat Oct  6 18:30:23 2012
New Revision: 1395145

URL: http://svn.apache.org/viewvc?rev=1395145&view=rev
Log:
Fix generics warnings.

Modified:
    logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java?rev=1395145&r1=1395144&r2=1395145&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java
(original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java
Sat Oct  6 18:30:23 2012
@@ -399,7 +399,7 @@ public class ParameterizedMessage implem
             return;
         }
 
-        Class oClass = o.getClass();
+        Class<?> oClass = o.getClass();
         if (oClass.isArray()) {
             if (oClass == byte[].class) {
                 str.append(Arrays.toString((byte[]) o));
@@ -446,11 +446,11 @@ public class ParameterizedMessage implem
                 str.append(RECURSION_PREFIX).append(id).append(RECURSION_SUFFIX);
             } else {
                 dejaVu.add(id);
-                Map oMap = (Map) o;
+                Map<?, ?> oMap = (Map<?, ?>) o;
                 str.append("{");
                 boolean isFirst = true;
                 for (Object o1 : oMap.entrySet()) {
-                    Map.Entry current = (Map.Entry) o1;
+                    Map.Entry<?, ?> current = (Map.Entry<?, ?>) o1;
                     if (isFirst) {
                         isFirst = false;
                     } else {
@@ -471,7 +471,7 @@ public class ParameterizedMessage implem
                 str.append(RECURSION_PREFIX).append(id).append(RECURSION_SUFFIX);
             } else {
                 dejaVu.add(id);
-                Collection oCol = (Collection) o;
+                Collection<?> oCol = (Collection<?>) o;
                 str.append("[");
                 boolean isFirst = true;
                 for (Object anOCol : oCol) {



Mime
View raw message