reformat code, resolve compiler warnings
This commit is contained in:
@@ -51,6 +51,7 @@ public class TestInner extends AbstractTest {
|
||||
}.run();
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public static class MyException extends Exception {
|
||||
public MyException(String str, Exception e) {
|
||||
super("msg:" + str, e);
|
||||
|
||||
@@ -2,7 +2,7 @@ package jadx.samples;
|
||||
|
||||
public class TestSwitch extends AbstractTest {
|
||||
|
||||
public static final int test1(int i) {
|
||||
public static int test1(int i) {
|
||||
int k = i * 4;
|
||||
|
||||
switch (k) {
|
||||
@@ -19,7 +19,7 @@ public class TestSwitch extends AbstractTest {
|
||||
return i;
|
||||
}
|
||||
|
||||
public static final int test2(int i) {
|
||||
public static int test2(int i) {
|
||||
int k = i;
|
||||
switch (k) {
|
||||
case 1:
|
||||
@@ -39,7 +39,7 @@ public class TestSwitch extends AbstractTest {
|
||||
return -i;
|
||||
}
|
||||
|
||||
public static final int test3(int i, int j) {
|
||||
public static int test3(int i, int j) {
|
||||
int k = i;
|
||||
switch (k) {
|
||||
case 1:
|
||||
@@ -53,7 +53,7 @@ public class TestSwitch extends AbstractTest {
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static final int test4(int i) {
|
||||
public static int test4(int i) {
|
||||
int k = i;
|
||||
switch (k) {
|
||||
case 1:
|
||||
@@ -64,7 +64,8 @@ public class TestSwitch extends AbstractTest {
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static final int test5(int i, int b) {
|
||||
@SuppressWarnings("fallthrough")
|
||||
public static int test5(int i, int b) {
|
||||
int k = i;
|
||||
switch (k) {
|
||||
case 1:
|
||||
|
||||
Reference in New Issue
Block a user