[jboss-cvs] JBossCache/src/org/jboss/cache/pojo/impl ...
Jason Thomas Greene
jgreene at jboss.com
Tue Jul 17 23:01:49 EDT 2007
User: jgreene
Date: 07/07/17 23:01:48
Modified: src/org/jboss/cache/pojo/impl CachedType.java
Log:
Remove 'final' field replication support, which was broken anyway
Fix enum test
Revision Changes Path
1.2 +1 -29 JBossCache/src/org/jboss/cache/pojo/impl/CachedType.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CachedType.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/pojo/impl/CachedType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- CachedType.java 30 May 2007 06:08:01 -0000 1.1
+++ CachedType.java 18 Jul 2007 03:01:48 -0000 1.2
@@ -268,35 +268,7 @@
* The following modifiers are ignored in the cache, i.e., they will not be stored in the cache.
* Whenever, user trying to access these fields, it will be accessed from the in-memory version.
*/
- if (Modifier.isStatic(mods)
- || Modifier.isTransient(mods))
- {
- return true;
- }
-
- if (!PojoBeginInterceptor.getReplicateFinalField() && Modifier.isFinal(mods))
- {
- return true;
- }
-
- return false;
- }
-
-
- /**
- * Check if we have @Transient annotation.
- *
- * @param invocation
- * @return true if @Transient is present.
- */
- private static boolean hasTransientAnnotation(FieldInvocation invocation)
- {
- Object obj = invocation.resolveAnnotation(org.jboss.cache.pojo.annotation.Transient.class);
- if (obj != null)
- {
- return true;
- }
- return false;
+ return Modifier.isStatic(mods) || Modifier.isTransient(mods) || Modifier.isFinal(mods);
}
private static boolean hasFieldAnnotation(Field field, Advisor advisor)
More information about the jboss-cvs-commits
mailing list