Skip to content

Commit

Permalink
rename org/slf4j/helpers/NOPServiceProvider as NOP_FallbackServicePro…
Browse files Browse the repository at this point in the history
…vider

Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Aug 10, 2021
1 parent 7483a11 commit 316e590
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions slf4j-api/src/main/java/org/slf4j/LoggerFactory.java
Expand Up @@ -36,7 +36,7 @@
import java.util.concurrent.LinkedBlockingQueue;

import org.slf4j.event.SubstituteLoggingEvent;
import org.slf4j.helpers.NOPServiceProvider;
import org.slf4j.helpers.NOP_FallbackServiceProvider;
import org.slf4j.helpers.SubstituteServiceProvider;
import org.slf4j.helpers.SubstituteLogger;

Expand Down Expand Up @@ -88,7 +88,7 @@ public final class LoggerFactory {

static volatile int INITIALIZATION_STATE = UNINITIALIZED;
static final SubstituteServiceProvider SUBST_PROVIDER = new SubstituteServiceProvider();
static final NOPServiceProvider NOP_FALLBACK_FACTORY = new NOPServiceProvider();
static final NOP_FallbackServiceProvider NOP_FALLBACK_SERVICE_PROVIDER = new NOP_FallbackServiceProvider();

// Support for detecting mismatched logger names.
static final String DETECT_LOGGER_NAME_MISMATCH_PROPERTY = "slf4j.detectLoggerNameMismatch";
Expand Down Expand Up @@ -426,7 +426,7 @@ static SLF4JServiceProvider getProvider() {
case SUCCESSFUL_INITIALIZATION:
return PROVIDER;
case NOP_FALLBACK_INITIALIZATION:
return NOP_FALLBACK_FACTORY;
return NOP_FALLBACK_SERVICE_PROVIDER;
case FAILED_INITIALIZATION:
throw new IllegalStateException(UNSUCCESSFUL_INIT_MSG);
case ONGOING_INITIALIZATION:
Expand Down
Expand Up @@ -5,7 +5,7 @@
import org.slf4j.spi.MDCAdapter;
import org.slf4j.spi.SLF4JServiceProvider;

public class NOPServiceProvider implements SLF4JServiceProvider {
public class NOP_FallbackServiceProvider implements SLF4JServiceProvider {

/**
* Declare the version of the SLF4J API this implementation is compiled
Expand Down

0 comments on commit 316e590

Please sign in to comment.