Changing callers of deprecated method ImmutableList.of(E[]) to call
ImmutableList.copyOf(E[]) instead (inlining the deprecated method. 

Revision created by MOE tool push_codebase.
MOE_MIGRATION=3071


git-svn-id: https://google-guice.googlecode.com/svn/trunk@1579 d779f126-a31b-0410-b53b-1d3aecad763e
diff --git a/core/test/com/google/inject/TypeLiteralTest.java b/core/test/com/google/inject/TypeLiteralTest.java
index ca14e43..de8b5da 100644
--- a/core/test/com/google/inject/TypeLiteralTest.java
+++ b/core/test/com/google/inject/TypeLiteralTest.java
@@ -156,7 +156,7 @@
     TypeVariable<?> aTv = (TypeVariable) aTl.getType();
     assertEquals(HasTypeParameters.class, aTv.getGenericDeclaration());
     assertEquals("A", aTv.getName());
-    assertEquals(ImmutableList.<Type>of(Object.class), ImmutableList.of(aTv.getBounds()));
+    assertEquals(ImmutableList.<Type>of(Object.class), ImmutableList.copyOf(aTv.getBounds()));
     assertEquals("A", aTv.toString());
     assertEqualsBothWays(aTl, TypeLiteral.get(HasTypeParameters.class.getTypeParameters()[0]));
   }
@@ -171,7 +171,7 @@
     TypeVariable<?> cTv = (TypeVariable) cTl.getType();
     assertEquals(HasTypeParameters.class, cTv.getGenericDeclaration());
     assertEquals("C", cTv.getName());
-    assertEquals(ImmutableList.<Type>of(Runnable.class), ImmutableList.of(cTv.getBounds()));
+    assertEquals(ImmutableList.<Type>of(Runnable.class), ImmutableList.copyOf(cTv.getBounds()));
     assertEquals("C", cTv.toString());
     assertEqualsBothWays(cTl, TypeLiteral.get(HasTypeParameters.class.getTypeParameters()[2]));
   }
@@ -187,7 +187,7 @@
     assertEquals(HasTypeParameters.class, bTv.getGenericDeclaration());
     assertEquals("B", bTv.getName());
     assertEquals(ImmutableList.<Type>of(Types.listOf(typeVariables[0]), Runnable.class),
-        ImmutableList.of(bTv.getBounds()));
+        ImmutableList.copyOf(bTv.getBounds()));
     assertEquals("B", bTv.toString());
     assertEqualsBothWays(bTl, TypeLiteral.get(HasTypeParameters.class.getTypeParameters()[1]));
   }