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

master
Roman Shevchenko 9 years ago
parent 4724fd78a6
commit ba16ca4dfc
  1. 2
      java-decompiler-engine.iml
  2. 4
      src/org/jetbrains/java/decompiler/modules/decompiler/ConcatenationHelper.java

@ -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" />

@ -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) {

Loading…
Cancel
Save