Skip to content

Commit

Permalink
Merge pull request #359 from jing-xuan/master
Browse files Browse the repository at this point in the history
fixed log issue
  • Loading branch information
jing-xuan authored Nov 11, 2019
2 parents 4904a0e + c90b063 commit 02fb5de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ checkstyle {

shadowJar {
archiveBaseName = "farmio"
archiveVersion = "v1.0"
archiveVersion = "v1.4"
archiveClassifier = null
archiveAppendix = null
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/logic/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private static Command parseTaskAdd(String userInput) throws FarmioException {
if (userInput.equals("market")) {
return new CommandShowList("MarketList");
}
if (userInput.equals("task logic.commands") || userInput.equals("task command")) {
if (userInput.equals("task commands") || userInput.equals("task command")) {
return new CommandShowList("TaskCommands");
}
if (userInput.startsWith("do") || userInput.startsWith("if")) {
Expand Down Expand Up @@ -225,7 +225,7 @@ private static Command parseTaskLog(String userInput) throws FarmioException {
if (matcher.find()) {
int pageNumber = 0;
try {
Integer.parseInt(matcher.group("index"));
pageNumber = Integer.parseInt(matcher.group("index"));
} catch (NumberFormatException e) {
throw new FarmioException("Your number is too big!");
}
Expand Down Expand Up @@ -327,7 +327,7 @@ private static Command parseTaskEdit(String userInput) throws FarmioException {
if (matcher.find()) {
int taskID = 0;
try {
Integer.parseInt(matcher.group("index"));
taskID = Integer.parseInt(matcher.group("index"));
} catch (NumberFormatException e) {
throw new FarmioException("Your number is too large");
}
Expand All @@ -350,7 +350,7 @@ private static Command parseTaskInsert(String userInput) throws FarmioException
if (matcher.find()) {
int taskID = 0;
try {
Integer.parseInt(matcher.group("id"));
taskID = Integer.parseInt(matcher.group("id"));
} catch (NumberFormatException e) {
throw new FarmioException("Your number is too large!");
}
Expand Down

0 comments on commit 02fb5de

Please sign in to comment.