Skip to content

Instantly share code, notes, and snippets.

@gregoryyoung
Created October 8, 2013 19:05
Show Gist options
  • Save gregoryyoung/6889820 to your computer and use it in GitHub Desktop.
Save gregoryyoung/6889820 to your computer and use it in GitHub Desktop.
WTF?
29 try {
30
31 switch (Integer.parseInt(rel)) {
32 case 1:
33 case 2:
34 case 3:
35 case 4:
36 case 5:
37 case 6:
38 case 7:
39 case 8:
40 case 9:
41 case 0:
42 default:
43 break;
44 }
45 } catch (final NumberFormatException e) {
46 /* Ignore ... */
47 }
@viktorklang
Copy link

/* Ignore */ on exceptions doesn't seem like Let It Crash™ :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment