Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Let enigma suggest "o" for equals parameter for now #4

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update EnimgaNameProposalService.java
liach authored Sep 25, 2021

Verified

This commit was signed with the committer’s verified signature.
chenrui333 Rui Chen
commit 69d68233d9d1a5db276354d1010b1bc60378e4ce
Original file line number Diff line number Diff line change
@@ -70,9 +70,11 @@ public Optional<String> proposeName(Entry<?> obfEntry, EntryRemapper remapper) {
}
} else if (obfEntry instanceof LocalVariableEntry paramEntry) {
MethodEntry parent = paramEntry.getParent();

if (parent == null) {
return Optional.empty();
}

if (parent.getDesc().equals(EQUALS_DESC) && parent.getName().equals("equals")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checkstyle :)

return Optional.of("o");
}