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 PersistentFieldPrivilegedImpl.java PersistentFieldDirectAccessImpl.java
Date Mon, 08 Mar 2004 20:24:32 GMT
brj         2004/03/08 12:24:32

  Modified:    src/java/org/apache/ojb/broker/metadata/fieldaccess
                        AbstractPersistentField.java
                        PersistentFieldPrivilegedImpl.java
                        PersistentFieldDirectAccessImpl.java
  Log:
  minor refactorings
  
  Revision  Changes    Path
  1.14      +4 -4      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.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- AbstractPersistentField.java	6 Feb 2004 13:01:52 -0000	1.13
  +++ AbstractPersistentField.java	8 Mar 2004 20:24:32 -0000	1.14
  @@ -409,15 +409,15 @@
       /**
        * Build a String representation of given arguments.
        */
  -	public String buildMessageString(Object obj, Object value, Field field)
  +	public String buildMessageString(Object obj, Object value, Field aField)
   	{
   		String eol = SystemUtils.LINE_SEPARATOR;
   		StringBuffer buf = new StringBuffer();
   		buf
   			.append(eol + "[try to set 'object value' in 'target object'")
               .append(eol + "target obj class: " + (obj != null ? obj.getClass().getName()
: null))
  -			.append(eol + "target field name: " + field != null ? field.getName() : null)
  -			.append(eol + "target field type: " + (field != null ? field.getType() : null))
  +			.append(eol + "target field name: " + aField != null ? aField.getName() : null)
  +			.append(eol + "target field type: " + (aField != null ? aField.getType() : null))
   			.append(eol + "object value class: " + (value != null ? value.getClass().getName() :
null))
   			.append(eol + "object value: " + (value != null ? value : null))
   			.append(eol + "]");
  
  
  
  1.9       +7 -3      db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldPrivilegedImpl.java
  
  Index: PersistentFieldPrivilegedImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldPrivilegedImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PersistentFieldPrivilegedImpl.java	7 Jan 2004 19:11:10 -0000	1.8
  +++ PersistentFieldPrivilegedImpl.java	8 Mar 2004 20:24:32 -0000	1.9
  @@ -169,7 +169,9 @@
       //************************************************************
       private class SetAccessibleAction implements PrivilegedAction, Serializable
       {
  -		static final long serialVersionUID = 8152025069698028050L;        public Object run()
  +		static final long serialVersionUID = 8152025069698028050L;        
  +        
  +        public Object run()
           {
               getField().setAccessible(true);
               return null;
  @@ -178,7 +180,9 @@
   
       private class UnsetAccessibleAction implements PrivilegedAction, Serializable
       {
  -		static final long serialVersionUID = -2284913657454430305L;        public Object run()
  +		static final long serialVersionUID = -2284913657454430305L;        
  +        
  +        public Object run()
           {
               getField().setAccessible(false);
               return null;
  
  
  
  1.9       +1 -2      db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldDirectAccessImpl.java
  
  Index: PersistentFieldDirectAccessImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentFieldDirectAccessImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PersistentFieldDirectAccessImpl.java	6 Feb 2004 13:01:52 -0000	1.8
  +++ PersistentFieldDirectAccessImpl.java	8 Mar 2004 20:24:32 -0000	1.9
  @@ -55,7 +55,6 @@
    */
   
   import org.apache.ojb.broker.metadata.MetadataException;
  -import org.apache.ojb.broker.util.BrokerHelper;
   import org.apache.ojb.broker.util.ProxyHelper;
   
   import java.lang.reflect.Field;
  
  
  

---------------------------------------------------------------------
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