Skip to content

Commit

Permalink
Trivial refactoring to Java 17 style
Browse files Browse the repository at this point in the history
  • Loading branch information
Gene Gleyzer committed Apr 20, 2022
1 parent 4e6bc57 commit 001e1d5
Show file tree
Hide file tree
Showing 51 changed files with 281 additions and 308 deletions.
4 changes: 2 additions & 2 deletions javatools/src/main/java/org/xvm/asm/Argument.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ static String toIdString(Argument arg, int nArg)
}
}
}
catch (Throwable e) {}
catch (Throwable ignore) {}

return Register.getIdString(nArg);
}
}
}
4 changes: 2 additions & 2 deletions javatools/src/main/java/org/xvm/asm/AssemblerContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public ConditionalConstant asCondition()
return list.get(0);
}

return m_pool.ensureAllCondition(list.toArray(new ConditionalConstant[list.size()]));
return m_pool.ensureAllCondition(list.toArray(new ConditionalConstant[0]));
}

/**
Expand Down Expand Up @@ -399,4 +399,4 @@ public void endIfVersion(ModuleConstant constModule, VersionConstant constVer)
* Modification indicator.
*/
private long m_nIndicator;
}
}
4 changes: 2 additions & 2 deletions javatools/src/main/java/org/xvm/asm/ComponentBifurcator.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ private Component split(ConditionalConstant cond)
return componentTrue;
}

private Component unsplit;
private final Component unsplit;
private ConditionalConstant splitter;
private ComponentBifurcator iftrue;
private ComponentBifurcator iffalse;
}
}
Loading

0 comments on commit 001e1d5

Please sign in to comment.