Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 35ffc92

Browse files
author
Aleksi Salmela
committed
Fix few checkstyle warnings.
1 parent 020a78c commit 35ffc92

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/fi/helsinki/cs/tmc/cli/command/DownloadExercisesCommand.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,19 @@ public void run(CommandLine args, Io io) {
8181
if (course.getExercises().isEmpty()) {
8282
io.println("The '" + courseName + "' course doesn't have any exercises.");
8383
} else {
84-
io.println("The '" + courseName + "' course has " +
85-
course.getExercises().size() + " exercises");
84+
io.println("The '" + courseName + "' course has "
85+
+ course.getExercises().size() + " exercises");
8686

8787
int failedCount = (filtered.size() - exercises.size());
8888
if (failedCount > 0) {
89-
io.println(" from which " +
90-
exercises.size() + " exercises were succesfully downloaded");
89+
io.println(" from which "
90+
+ exercises.size() + " exercises were succesfully downloaded");
9191
io.println(Color.colorString(" and of which " + failedCount + " failed.",
9292
Color.AnsiColor.ANSI_RED));
9393
//TODO we could print the names of the not downloaded exercises here
9494
} else {
95-
io.println(" from which " +
96-
exercises.size() + " exercises were downloaded.");
95+
io.println(" from which "
96+
+ exercises.size() + " exercises were downloaded.");
9797
}
9898
io.println("Use -a flag to download also your completed exercises.");
9999
}

src/main/java/fi/helsinki/cs/tmc/cli/io/TerminalIo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public String readPassword(String prompt) {
3434
logger.warn("Password could not be read.", e);
3535
}
3636
} else {
37-
logger.warn("Failed to read password due to System.console()");
37+
logger.warn("Failed to read password due to System.console()");
3838
}
3939
println("Unable to read password securely. Reading password in cleartext.");
4040
println("Press Ctrl+C to abort");

0 commit comments

Comments
 (0)