Skip to content

Commit

Permalink
make NOPLoggingEventBuilder constructor private and allow access via …
Browse files Browse the repository at this point in the history
…the singleton
  • Loading branch information
ceki committed Jun 29, 2021
1 parent 3d01cc2 commit 49356a7
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -6,7 +6,8 @@

/**
* A no-operation implementation of {@link LoggingEventBuilder}.
* As the name indicates, this implementation does nothing.
* As the name indicates, this implementation does nothing or alternatively returns
* a singleton, i.e. the unique instance of this class.
*
* @author Ceki Gülcü
* @since 2.0.0
Expand All @@ -16,6 +17,10 @@ public class NOPLoggingEventBuilder implements LoggingEventBuilder {

static final NOPLoggingEventBuilder SINGLETON = new NOPLoggingEventBuilder();


private NOPLoggingEventBuilder() {
}

public static LoggingEventBuilder singleton() {
return SINGLETON;
}
Expand Down

0 comments on commit 49356a7

Please sign in to comment.