Author: ekoneil
Date: Mon Feb 7 18:59:09 2005
New Revision: 151823
URL: http://svn.apache.org/viewcvs?view=rev&rev=151823
Log:
Trivial import cleanup.
BB: self
DRT: NetUI pass
Modified:
incubator/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/cache/MethodCache.java
incubator/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/cache/PropertyCache.java
Modified:
incubator/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/cache/MethodCache.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/cache/MethodCache.java?view=diff&r1=151822&r2=151823
==============================================================================
---
incubator/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/cache/MethodCache.java
(original)
+++
incubator/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/cache/MethodCache.java
Mon Feb 7 18:59:09 2005
@@ -17,15 +17,9 @@
*/
package org.apache.beehive.netui.util.cache;
-// java imports
-
import java.lang.reflect.Method;
-
import java.util.concurrent.ConcurrentHashMap;
-// internal imports
-
-// external imports
import org.apache.beehive.netui.util.logging.Logger;
/**
Modified:
incubator/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/cache/PropertyCache.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/cache/PropertyCache.java?view=diff&r1=151822&r2=151823
==============================================================================
---
incubator/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/cache/PropertyCache.java
(original)
+++
incubator/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/cache/PropertyCache.java
Mon Feb 7 18:59:09 2005
@@ -17,26 +17,18 @@
*/
package org.apache.beehive.netui.util.cache;
-// java imports
-
import java.beans.Introspector;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
-
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
-
import java.util.concurrent.ConcurrentHashMap;
-import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
-// internal imports
import org.apache.beehive.netui.util.logging.Logger;
-// external imports
-
/**
* The PropertyCache is used to track the JavaBean properties and public
* fields of a set of classes that are stored in the cache. This
implementation
@@ -104,7 +96,7 @@
_classCache.put(type, obj);
} catch(Exception e) {
if(LOGGER.isErrorEnabled())
- LOGGER.error("Error introspecting a class of type \"" +
type + "\" when determining its JavaBean property info", e);
+ LOGGER.error("Error introspecting a class of _type \"" +
type + "\" when determining its JavaBean property info", e);
return null;
}
}
@@ -211,38 +203,38 @@
*/
private class CachedProperty {
- private Method readMethod = null;
- private Method writeMethod = null;
- private String name = null;
- private PropertyDescriptor pd = null;
- private Class type = null;
+ private Method _readMethod = null;
+ private Method _writeMethod = null;
+ private String _name = null;
+ private PropertyDescriptor _pd = null;
+ private Class _type = null;
CachedProperty(PropertyDescriptor pd) {
- this.pd = pd;
- this.name = pd.getName();
- this.readMethod = pd.getReadMethod();
- this.writeMethod = pd.getWriteMethod();
- this.type = pd.getPropertyType();
+ _pd = pd;
+ _name = pd.getName();
+ _readMethod = pd.getReadMethod();
+ _writeMethod = pd.getWriteMethod();
+ _type = pd.getPropertyType();
}
PropertyDescriptor getPropertyDescriptor() {
- return pd;
+ return _pd;
}
Method getReadMethod() {
- return readMethod;
+ return _readMethod;
}
Method getWriteMethod() {
- return writeMethod;
+ return _writeMethod;
}
String getName() {
- return name;
+ return _name;
}
Class getType() {
- return type;
+ return _type;
}
}
@@ -251,20 +243,20 @@
*/
private class CachedField {
- private Field field = null;
- private String name = null;
+ private Field _field = null;
+ private String _name = null;
CachedField(Field field) {
- this.name = field.getName();
- this.field = field;
+ _name = field.getName();
+ _field = field;
}
Field getField() {
- return field;
+ return _field;
}
String getName() {
- return name;
+ return _name;
}
}
}