Skip to content

Commit 2964494

Browse files
committed
Add private constructor to LoggerContext
The class should be only instantiated with the getInstance() method.
1 parent 9fbab59 commit 2964494

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/logger

‎AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/logger/LoggerContext.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public class LoggerContext {
3636
private Level currentLevel = DEFAULT_LEVEL;
3737
private List<Appender> appenders = new ArrayList<Appender>();
3838

39+
private LoggerContext() {
40+
41+
}
42+
3943
public static LoggerContext getInstance() {
4044
if (instance == null) {
4145
synchronized (LoggerContext.class) {

0 commit comments

Comments
 (0)