diff --git a/src/org/benf/cfr/reader/bytecode/analysis/opgraph/op4rewriters/RecordRewriter.java b/src/org/benf/cfr/reader/bytecode/analysis/opgraph/op4rewriters/RecordRewriter.java index f9a48972..6579eca1 100644 --- a/src/org/benf/cfr/reader/bytecode/analysis/opgraph/op4rewriters/RecordRewriter.java +++ b/src/org/benf/cfr/reader/bytecode/analysis/opgraph/op4rewriters/RecordRewriter.java @@ -312,6 +312,10 @@ private static void hideConstructorIfEmpty(Method canonicalCons) { } } + /** + * Tries to remove implicit field assignments from this canonical record constructor, turning + * it into a compact canonical constructor. Returns {@code true} if successful. + */ private static boolean removeImplicitAssignments(Method canonicalCons, List instances, JavaRefTypeInstance thisType) { if (canonicalCons.getCodeAttribute() == null) return false; Op04StructuredStatement code = canonicalCons.getAnalysis(); @@ -333,18 +337,22 @@ private static boolean removeImplicitAssignments(Method canonicalCons, List