Skip to content

Commit c24c99c

Browse files
committed
Corrected constructor call
1 parent 64a4d3c commit c24c99c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: snippets/java.snippets

+4-4
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,16 @@ snippet v
9191
##
9292
## Declaration for ArrayList
9393
snippet d.al
94-
List<${1:Object}> ${2:list} = ArrayList<$1>;${0}
94+
List<${1:Object}> ${2:list} = new ArrayList<$1>();${0}
9595
## Declaration for HashMap
9696
snippet d.hm
97-
Map<${1:Object}, ${2:Object}> ${3:map} = HashMap<$1, $2>;${0}
97+
Map<${1:Object}, ${2:Object}> ${3:map} = new HashMap<$1, $2>();${0}
9898
## Declaration for HashSet
9999
snippet d.hs
100-
Set<${1:Object}> ${2:set} = HashSet<$1>;${0}
100+
Set<${1:Object}> ${2:set} = new HashSet<$1>();${0}
101101
## Declaration for Stack
102102
snippet d.st
103-
Stack<${1:Object}> ${2:stack} = Stack<$1>;${0}
103+
Stack<${1:Object}> ${2:stack} = new Stack<$1>();${0}
104104
##
105105
## Enhancements to Methods, variables, classes, etc.
106106
snippet ab

0 commit comments

Comments
 (0)