File tree Expand file tree Collapse file tree
src/main/java/jadx/plugins/stringdecoder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,17 +169,9 @@ public void visit(MethodNode mth) {
169169 }
170170
171171 /**
172- * Walks the SSA def-use chain from {@code csn} upward to find the top-level statement
173- * instruction (the one that is not itself consumed by another instruction).
174- * Attaching CODE_COMMENTS there — using the typed, list-merging addAttr — avoids the
175- * replace-on-copy problem in inheritMetadata when multiple decoded strings live in the
176- * same chained expression.
177- *
178- * Constructor pivot: when the chain enters an {@code invoke-direct <init>}, we pivot
179- * through to the post-constructor user (the single non-init user of the new-instance
180- * register) and continue walking from there. This ensures the comment always lands on
181- * the enclosing statement rather than on the result-less {@code <init>} node, which
182- * would be lost when ConstructorVisitor later merges new-instance + init.
172+ * Walks the SSA def-use chain to find the top-level statement instruction.
173+ * Pivots through {@code <init>} constructors to avoid landing on the result-less init node,
174+ * which would be lost when ConstructorVisitor later merges new-instance + init.
183175 */
184176 private static InsnNode findStatementInsn (ConstStringNode csn ) {
185177 RegisterArg result = csn .getResult ();
You can’t perform that action at this time.
0 commit comments