diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2014-02-20 07:35:27 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2014-02-20 07:35:27 +0100 |
commit | db81d934752174207268c49658963ba98665794b (patch) | |
tree | 038e459c597df047e48cece35918fe28b1a35a48 /sonar-batch | |
parent | e486fe02a0a38d3d9fb70690f7870c77e2265254 (diff) | |
download | sonarqube-db81d934752174207268c49658963ba98665794b.tar.gz sonarqube-db81d934752174207268c49658963ba98665794b.zip |
SONAR-926 fix compilation on Java 6
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/index/CacheTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/CacheTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/CacheTest.java index 83ed6836110..37e68ea2e15 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/index/CacheTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/index/CacheTest.java @@ -60,7 +60,7 @@ public class CacheTest { assertThat(cache.values()).containsOnly("paris", "rome"); assertThat(cache.containsKey("france")).isTrue(); - Cache.Entry[] entries = Iterables.toArray(cache.<String>entries(), Cache.Entry.class); + Cache.Entry[] entries = Iterables.toArray(cache.entries(), Cache.Entry.class); assertThat(entries).hasSize(2); assertThat(entries[0].key()[0]).isEqualTo("france"); assertThat(entries[0].value()).isEqualTo("paris"); @@ -113,14 +113,14 @@ public class CacheTest { assertThat(cache.values("europe")).containsOnly("paris", "rome"); assertThat(cache.values("oceania")).isEmpty(); - Cache.Entry[] allEntries = Iterables.toArray(cache.<String>entries(), Cache.Entry.class); + Cache.Entry[] allEntries = Iterables.toArray(cache.entries(), Cache.Entry.class); assertThat(allEntries).hasSize(2); assertThat(allEntries[0].key()).isEqualTo(new String[]{"europe", "france"}); assertThat(allEntries[0].value()).isEqualTo("paris"); assertThat(allEntries[1].key()).isEqualTo(new String[]{"europe", "italy"}); assertThat(allEntries[1].value()).isEqualTo("rome"); - Cache.SubEntry[] subEntries = Iterables.toArray(cache.<String>subEntries("europe"), Cache.SubEntry.class); + Cache.SubEntry[] subEntries = Iterables.toArray(cache.subEntries("europe"), Cache.SubEntry.class); assertThat(subEntries).hasSize(2); assertThat(subEntries[0].keyAsString()).isEqualTo("france"); assertThat(subEntries[0].value()).isEqualTo("paris"); @@ -162,7 +162,7 @@ public class CacheTest { assertThat(cache.containsKey("europe", "france", "biarritz")).isFalse(); assertThat(cache.values()).containsOnly("eiffel tower", "lake", "colosseum"); - Cache.Entry[] allEntries = Iterables.toArray(cache.<String>entries(), Cache.Entry.class); + Cache.Entry[] allEntries = Iterables.toArray(cache.entries(), Cache.Entry.class); assertThat(allEntries).hasSize(3); assertThat(allEntries[0].key()).isEqualTo(new String[]{"europe", "france", "annecy"}); assertThat(allEntries[0].value()).isEqualTo("lake"); @@ -171,7 +171,7 @@ public class CacheTest { assertThat(allEntries[2].key()).isEqualTo(new String[]{"europe", "italy", "rome"}); assertThat(allEntries[2].value()).isEqualTo("colosseum"); - Cache.SubEntry[] subEntries = Iterables.toArray(cache.<String>subEntries("europe"), Cache.SubEntry.class); + Cache.SubEntry[] subEntries = Iterables.toArray(cache.subEntries("europe"), Cache.SubEntry.class); assertThat(subEntries).hasSize(2); assertThat(subEntries[0].keyAsString()).isEqualTo("france"); assertThat(subEntries[0].value()).isNull(); |