commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1453042 - /commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/FileItemHeadersImpl.java
Date Tue, 05 Mar 2013 22:17:54 GMT
Author: simonetripodi
Date: Tue Mar  5 22:17:53 2013
New Revision: 1453042

URL: http://svn.apache.org/r1453042
Log:
trivial: getHeaders(String) has now just one return statement, muted Generics warning

Modified:
    commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/FileItemHeadersImpl.java

Modified: commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/FileItemHeadersImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/FileItemHeadersImpl.java?rev=1453042&r1=1453041&r2=1453042&view=diff
==============================================================================
--- commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/FileItemHeadersImpl.java
(original)
+++ commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/FileItemHeadersImpl.java
Tue Mar  5 22:17:53 2013
@@ -58,7 +58,7 @@ public class FileItemHeadersImpl impleme
         String nameLower = name.toLowerCase();
         List<String> headerValueList = headerNameToValueListMap.get(nameLower);
         if (null == headerValueList) {
-            return Collections.EMPTY_LIST.iterator();
+            headerValueList = Collections.emptyList();
         }
         return headerValueList.iterator();
     }



Mime
View raw message