Skip to content
This repository was archived by the owner on Nov 26, 2019. It is now read-only.

Commit 0b50b91

Browse files
committed
# Make demo classes final and constructor private
1 parent db3833d commit 0b50b91

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

client/src/demo/java/com/msc/serverbrowser/PrintServerStatistics.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
* @author Marcel
1717
* @since 21.01.2018
1818
*/
19-
public class PrintServerStatistics {
19+
public final class PrintServerStatistics {
20+
private PrintServerStatistics() {
21+
// Private constructor to prevent instanziation
22+
}
23+
2024
/**
2125
* @param args
2226
* @throws IOException

client/src/demo/java/com/msc/serverbrowser/WhatsLeftToTranslate.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
* @author Marcel
1313
* @since 21.01.2018
1414
*/
15-
public class WhatsLeftToTranslate {
15+
public final class WhatsLeftToTranslate {
16+
17+
private WhatsLeftToTranslate() {
18+
// Private constructor to prevent instanziation
19+
}
20+
1621
/**
1722
* @param args unused
1823
*/

0 commit comments

Comments
 (0)