mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
24 lines
377 B
Java
24 lines
377 B
Java
// "Move assignment to field declaration" "INFORMATION"
|
|
public class Test {
|
|
static LoggingSystem LOG = LoggingSystem.getLogger();
|
|
|
|
static {
|
|
LoggingSystem.init();
|
|
}
|
|
}
|
|
|
|
class LoggingSystem {
|
|
private static LoggingSystem L;
|
|
|
|
static LoggingSystem getLogger() {
|
|
return L;
|
|
}
|
|
|
|
static void init() {
|
|
if(L == null) {
|
|
L = new LoggingSystem();
|
|
}
|
|
}
|
|
}
|
|
|