abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1203403 - /abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java
Date Thu, 17 Nov 2011 22:48:24 GMT
Author: jmsnell
Date: Thu Nov 17 22:48:24 2011
New Revision: 1203403

URL: http://svn.apache.org/viewvc?rev=1203403&view=rev
Log:
want to be able to cache io instances externally too.. helpful for custom io configurations

Modified:
    abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java

Modified: abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java?rev=1203403&r1=1203402&r2=1203403&view=diff
==============================================================================
--- abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java (original)
+++ abdera/abdera2/activities/src/main/java/org/apache/abdera2/activities/model/IO.java Thu
Nov 17 22:48:24 2011
@@ -234,9 +234,9 @@ public abstract class IO {
     return readObject(json).as(_class);
   }
   
-  private static class CacheKey {
+  public static class CacheKey {
     private final int hash;
-    CacheKey(TypeAdapter<?>[] adapters) {
+    public CacheKey(TypeAdapter<?>[] adapters) {
       this.hash = Arrays.hashCode(adapters);
     }
     public int hashCode() {
@@ -255,6 +255,7 @@ public abstract class IO {
       return true;
     }
   }
+  
   private static final Map<CacheKey,IO> map = 
     new ConcurrentHashMap<CacheKey,IO>();
   



Mime
View raw message