openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r772436 - in /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta: AnnotationProcessor6.java SourceAnnotationHandler.java
Date Wed, 06 May 2009 21:45:09 GMT
Author: ppoddar
Date: Wed May  6 21:45:09 2009
New Revision: 772436

URL: http://svn.apache.org/viewvc?rev=772436&view=rev
Log:
OPENJPA-1010: correct dangenous typo

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/SourceAnnotationHandler.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java?rev=772436&r1=772435&r2=772436&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
Wed May  6 21:45:09 2009
@@ -250,7 +250,7 @@
         throws IOException {
         Filer filer = processingEnv.getFiler();
         JavaFileObject javaFile = filer.createSourceFile(metaClass, e);
-        log(_loc.get("mmg-process", metaClass, javaFile.toUri()).getMessage());
+        log(_loc.get("mmg-process", javaFile.toUri()).getMessage());
         OutputStream out = javaFile.openOutputStream();
         PrintWriter writer = new PrintWriter(out);
         return writer;

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/SourceAnnotationHandler.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/SourceAnnotationHandler.java?rev=772436&r1=772435&r2=772436&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/SourceAnnotationHandler.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/SourceAnnotationHandler.java
Wed May  6 21:45:09 2009
@@ -93,17 +93,14 @@
 		this.processingEnv = processingEnv;
 	}
 
-	@Override
 	public int determineTypeAccess(TypeElement t) {
 		return 0;
 	}
-
-	@Override
+	
 	public int determineMemberAccess(Element m) {
 		return 0;
 	}
 
-	@Override
 	public List<Exception> validateAccess(TypeElement t) {
 		return null;
 	}
@@ -117,7 +114,7 @@
      * Scans relevant @AccessType annotation and field/method as per JPA
      * specification to determine the candidate set of field/methods.
      */
-	@Override
+	
     public Set<Element> getPersistentMembers(TypeElement type) {
         AccessType access = getExplicitAccessType(type);
         boolean isExplicit = access != null;
@@ -161,7 +158,6 @@
         return merge(filter(allMembers, fieldFilter, nonTransientFilter, 
         	fieldAccessFilter), getters);
     }
-
     
     private Set<Element> getDefaultAccessPersistentMembers(TypeElement type) {
         Set<Element> result = new HashSet<Element>();
@@ -497,7 +493,7 @@
             for (AnnotationMirror mirror : mirrors) {
                 String name = mirror.getAnnotationType().toString();
                 if (startsWith(name, "javax.persistence.")
-                 || startsWith(name, "openjpa."))
+                 || startsWith(name, "org.apache.openjpa."))
                     return true;
             }
             return false;
@@ -593,7 +589,6 @@
             ? null : params.get(index);
     }
 
-    @Override
     public TypeElement getPersistentSupertype(TypeElement cls) {
         TypeMirror sup = cls.getSuperclass();
         if (sup == null || isRootObject(sup))
@@ -649,8 +644,8 @@
     
     /**
      * Affirms if the given method matches the following signature
-     * <code> public boolean isXXX() </code>
-     * <code> public Boolean isXXX() </code>
+     * <code> public boolean isXyz() </code>
+     * <code> public Boolean isXyz() </code>
      */
     public static boolean isBooleanGetter(ExecutableElement method) {
     	String methodName = method.getSimpleName().toString();



Mime
View raw message