Skip to content

Commit 5859ab7

Browse files
committed
fix(diamond): Pequeno ajuste nos exemplos.
Adicionando um pequeno exemplo que havia sido removido no commit anterior. Mantive os dois. Closes #38
1 parent 87409b5 commit 5859ab7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/org/j6toj8/collections/diamond/Collections_Diamond.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public static void main(String[] args) {
2323
Map<List<String>, List<String>> m7 = new HashMap<List<String>, <>>(); // NÃO COMPILA - a única sintaxe válida é <>
2424

2525
Map<Map<List<String>, List<String>>, Map<List<String>, List<String>>> m8 = new HashMap<>(); // com diamond
26+
27+
Map<> m9 = new HashMap<>(); // NÃO COMPILA - é necessário informar o tipo do lado esquerdo
2628
// end::code[]
2729
}
2830

0 commit comments

Comments
 (0)