Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
grobmeier committed Dec 20, 2023
1 parent 9fcf7a1 commit a451df4
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 283 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import java.util.EventListener;


/**
* Implementations are notified when new Logger names
* are added to the related LoggerNameModel instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import java.util.Collection;


/**
* Implementations of this model contain all the known Logger
* names within it's model space.
Expand All @@ -42,11 +41,11 @@ public interface LoggerNameModel {
* Attempts to add the loggerName to the model, and returns
* true if it does, i.e that the loggerName is new, otherwise
* it is ignored.
* <p>
* <p />
* If the loggerName is new for this model, all the LoggerNameListeners
* are notified using this thread.
*
* @param loggerName
* @param loggerName the logger name to add
*/
boolean addLoggerName(String loggerName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,14 @@
import java.util.HashSet;
import java.util.Set;


/**
* An implementation of LoggerNameModel which can be used as a delegate
*
* @author Paul Smith &lt;psmith@apache.org&gt;
*/
public class LoggerNameModelSupport implements LoggerNameModel {

private Set<String> loggerNameSet = new HashSet<>();
private EventListenerList listenerList = new EventListenerList();

private final Set<String> loggerNameSet = new HashSet<>();
private final EventListenerList listenerList = new EventListenerList();

/* (non-Javadoc)
* @see org.apache.log4j.chainsaw.components.loggernamepanel.LoggerNameModel#getLoggerNames()
Expand Down
Loading

0 comments on commit a451df4

Please sign in to comment.