Skip to content

Commit

Permalink
Gradle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MMosley502 committed Apr 28, 2023
1 parent 52344ea commit 1d1a562
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ public boolean isValidDimensions(int rows, int columns) {
* @return true if the statements are valid for Short Truth Table, false otherwise
*/
public boolean isValidTextInput(String[] statements) {
if (statements.length == 0)
if (statements.length == 0) {
return false;

}
ShortTruthTableImporter importer = (ShortTruthTableImporter) this.getImporter();
for (String s : statements)
if (!importer.validGrammar(s))
for (String s : statements) {
if (!importer.validGrammar(s)) {
return false;
}
}
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public void setCell(int x, int y, Element e, MouseEvent m) {
if (i == c) {
ShortTruthTableCell newC = new ShortTruthTableCell(s.getCell(i).getSymbol(), s.getCell(i).getType(), s.getCell(i).getLocation());
cells.add(newC);
} else {
}
else {
cells.add(s.getCell(c));
}
}
Expand Down

0 comments on commit 1d1a562

Please sign in to comment.