[java decompiler] engine target level set back to Java 6

This commit is contained in:
Roman Shevchenko
2016-03-01 17:44:22 +01:00
parent 4724fd78a6
commit ba16ca4dfc
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4"> <module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true"> <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true">
<exclude-output /> <exclude-output />
<content url="file://$MODULE_DIR$"> <content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />

View File

@@ -160,7 +160,7 @@ public class ConcatenationHelper {
if (constant.type == CodeConstants.CONSTANT_String) { if (constant.type == CodeConstants.CONSTANT_String) {
String recipe = ((PrimitiveConstant)constant).getString(); String recipe = ((PrimitiveConstant)constant).getString();
List<Exprent> res = new ArrayList<>(); List<Exprent> res = new ArrayList<Exprent>();
StringBuilder acc = new StringBuilder(); StringBuilder acc = new StringBuilder();
int parameterId = 0; int parameterId = 0;
for (int i = 0; i < recipe.length(); i++) { for (int i = 0; i < recipe.length(); i++) {
@@ -195,7 +195,7 @@ public class ConcatenationHelper {
return res; return res;
} }
} }
return new ArrayList<>(parameters); return new ArrayList<Exprent>(parameters);
} }
private static boolean isAppendConcat(InvocationExprent expr, VarType cltype) { private static boolean isAppendConcat(InvocationExprent expr, VarType cltype) {