Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Jan 14, 2024
1 parent a37a170 commit 4586316
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ private String suggestNameFromClassType(final ClassType type) throws IOException
// TODO Try to determine name from signature, rather than just descriptor
final @Nullable ClassData typeClass = this.context.getContextProvider().findClass(type);
if (typeClass != null) {
if (typeClass.doesExtendOrImplement(this.listClass) && !typeClass.name().startsWith("net/minecraft/nbt/")) { // exclude nbt lists
if (typeClass.doesExtendOrImplement(this.listClass)
&& !typeClass.name().startsWith("net/minecraft/nbt/")) { // exclude nbt lists
return "list";
} else if (typeClass.doesExtendOrImplement(this.setClass)) {
return "set";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,16 @@

public class FluentGetterSuggester implements LvtSuggester {

private static final Set<String> ignored = Set.of("byteValue", "shortValue", "intValue", "longValue", "floatValue", "doubleValue", "booleanValue", "charValue", "get");
private static final Set<String> ignored = Set.of(
"byteValue",
"shortValue",
"intValue",
"longValue",
"floatValue",
"doubleValue",
"booleanValue",
"charValue",
"get");

// 3 instructions, load "this" local var, getfield, return - TODO maybe if there is a CAST,
private static final IntPredicate[] OPCODES_IN_ORDER = new IntPredicate[] {
Expand Down

0 comments on commit 4586316

Please sign in to comment.