commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1456821 - /commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/MimeUtility.java
Date Fri, 15 Mar 2013 09:17:28 GMT
Author: simonetripodi
Date: Fri Mar 15 09:17:28 2013
New Revision: 1456821

URL: http://svn.apache.org/r1456821
Log:
checkstyle: Avoid inline conditionals.

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

Modified: commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/MimeUtility.java
URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/MimeUtility.java?rev=1456821&r1=1456820&r2=1456821&view=diff
==============================================================================
--- commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/MimeUtility.java
(original)
+++ commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/MimeUtility.java
Fri Mar 15 09:17:28 2013
@@ -255,7 +255,10 @@ public final class MimeUtility {
         String mappedCharset = MIME2JAVA.get(charset.toLowerCase(Locale.ENGLISH));
         // if there is no mapping, then the original name is used.  Many of the MIME character
set
         // names map directly back into Java.  The reverse isn't necessarily true.
-        return mappedCharset == null ? charset : mappedCharset;
+        if (mappedCharset == null) {
+            return charset;
+        }
+        return mappedCharset;
     }
 
 }



Mime
View raw message