Projects >> sisu-guice >>0825ed73aa1b13182b4e2a26aadf6029049e5cad

Chunk
Conflicting content
      return "Provider";
    }
  }
<<<<<<< HEAD

  private static class SLF4JLoggerFactory implements InternalFactory, Provider {
    private final Injector injector;

    private org.slf4j.ILoggerFactory loggerFactory;

    SLF4JLoggerFactory(Injector injector) {
      this.injector = injector;
    }

    org.slf4j.ILoggerFactory loggerFactory() {
      if (loggerFactory == null) {
        try {
          loggerFactory = injector.getInstance(org.slf4j.ILoggerFactory.class);
        } catch (Throwable e) {}
        if (loggerFactory == null) {
          loggerFactory = org.slf4j.LoggerFactory.getILoggerFactory();
        }
      }
      return loggerFactory;
    }

    public org.slf4j.Logger get(Errors errors, InternalContext context, Dependency dependency, boolean linked) {
      InjectionPoint injectionPoint = dependency.getInjectionPoint();
      if (injectionPoint != null) {
        return loggerFactory().getLogger(injectionPoint.getMember().getDeclaringClass().getName());
      }
      return loggerFactory().getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
    }

    public org.slf4j.Logger get() {
      return loggerFactory().getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
    }

    public String toString() {
      return "Provider";
    }
  }

=======
  
>>>>>>> 9e2d95b4393bd41b7eb882705d208124e2a4dd18
  private static void bindStage(InjectorImpl injector, Stage stage) {
    Key key = Key.get(Stage.class);
    InstanceBindingImpl stageBinding = new InstanceBindingImpl(
Solution content
      return "Provider";
    }
  }
  
  private static class SLF4JLoggerFactory implements InternalFactory, Provider {
    private final Injector injector;

    private org.slf4j.ILoggerFactory loggerFactory;

    SLF4JLoggerFactory(Injector injector) {
      this.injector = injector;
    }

    org.slf4j.ILoggerFactory loggerFactory() {
      if (loggerFactory == null) {
        try {
          loggerFactory = injector.getInstance(org.slf4j.ILoggerFactory.class);
        } catch (Throwable e) {}
        if (loggerFactory == null) {
          loggerFactory = org.slf4j.LoggerFactory.getILoggerFactory();
        }
      }
      return loggerFactory;
    }

    public org.slf4j.Logger get(Errors errors, InternalContext context, Dependency dependency, boolean linked) {
      InjectionPoint injectionPoint = dependency.getInjectionPoint();
      if (injectionPoint != null) {
        return loggerFactory().getLogger(injectionPoint.getMember().getDeclaringClass().getName());
      }
      return loggerFactory().getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
    }
    public org.slf4j.Logger get() {
      return loggerFactory().getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
    }

    public String toString() {
      return "Provider";
    }
  }

  private static void bindStage(InjectorImpl injector, Stage stage) {
    Key key = Key.get(Stage.class);
    InstanceBindingImpl stageBinding = new InstanceBindingImpl(
File
InjectorShell.java
Developer's decision
Version 1
Kind of conflict
Class declaration