mirror of
https://github.com/google/nomulus
synced 2026-09-18 22:14:23 +00:00
Remove unnecessary explicit generic type declarations
They can be inferred correctly even in Java 7, and display as compiler warnings in IntelliJ. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=173451087
This commit is contained in:
@@ -62,10 +62,10 @@ public class DiffUtilsTest {
|
||||
|
||||
@Test
|
||||
public void test_emptyToNullCollection_doesntDisplay() {
|
||||
Map<String, Object> mapA = new HashMap<String, Object>();
|
||||
Map<String, Object> mapA = new HashMap<>();
|
||||
mapA.put("a", "jim");
|
||||
mapA.put("b", null);
|
||||
Map<String, Object> mapB = new HashMap<String, Object>();
|
||||
Map<String, Object> mapB = new HashMap<>();
|
||||
mapB.put("a", "tim");
|
||||
mapB.put("b", ImmutableSet.of());
|
||||
// This ensures that it is not outputting a diff of b: null -> [].
|
||||
|
||||
Reference in New Issue
Block a user