for -> foreach; generifying; other warning fixes

master
Tagir Valeev 6 years ago
parent 8ee7853268
commit d42689b205
  1. 8
      src/org/jetbrains/java/decompiler/modules/decompiler/exps/FunctionExprent.java

@ -566,12 +566,12 @@ public class FunctionExprent extends Exprent {
} }
private static VarType getMaxVarType(VarType[] arr) { private static VarType getMaxVarType(VarType[] arr) {
int[] types = new int[]{CodeConstants.TYPE_DOUBLE, CodeConstants.TYPE_FLOAT, CodeConstants.TYPE_LONG}; int[] types = {CodeConstants.TYPE_DOUBLE, CodeConstants.TYPE_FLOAT, CodeConstants.TYPE_LONG};
VarType[] vartypes = new VarType[]{VarType.VARTYPE_DOUBLE, VarType.VARTYPE_FLOAT, VarType.VARTYPE_LONG}; VarType[] vartypes = {VarType.VARTYPE_DOUBLE, VarType.VARTYPE_FLOAT, VarType.VARTYPE_LONG};
for (int i = 0; i < types.length; i++) { for (int i = 0; i < types.length; i++) {
for (int j = 0; j < arr.length; j++) { for (VarType anArr : arr) {
if (arr[j].type == types[i]) { if (anArr.type == types[i]) {
return vartypes[i]; return vartypes[i];
} }
} }

Loading…
Cancel
Save