cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r604703 - /cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/map/JpaClassDescriptor.java
Date Sun, 16 Dec 2007 21:15:34 GMT
Author: aadamchik
Date: Sun Dec 16 13:15:33 2007
New Revision: 604703

URL: http://svn.apache.org/viewvc?rev=604703&view=rev
Log:
generics

Modified:
    cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/map/JpaClassDescriptor.java

Modified: cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/map/JpaClassDescriptor.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/map/JpaClassDescriptor.java?rev=604703&r1=604702&r2=604703&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/map/JpaClassDescriptor.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/map/JpaClassDescriptor.java
Sun Dec 16 13:15:33 2007
@@ -46,7 +46,7 @@
 
     protected Collection<JpaPropertyDescriptor> fieldDescriptors;
     protected Collection<JpaPropertyDescriptor> propertyDescriptors;
-    protected Class managedClass;
+    protected Class<?> managedClass;
     protected AccessType access;
 
     public static String propertyNameForGetter(String getterName) {
@@ -68,11 +68,11 @@
         return null;
     }
 
-    public JpaClassDescriptor(Class managedClass) {
+    public JpaClassDescriptor(Class<?> managedClass) {
         this.managedClass = managedClass;
     }
 
-    public Class getManagedClass() {
+    public Class<?> getManagedClass() {
         return managedClass;
     }
 
@@ -206,8 +206,8 @@
             }
 
             String name = methods[i].getName();
-            Class[] parameters = methods[i].getParameterTypes();
-            Class returnType = methods[i].getReturnType();
+            Class<?>[] parameters = methods[i].getParameterTypes();
+            Class<?> returnType = methods[i].getReturnType();
             boolean isVoid = Void.TYPE.equals(returnType);
 
             if (!isVoid && parameters.length == 0) {



Mime
View raw message