Skip to content

Commit

Permalink
Merge pull request Col-E#757 from NoSkillPureAndy/master
Browse files Browse the repository at this point in the history
fix: Fixed misspelling of "parameters" in some instruction parsers
  • Loading branch information
Col-E authored Jan 2, 2024
2 parents d2e9dc7 + b7f607a commit 7e0add9
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public AliasAST visit(int lineNo, String line) throws ASTParseException {
try {
String[] trim = line.trim().split("\\s+");
if (trim.length < 2)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
int start = line.indexOf(trim[0]);
// op
OpcodeParser opParser = new OpcodeParser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public HandleAST visit(int lineNo, String line) throws ASTParseException {
try {
String[] trim = line.trim().split("\\s+");
if (trim.length < 2)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
int start = line.indexOf(trim[0]);
// op
TagParser opParser = new TagParser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public IincInsnAST visit(int lineNo, String line) throws ASTParseException {
try {
String[] trim = line.trim().split("\\s+");
if (trim.length < 3)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
int start = line.indexOf(trim[0]);
// op
OpcodeParser opParser = new OpcodeParser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public IntInsnAST visit(int lineNo, String line) throws ASTParseException {
try {
String[] trim = line.trim().split("\\s+");
if (trim.length < 2)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
int start = line.indexOf(trim[0]);
// op
OpcodeParser opParser = new OpcodeParser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public InvokeDynamicAST visit(int lineNo, String line) throws ASTParseException
// INVOKEDYNAMIC name desc handle[...] args[...]
String[] trim = line.trim().split("\\s+(?=.*\\[(?=.*\\[))");
if (trim.length < 4)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
// 0 = op
// 1 = name
// 2 = desc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public JumpInsnAST visit(int lineNo, String line) throws ASTParseException {
try {
String[] trim = line.trim().split("\\s+");
if (trim.length < 2)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
int start = line.indexOf(trim[0]);
// op
OpcodeParser opParser = new OpcodeParser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public LineInsnAST visit(int lineNo, String line) throws ASTParseException {
try {
String[] trim = line.trim().split("\\s+");
if (trim.length < 3)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
int start = line.indexOf(trim[0]);
// op
OpcodeParser opParser = new OpcodeParser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public LookupSwitchInsnAST visit(int lineNo, String line) throws ASTParseExcepti
// Collect parameters
String[] data = RegexUtil.allMatches(line, "(?<=\\[).*?(?=\\])");
if (data.length < 2)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
// mapping
String mapS = data[0];
Map<NumberAST, NameAST> mapping = new LinkedHashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public MethodInsnAST visit(int lineNo, String line) throws ASTParseException {
try {
String[] trim = line.trim().split("\\s+");
if (trim.length < 2)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
int start = line.indexOf(trim[0]);
// op
OpcodeParser opParser = new OpcodeParser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public MultiArrayInsnAST visit(int lineNo, String line) throws ASTParseException
try {
String[] trim = line.trim().split("\\s+");
if (trim.length < 2)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
int start = line.indexOf(trim[0]);
// op
OpcodeParser opParser = new OpcodeParser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public SignatureAST visit(int lineNo, String line) throws ASTParseException {
try {
String[] trim = line.trim().split("\\s+");
if (trim.length < 2)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
String sig = trim[1];
// TODO: Verify signature?
// - Technically you can put in garbage data in here...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public TableSwitchInsnAST visit(int lineNo, String line) throws ASTParseExceptio
// Collect parameters
String[] data = RegexUtil.allMatches(line, "(?<=\\[).*?(?=\\])");
if (data.length < 3)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
// min & max
String minMaxS = data[0];
if (!minMaxS.contains(":"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public TypeInsnAST visit(int lineNo, String line) throws ASTParseException {
try {
String[] trim = line.trim().split("\\s+");
if (trim.length < 2)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
int start = line.indexOf(trim[0]);
// op
OpcodeParser opParser = new OpcodeParser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public VarInsnAST visit(int lineNo, String line) throws ASTParseException {
try {
String[] trim = line.trim().split("\\s+");
if (trim.length < 2)
throw new ASTParseException(lineNo, "Not enough paramters");
throw new ASTParseException(lineNo, "Not enough parameters");
int start = line.indexOf(trim[0]);
// op
OpcodeParser opParser = new OpcodeParser();
Expand Down

0 comments on commit 7e0add9

Please sign in to comment.