use jdk9+ Map.entry API instead of AbstractMap.SimpleImmutableEntry

GitOrigin-RevId: bac64af4495e36b044873f6a97625342af907bec
master
Vladimir Krivosheev 4 years ago committed by intellij-monorepo-bot
parent 56d2f5f887
commit ede143d4bd
  1. 2
      src/org/jetbrains/java/decompiler/main/ClassWriter.java

@ -502,7 +502,7 @@ public class ClassWriter {
}
private static boolean isVarArgRecord(StructClass cl) {
String canonicalConstructorDescriptor =
String canonicalConstructorDescriptor =
cl.getRecordComponents().stream().map(c -> c.getDescriptor()).collect(Collectors.joining("", "(", ")V"));
StructMethod init = cl.getMethod(CodeConstants.INIT_NAME, canonicalConstructorDescriptor);
return init != null && init.hasModifier(CodeConstants.ACC_VARARGS);

Loading…
Cancel
Save