diff --git a/pom.xml b/pom.xml
index e3f158d..218f320 100644
--- a/pom.xml
+++ b/pom.xml
@@ -137,7 +137,7 @@
org.objenesis
objenesis
- 3.0.1
+ 3.2
diff --git a/src/main/java/com/rits/cloning/Cloner.java b/src/main/java/com/rits/cloning/Cloner.java
index 53b6d9f..1696b02 100644
--- a/src/main/java/com/rits/cloning/Cloner.java
+++ b/src/main/java/com/rits/cloning/Cloner.java
@@ -5,6 +5,7 @@
import java.lang.annotation.Annotation;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
+
import java.lang.reflect.Modifier;
import java.math.BigDecimal;
import java.math.BigInteger;
@@ -113,6 +114,10 @@ protected void registerFastCloners() {
registerInaccessibleClassToBeFastCloned("java.util.ArrayList$SubList", subListCloner);
registerInaccessibleClassToBeFastCloned("java.util.SubList", subListCloner);
registerInaccessibleClassToBeFastCloned("java.util.RandomAccessSubList", subListCloner);
+ FastClonerListOf12 listOf12 = new FastClonerListOf12();
+ registerInaccessibleClassToBeFastCloned("java.util.ImmutableCollections$List12",listOf12);
+ FastClonerSetOf12 setOf12 = new FastClonerSetOf12();
+ registerInaccessibleClassToBeFastCloned("java.util.ImmutableCollections$Set12",setOf12);
}
protected void registerInaccessibleClassToBeFastCloned(String className, IFastCloner fastCloner) {
diff --git a/src/main/java/com/rits/cloning/FastClonerListOf12.java b/src/main/java/com/rits/cloning/FastClonerListOf12.java
new file mode 100644
index 0000000..2990b04
--- /dev/null
+++ b/src/main/java/com/rits/cloning/FastClonerListOf12.java
@@ -0,0 +1,22 @@
+package com.rits.cloning;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+public class FastClonerListOf12 implements IFastCloner {
+ @SuppressWarnings({"unchecked", "rawtypes"})
+ public Object clone(final Object t, final IDeepCloner cloner, final Map