Revision: 1579
Author: [email protected]
Date: Fri Sep 9 14:20:09 2011
Log:
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
http://code.google.com/p/google-guice/source/detail?r=1579
Modified:
/trunk/core/test/com/google/inject/TypeLiteralTest.java
=======================================
--- /trunk/core/test/com/google/inject/TypeLiteralTest.java Thu Jul 7
17:34:16 2011
+++ /trunk/core/test/com/google/inject/TypeLiteralTest.java Fri Sep 9
14:20:09 2011
@@ -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]));
}
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.