Blame SOURCES/fix-incompatible-types.patch

3dfed3
diff --git a/src/org/mockito/internal/creation/instance/ObjenesisInstantiator.java b/src/org/mockito/internal/creation/instance/ObjenesisInstantiator.java
3dfed3
index 1ca0003..15172bd 100644
3dfed3
--- a/src/org/mockito/internal/creation/instance/ObjenesisInstantiator.java
3dfed3
+++ b/src/org/mockito/internal/creation/instance/ObjenesisInstantiator.java
3dfed3
@@ -11,6 +11,6 @@ class ObjenesisInstantiator implements Instantiator {
3dfed3
     private final ObjenesisStd objenesis = new ObjenesisStd(new GlobalConfiguration().enableClassCache());
3dfed3
 
3dfed3
     public <T> T newInstance(Class<T> cls) {
3dfed3
-        return objenesis.newInstance(cls);
3dfed3
+        return (T) objenesis.newInstance(cls);
3dfed3
     }
3dfed3
 }