db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r606496 - in /db/jdo/trunk: tck2-legacy/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java tck2/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java
Date Sat, 22 Dec 2007 21:40:15 GMT
Author: clr
Date: Sat Dec 22 13:40:15 2007
New Revision: 606496

URL: http://svn.apache.org/viewvc?rev=606496&view=rev
Log:
JDO-565 add enum and annotation modifiers to SignatureVerifier.

Modified:
    db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java

Modified: db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java?rev=606496&r1=606495&r2=606496&view=diff
==============================================================================
--- db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java
(original)
+++ db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java
Sat Dec 22 13:40:15 2007
@@ -882,7 +882,9 @@
             while (true) {
                 // parse known modifiers
                 final String t = parseToken();
-                if (t.equals("abstract")) m |= Modifier.ABSTRACT;
+                if      (t.equals("abstract")) m |= Modifier.ABSTRACT;
+                else if (t.equals("annotation")) m |= (0x2000 + Modifier.ABSTRACT + Modifier.INTERFACE);
+                else if (t.equals("enum")) m |= 0x4000 + Modifier.FINAL;
                 else if (t.equals("final")) m |= Modifier.FINAL;
                 else if (t.equals("interface")) m |= Modifier.INTERFACE;
                 else if (t.equals("native")) m |= Modifier.NATIVE;

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java?rev=606496&r1=606495&r2=606496&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java (original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/util/signature/SignatureVerifier.java Sat
Dec 22 13:40:15 2007
@@ -48,7 +48,7 @@
 public class SignatureVerifier {
     /** The new-line character on this system. */
     static protected final String NL = System.getProperty("line.separator");
-    
+
     /** A writer for standard output. */
     protected final PrintWriter log;
 
@@ -882,7 +882,9 @@
             while (true) {
                 // parse known modifiers
                 final String t = parseToken();
-                if (t.equals("abstract")) m |= Modifier.ABSTRACT;
+                if      (t.equals("abstract")) m |= Modifier.ABSTRACT;
+                else if (t.equals("annotation")) m |= (0x2000 + Modifier.ABSTRACT + Modifier.INTERFACE);
+                else if (t.equals("enum")) m |= 0x4000 + Modifier.FINAL;
                 else if (t.equals("final")) m |= Modifier.FINAL;
                 else if (t.equals("interface")) m |= Modifier.INTERFACE;
                 else if (t.equals("native")) m |= Modifier.NATIVE;



Mime
View raw message