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 AbstractPersistentField.java
Date Sun, 02 Nov 2003 14:45:11 GMT
brj         2003/11/02 06:45:11

  Modified:    src/java/org/apache/ojb/broker/metadata/fieldaccess
                        AbstractPersistentField.java
  Log:
  minor cosmetic refactoring
  
  Revision  Changes    Path
  1.9       +6 -6      db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/AbstractPersistentField.java
  
  Index: AbstractPersistentField.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/AbstractPersistentField.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AbstractPersistentField.java	17 Oct 2003 14:12:56 -0000	1.8
  +++ AbstractPersistentField.java	2 Nov 2003 14:45:11 -0000	1.9
  @@ -235,19 +235,19 @@
        * @return
        * @throws NoSuchFieldException
        */
  -    private Field getNestedRecursiveField(Class c, String fieldName) throws NoSuchFieldException
  +    private Field getNestedRecursiveField(Class c, String aFieldName) throws NoSuchFieldException
       {
           Field result = null;
  -        int index = fieldName.indexOf(PATH_TOKEN);
  +        int index = aFieldName.indexOf(PATH_TOKEN);
           if (index >= 0)
           {
  -            String pathName = fieldName.substring(0, index);
  +            String pathName = aFieldName.substring(0, index);
               Field path = getFieldRecursive(c, pathName); // assert(path != null);
  -            result = getNestedRecursiveField(path.getType(), fieldName.substring(index
+ PATH_TOKEN.length()));
  +            result = getNestedRecursiveField(path.getType(), aFieldName.substring(index
+ PATH_TOKEN.length()));
           }
           else
           {
  -            result = getFieldRecursive(c, fieldName);
  +            result = getFieldRecursive(c, aFieldName);
           }
           return result;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message