Skip to content

Commit

Permalink
Bug fixed for redhat-developer#2605
Browse files Browse the repository at this point in the history
  • Loading branch information
doggy8088 authored Jul 31, 2022
1 parent 5fa5fbc commit f0a439a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions snippets/java.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"prefix": "ctor",
"body": [
"public ${1:${TM_FILENAME_BASE}}($2) {",
"\t${0:super();}",
"\t${3:super();}",
"\t$0",
"}"
],
"description": "Public constructor"
Expand All @@ -23,7 +24,7 @@
"try {",
"\t$1",
"} catch (${2:Exception} ${3:e}) {",
"\t$4//${0:TODO}: handle exception",
"\t$0// TODO: handle exception",
"}"
],
"description": "try/catch block"
Expand All @@ -34,7 +35,7 @@
"try ($1) {",
"\t$2",
"} catch (${3:Exception} ${4:e}) {",
"\t$5//${0:TODO}: handle exception",
"\t$0//$TODO: handle exception",
"}"
]
},
Expand Down Expand Up @@ -100,7 +101,7 @@
"newObject": {
"prefix": "new",
"body": [
"${0:Object} ${1:foo} = new ${0:Object}();"
"${1:Object} ${2:foo} = new ${1}($0);"
],
"description": "Create new Object"
},
Expand Down

0 comments on commit f0a439a

Please sign in to comment.