KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > coding > InputReturnFromFinallyCheck


1 package com.puppycrawl.tools.checkstyle.coding;
2
3 public class InputReturnFromFinallyCheck {
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;
18             }
19         }
20     }
21 }
22
Popular Tags