diff --git a/snippets/java-mode/method b/snippets/java-mode/method index 7a6b9ed92..0b9301353 100644 --- a/snippets/java-mode/method +++ b/snippets/java-mode/method @@ -2,6 +2,6 @@ # name: method # key: m # -- -${1:public} ${2:void} ${3:name}(${4:args}) { +${1:$$(yas-choose-value '("public" "private" "protected" ""))} ${2:void} ${3:name}(${4:args}) { $0 } \ No newline at end of file diff --git a/snippets/java-mode/param b/snippets/java-mode/param index 4a1f44d2d..81ef56030 100644 --- a/snippets/java-mode/param +++ b/snippets/java-mode/param @@ -2,4 +2,4 @@ # name: param # key: param # -- -@param ${1:paramater} $0 \ No newline at end of file +@param ${1:parameter} $0 \ No newline at end of file