Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Display display = new |
- new Display()|
- Display display = new Display()|
- if (${arg:localVar} == null)
- throw new ${exception:link(NullPointerException,IllegalArgumentException)}("${arg:localVar} is null");
- public class MyClass {
- public MyClass(int something|) {
- }
- }
- public class MyClass {
- private final Object something;
- public MyClass(Object something) {
- this.something = something;
- }
- }
- public class MyClass {
- private final Object something;
- public MyClass(Object something) {
- npe|
- this.something = something;
- }
- }
- public class MyClass {
- private final Object something;
- public MyClass(Object something) {
- if (something == null)
- throw new NullPointerException("something is null");
- this.something = something;
- }
- }
- 1: public void foo()
- 2: {
- 3: somecode();
- 4: if ( blah ) return;
- 5:
- 6: bar();
- 7: }
- if(i==0|)
- if(i==0) {|
- void someQuery() {
- createJdbcTemplate()
- }
- void someQuery() {
- JdbcTemplate myTemplate = createJdbcTemplate();
- }
- import X;
- ...
- X.callSomething();
- import static X.callSomething;
- ...
- callSomething();
Add Comment
Please, Sign In to add comment