Commits

Marcus R. Brown committed 73f4b9e

Use a HashMap to back class_to_type, to get rid of the dependency on guava.

Comments (0)

Files changed (1)

src/org/python/core/PyType.java

 import java.util.List;
 import java.util.Map;
 import java.util.Set;
+import java.util.HashMap;
 import java.util.concurrent.atomic.AtomicReferenceArray;
 
 import org.python.expose.ExposeAsSuperclass;
 import org.python.modules._weakref.WeakrefModule;
 import org.python.util.Generic;
 
-import com.google.common.collect.MapMaker;
-
 /**
  * The Python Type object implementation.
  */
 
     public static synchronized PyType fromClass(Class<?> c, boolean hardRef) {
         if (class_to_type == null) {
-            class_to_type = new MapMaker().weakKeys().weakValues().makeMap();
+            class_to_type = new HashMap<Class<?>, PyType>();
             addFromClass(PyType.class, null);
         }
         PyType type = class_to_type.get(c);