You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2007/11/27 13:57:34 UTC
svn commit: r598623 [2/2] -
/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/
Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatCodePointException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatCodePointException.java?rev=598623&r1=598622&r2=598623&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatCodePointException.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatCodePointException.java Tue Nov 27 04:57:31 2007
@@ -24,44 +24,45 @@
* Formatter.
*/
public class IllegalFormatCodePointException extends IllegalFormatException
- implements Serializable {
- private static final long serialVersionUID = 19080630L;
+ implements Serializable {
- private int c;
+ private static final long serialVersionUID = 19080630L;
- /**
- * Constructs an IllegalFormatCodePointException which is specified by the
- * invalid Unicode code point.
- *
- * @param c
- * The invalid Unicode code point.
- */
- public IllegalFormatCodePointException(int c) {
- this.c = c;
- }
+ private int c;
- /**
- * Return the invalid Unicode code point.
- *
- * @return The invalid Unicode code point.
- */
- public int getCodePoint() {
- return c;
- }
+ /**
+ * Constructs an IllegalFormatCodePointException which is specified by the
+ * invalid Unicode code point.
+ *
+ * @param c
+ * The invalid Unicode code point.
+ */
+ public IllegalFormatCodePointException(int c) {
+ this.c = c;
+ }
- /**
- * Return the message string of the IllegalFormatCodePointException.
- *
- * @return The message string of the IllegalFormatCodePointException.
- */
- @Override
+ /**
+ * Return the invalid Unicode code point.
+ *
+ * @return The invalid Unicode code point.
+ */
+ public int getCodePoint() {
+ return c;
+ }
+
+ /**
+ * Return the message string of the IllegalFormatCodePointException.
+ *
+ * @return The message string of the IllegalFormatCodePointException.
+ */
+ @Override
public String getMessage() {
- StringBuilder buffer = new StringBuilder();
- buffer.append("Code point is ");
- char[] chars = Character.toChars(c);
- for (int i = 0; i < chars.length; i++) {
- buffer.append(chars[i]);
- }
- return buffer.toString();
- }
+ StringBuilder buffer = new StringBuilder();
+ buffer.append("Code point is ");
+ char[] chars = Character.toChars(c);
+ for (int i = 0; i < chars.length; i++) {
+ buffer.append(chars[i]);
+ }
+ return buffer.toString();
+ }
}