Commit 988ada3c authored by Ahmed Ashour's avatar Ahmed Ashour Committed by skylot

style: remove unneeded casts (PR #481)

As detected by Eclipse, and the test case doesn't depend on the explicit casting.
parent 74562e68
......@@ -215,7 +215,7 @@ public class ValuesParser extends ParserConstants {
}
private static String floatToString(float value) {
return doubleToString((double) value);
return doubleToString(value);
}
public static Map<Integer, String> getAndroidResMap() {
......
......@@ -53,7 +53,7 @@ public class JadxWrapper {
while (ex.isTerminating()) {
long total = ex.getTaskCount();
long done = ex.getCompletedTaskCount();
progressMonitor.setProgress((int) (done * 100.0 / (double) total));
progressMonitor.setProgress((int) (done * 100.0 / total));
Thread.sleep(500);
}
progressMonitor.close();
......
......@@ -21,13 +21,13 @@ public class TestCF4 extends AbstractTest {
f = null;
c = 2;
testComplexIf("abcdef", 0);
assertEquals(c, (int) 'c');
assertEquals(c, 'c');
d = "";
f = null;
c = 0;
testComplexIf("abcdef", 0);
assertEquals(c, (int) 'a');
assertEquals(c, 'a');
d = "";
f = "1";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment