Issue 894:update to guava 12.0-rc2

This commit is contained in:
Adrian Cole 2012-04-18 08:32:41 -07:00
parent 2f9b1738a0
commit b0bd663a82
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>12.0-rc1</version>
<version>12.0-rc2</version>
</dependency>
</dependencies>

View File

@ -162,7 +162,7 @@ public class Maps2 {
*/
public static <K, V> ImmutableMap<K, V> uniqueIndex(
Iterable<? extends V> values, Function<? super V, ? extends K> keyFunction) {
return uniqueIndex(values, keyFunction);
return ImmutableMap.copyOf(Maps.uniqueIndex(values, keyFunction));
}
}