# HG changeset patch # User darcy # Date 1446601298 28800 # Node ID 873c0ddb915fb891265ef2448ad2cc8289935613 # Parent 55cf0f3a7a74d9c62cf00e6e7d387a36158fa05f 8141368: Typo in java/lang/Class/IsEnum.java test Reviewed-by: jjg diff -r 55cf0f3a7a74 -r 873c0ddb915f jdk/test/java/lang/Class/IsEnum.java --- a/jdk/test/java/lang/Class/IsEnum.java Tue Nov 03 09:45:39 2015 -0800 +++ b/jdk/test/java/lang/Class/IsEnum.java Tue Nov 03 17:41:38 2015 -0800 @@ -32,8 +32,8 @@ public class IsEnum { - static int test(Class clazz, boolean expected) { - int status = (clazz.isEnum() == expected)?0:1; + static int test(Class clazz, boolean expected) { + int status = (clazz.isEnum() == expected) ? 0 : 1; if (status == 1) { System.err.println("Unexpected enum status for " + clazz); @@ -41,23 +41,23 @@ return status; } - public static void main(String argv[]) { + public static void main(String... argv) { int failures = 0; failures += test(IsEnum.class, false); failures += test(String.class, false); failures += test(Enum.class, false); + failures += test(EnumPoseur.class, false); failures += test(java.math.RoundingMode.class, true); - // Classes in java.lang.annoation + // Classes in java.lang.annotation failures += test(Annotation.class, false); failures += test(ElementType.class, true); failures += test(Retention.class, false); failures += test(RetentionPolicy.class, true); failures += test(Target.class, false); - failures += test(EnumPoseur.class, false); - // Classes for specialized enum constants aren't enum's + // A class for a specialized enum constant isn't itself an enum failures += test(SpecialEnum.class, true); failures += test(SpecialEnum.RED.getClass(), false); failures += test(SpecialEnum.GREEN.getClass(), true);