JDK 8 code review request for JDK-8014249 Add Modifer.parameterModifiers() (original) (raw)

Joe Darcy joe.darcy at oracle.com
Thu May 9 03🔞08 UTC 2013


On 05/08/2013 03:26 PM, Mandy Chung wrote:

The change looks good to me. I also think it's a good idea to swap out the comment for @jls tag for consistency.

Okay; you both convinced me :-)

Revised patch below, including a new comment explaining the FOO_MODIFIERS fields and fooModifiers() method pattern.

Thanks,

-Joe

diff -r 2fba6ae13ed8 src/share/classes/java/lang/reflect/Modifier.java --- a/src/share/classes/java/lang/reflect/Modifier.java Tue Apr 30 12:32:49 2013 -0700 +++ b/src/share/classes/java/lang/reflect/Modifier.java Wed May 08 20:16:21 2013 -0700 @@ -350,8 +350,19 @@ return (mod & MANDATED) != 0; }

Modifier.PRIVATE | @@ -359,7 +370,8 @@ Modifier.STRICT;

  /**

Modifier.PRIVATE | @@ -367,13 +379,15 @@

  /**

Modifier.PRIVATE;

  /**

Modifier.PRIVATE | @@ -381,7 +395,8 @@ Modifier.SYNCHRONIZED | Modifier.NATIVE | Modifier.STRICT;

  /**

Modifier.PRIVATE | @@ -389,6 +404,13 @@ Modifier.VOLATILE;

  /**

constructor parameter.

@@ -459,4 +480,17 @@ public static int fieldModifiers() { return FIELD_MODIFIERS; } +

}



More information about the core-libs-dev mailing list