harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r1001751 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java
Date Mon, 27 Sep 2010 14:13:29 GMT
Author: tellison
Date: Mon Sep 27 14:13:29 2010
New Revision: 1001751

URL: http://svn.apache.org/viewvc?rev=1001751&view=rev
Log:
Suppress compiler warnings.  Minor weak to use char append rather than string. 

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java?rev=1001751&r1=1001750&r2=1001751&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java
Mon Sep 27 14:13:29 2010
@@ -59,11 +59,12 @@ public class IllegalFormatFlagsException
      * @return the message string of the IllegalFormatFlagsException.
      */
     @Override
+    @SuppressWarnings("nls")
     public String getMessage() {
         StringBuilder buffer = new StringBuilder();
         buffer.append("Flags = '");
         buffer.append(flags);
-        buffer.append("'");
+        buffer.append('\'');
         return buffer.toString();
     }
 



Mime
View raw message