Skip to content

Commit 8c3e213

Browse files
authored
Add IntelliJ live templates
1 parent c0d5617 commit 8c3e213

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

CONTRIBUTING.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff 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

111138
Please follow these formatting guidelines:

0 commit comments

Comments
 (0)