View Javadoc
1   package integrationTests;
2   
3   /**
4    * The Class UnreachableStatements.
5    */
6   public final class UnreachableStatements {
7   
8       /**
9        * Non branching method with unreachable lines.
10       */
11      void nonBranchingMethodWithUnreachableLines() {
12          int a = 1;
13          assert false;
14          System.gc();
15      }
16  
17      /**
18       * Branching method with unreachable lines.
19       *
20       * @param a
21       *            the a
22       */
23      void branchingMethodWithUnreachableLines(int a) {
24          if (a > 0) {
25              assert false;
26              System.gc();
27          }
28  
29          System.runFinalization();
30      }
31  }