Skip to content

Commit b5f3aed

Browse files
committed
Improve naming.
1 parent c826b4e commit b5f3aed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/apache/ibatis/migration/CommandLine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void execute() {
4545
} catch (Exception e) {
4646
String errorMessage = e.getMessage();
4747

48-
if (selectedOptions.isColor()) {
48+
if (selectedOptions.hasColor()) {
4949
console.printf(ConsoleColors.RED + "\nERROR: %s%n", errorMessage + ConsoleColors.RESET);
5050
} else {
5151
console.printf("\nERROR: %s%n", errorMessage);
@@ -81,7 +81,7 @@ private void runCommand(SelectedOptions selectedOptions) {
8181
} finally {
8282
console.printf("------------------------------------------------------------------------%n");
8383

84-
if (selectedOptions.isColor()) {
84+
if (selectedOptions.hasColor()) {
8585
console.printf("-- MyBatis Migrations %s%s%s%n", (exceptionCaught) ? ConsoleColors.RED : ConsoleColors.GREEN,
8686
(exceptionCaught) ? "FAILURE" : "SUCCESS", ConsoleColors.RESET);
8787
} else {

src/main/java/org/apache/ibatis/migration/options/SelectedOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public boolean isQuiet() {
3232
return quiet;
3333
}
3434

35-
public boolean isColor() {
35+
public boolean hasColor() {
3636
return color;
3737
}
3838

0 commit comments

Comments
 (0)