File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,33 @@ they will be executed by a CI server.
106106
107107 <img width =" 382 " alt =" configure annotations " src =" https://user-images.githubusercontent.com/2163464/43444414-f1e5ce5a-94a3-11e8-8fa4-9f048c50ccc0.png " >
108108
109+ ##### Useful Live Templates
110+
111+ ** ` enter ` **
112+ ``` java
113+ @Advice.OnMethodEnter (suppress = Throwable . class)
114+ private static void onEnter() {
115+ $END $
116+ }
117+ ```
118+ Applicable in Java: Declaration
119+
120+ ** ` exit ` **
121+
122+ ``` java
123+ @Advice.OnMethodExit (suppress = Throwable . class, onThrowable = Throwable . class)
124+ private static void onExit(@Advice . Thrown Throwable thrown) {
125+ $END $
126+ }
127+ ```
128+ Applicable in Java: Declaration
129+
130+ ** ` logger ` **
131+ ``` java
132+ private static final Logger logger = LoggerFactory . getLogger($CLASS_NAME $. class);
133+ ```
134+ Applicable in Java: Declaration
135+
109136### Java Language Formatting Guidelines
110137
111138Please follow these formatting guidelines:
You can’t perform that action at this time.
0 commit comments