Skip to content

Commit

Permalink
Update IvoryTower.java
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufaytas committed Sep 6, 2014
1 parent d4ee7a7 commit 0509e48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions singleton/src/main/java/com/iluwatar/IvoryTower.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
*/
public class IvoryTower {

private static IvoryTower instance = new IvoryTower();
private static IvoryTower instance;

private IvoryTower() {
}
private IvoryTower() {}

public static IvoryTower getInstance() {
if(instance == null){
instance = IvoryTower();
}
return instance;
}
}

0 comments on commit 0509e48

Please sign in to comment.