db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess PersistentFieldDefaultImpl.java
Date Wed, 23 Apr 2003 20:05:26 GMT
brj         2003/04/23 13:05:26

  Modified:    src/java/org/apache/ojb/broker/metadata/fieldaccess
                        PersistentFieldDefaultImpl.java
  Log:
  removed some warnings
  
  Revision  Changes    Path
  1.16      +9 -9      db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldDefaultImpl.java
  
  Index: PersistentFieldDefaultImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldDefaultImpl.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- PersistentFieldDefaultImpl.java	16 Jan 2003 17:15:10 -0000	1.15
  +++ PersistentFieldDefaultImpl.java	23 Apr 2003 20:05:26 -0000	1.16
  @@ -187,8 +187,8 @@
   
           try
           {
  -            Field field = getField();
  -            Object result = field.get(ProxyHelper.getRealObject(obj));
  +            Field f = getField();
  +            Object result = f.get(ProxyHelper.getRealObject(obj));
   
               return result;
           }
  @@ -215,12 +215,12 @@
        *
        * @throws MetadataException if there is an error computing the field ( No Field was
found into the class hierarchy)
        */
  -    protected Field computeField(Class c, String fieldname)
  +    protected Field computeField(Class c, String name)
       {
           Field f = null;
           try
           {
  -            f = getFieldRecursive(c, fieldname);
  +            f = getFieldRecursive(c, name);
               //f.setAccessible(true);                  // allow access to private members
               return f;
           }
  @@ -231,7 +231,7 @@
               //                          + " in "
               //                          + c.getName() );
               //             logger.error(t);
  -            throw new MetadataException("Can't find member " + fieldname + " in " + c.getName(),
t);
  +            throw new MetadataException("Can't find member " + name + " in " + c.getName(),
t);
           }
       }
   
  @@ -240,11 +240,11 @@
        *
        * @throws NoSuchFieldException if no Field was found into the class hierarchy
        */
  -    protected Field getFieldRecursive(Class c, String fieldname) throws NoSuchFieldException
  +    protected Field getFieldRecursive(Class c, String name) throws NoSuchFieldException
       {
           try
           {
  -            Field f = c.getDeclaredField(fieldname);
  +            Field f = c.getDeclaredField(name);
               return f;
           }
           catch (NoSuchFieldException e)
  @@ -257,7 +257,7 @@
               // if field could not be found in class c try in superclass
               else
               {
  -                return getFieldRecursive(c.getSuperclass(), fieldname);
  +                return getFieldRecursive(c.getSuperclass(), name);
               }
           }
       }
  
  
  

Mime
View raw message