Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus82 committed Jul 26, 2015
1 parent 6244e03 commit 0b44eb0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/it/albertus/util/TerminalConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ public class TerminalConsole extends Console {
private final PrintStream out;

private static class Singleton {
private static final TerminalConsole console = new TerminalConsole(System.out);
private static final TerminalConsole CONSOLE = new TerminalConsole(System.out);
}

public static TerminalConsole getInstance() {
return Singleton.console;
return Singleton.CONSOLE;
}

private TerminalConsole(PrintStream printStream) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/it/albertus/util/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public class Version {

// Lazy initialization...
private static class Singleton {
private static final Version version = new Version();
private static final Version VERSION = new Version();
}

public static Version getInstance() {
return Singleton.version;
return Singleton.VERSION;
}

protected Version() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version.number=2.0.1
version.date=2015-07-25
version.date=2015-07-26

0 comments on commit 0b44eb0

Please sign in to comment.