8141368: Typo in java/lang/Class/IsEnum.java test
authordarcy
Tue, 03 Nov 2015 17:41:38 -0800
changeset 33517 873c0ddb915f
parent 33516 55cf0f3a7a74
child 33518 3f1644328d06
8141368: Typo in java/lang/Class/IsEnum.java test Reviewed-by: jjg
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);