summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/test/com/siyeh/igtest/logging/logger_initialized_with_foreign_class/LoggerInitializedWithForeignClass.java
blob: b252b8af1cd3e00eea77f72141dbdcd7c293e027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import java.util.logging.*;

class LoggerInitializedWithForeignClass {

  void foo() {
    new Object() {
      void bar() {
        Logger.getLogger(LoggerInitializedWithForeignClass.class.getName());
        Logger.getLogger(<warning descr="Logger initialized with foreign class 'String.class'">String.class</warning>.getName());
      }
    };
  }
}