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 ClassDescriptor.java
Date Fri, 02 May 2003 18:17:14 GMT
brj         2003/05/02 11:17:14

  Modified:    src/java/org/apache/ojb/broker/metadata ClassDescriptor.java
  Log:
  minor refactoring
  to get rid of warnings
  
  Revision  Changes    Path
  1.58      +6 -6      db-ojb/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java
  
  Index: ClassDescriptor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/ClassDescriptor.java,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- ClassDescriptor.java	2 May 2003 12:24:30 -0000	1.57
  +++ ClassDescriptor.java	2 May 2003 18:17:14 -0000	1.58
  @@ -986,7 +986,7 @@
   	public Class getDynamicProxyClass()
   	{
   		Class clazz = getClassOfObject();
  -		Class superClass = clazz;
  +		Class superClazz = clazz;
   		Class[] interfaces = clazz.getInterfaces();
   
   		// clazz can be an interface itself and when getInterfaces()
  @@ -1002,9 +1002,9 @@
   		}
   
   		// add all interfaces implemented by superclasses to the interfaces array
  -		while ((superClass = superClass.getSuperclass()) != null)
  +		while ((superClazz = superClazz.getSuperclass()) != null)
   		{
  -			Class[] superInterfaces = superClass.getInterfaces();
  +			Class[] superInterfaces = superClazz.getInterfaces();
   			Class[] combInterfaces = new Class[interfaces.length + superInterfaces.length];
   			System.arraycopy(interfaces, 0, combInterfaces, 0, interfaces.length);
   			System.arraycopy(superInterfaces, 0, combInterfaces, interfaces.length, superInterfaces.length);
  @@ -1023,9 +1023,9 @@
   		}
   		interfaces = (Class[]) unique.values().toArray(new Class[unique.size()]);
   		// return dynymic Proxy Class implementing all interfaces
  -		Class proxyClass = Proxy.getProxyClass(clazz.getClassLoader(), interfaces);
  +		Class proxyClazz = Proxy.getProxyClass(clazz.getClassLoader(), interfaces);
   
  -		return proxyClass;
  +		return proxyClazz;
   	}
   
   	/**
  
  
  

Mime
View raw message