View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.descendanttoken;
2   
3   public class InputDescendantTokenReturnFromFinally {
4       public void foo() {
5           try {
6               System.currentTimeMillis();
7           } finally {
8               return;
9           }
10      }
11  
12      public void bar() {
13          try {
14              System.currentTimeMillis();
15          } finally {
16              if (System.currentTimeMillis() == 0) {
17                  return; // return from if statement
18              }
19          }
20      }
21      public void thisNull() {
22          boolean result = (this == null) || (null == this);
23          boolean result2 = (this != null) && (null != this);
24          boolean result3 = (this.getClass().getName() == String.valueOf(null == System.getProperty("abc")));
25      }
26  }