mirror of https://github.com/apache/jclouds.git
Issue 894:update to guava 12.0-rc2
This commit is contained in:
parent
2f9b1738a0
commit
b0bd663a82
|
@ -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>
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue