summaryrefslogtreecommitdiff
path: root/java/lang/Boolean.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/lang/Boolean.java')
-rw-r--r--java/lang/Boolean.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/java/lang/Boolean.java b/java/lang/Boolean.java
index df9fcfe6e..0af8a9c6e 100644
--- a/java/lang/Boolean.java
+++ b/java/lang/Boolean.java
@@ -223,24 +223,24 @@ public final class Boolean implements Serializable, Comparable<Boolean>
}
/**
- * If the String argument is "true", ignoring case, return true.
- * Otherwise, return false.
- *
- * @param b String to parse
+ * This implements the comparison contract specified by Comparable.
+ * @see Comparable
* @since 1.5
*/
- public static boolean parseBoolean(String b)
+ public int compareTo(Boolean other)
{
- return "true".equalsIgnoreCase(b) ? true : false;
+ return value == other.value ? 0 : (value ? 1 : -1);
}
/**
- * This implements the comparison contract specified by Comparable.
- * @see Comparable
+ * If the String argument is "true", ignoring case, return true.
+ * Otherwise, return false.
+ *
+ * @param b String to parse
* @since 1.5
*/
- public int compareTo(Boolean other)
+ public static boolean parseBoolean(String b)
{
- return value == other.value ? 0 : (value ? 1 : -1);
+ return "true".equalsIgnoreCase(b) ? true : false;
}
}