"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-1.2-api/src/main/java/org/apache/log4j/AppenderSkeleton.java" between
apache-log4j-2.11.1-src.tar.gz and apache-log4j-2.11.2-src.tar.gz

About: Apache Log4j 2 is a logging library for Java. Source distribution (Java).

AppenderSkeleton.java  (apache-log4j-2.11.1-src):AppenderSkeleton.java  (apache-log4j-2.11.2-src)
skipping to change at line 59 skipping to change at line 59
protected AppenderSkeleton(final boolean isActive) { protected AppenderSkeleton(final boolean isActive) {
super(); super();
} }
@Override @Override
public void activateOptions() { public void activateOptions() {
} }
@Override @Override
public void addFilter(Filter newFilter) { public void addFilter(final Filter newFilter) {
if(headFilter == null) { if(headFilter == null) {
headFilter = tailFilter = newFilter; headFilter = tailFilter = newFilter;
} else { } else {
tailFilter.setNext(newFilter); tailFilter.setNext(newFilter);
tailFilter = newFilter; tailFilter = newFilter;
} }
} }
protected abstract void append(LoggingEvent event); protected abstract void append(LoggingEvent event);
skipping to change at line 107 skipping to change at line 107
@Override @Override
public final String getName() { public final String getName() {
return this.name; return this.name;
} }
public Priority getThreshold() { public Priority getThreshold() {
return threshold; return threshold;
} }
public boolean isAsSevereAsThreshold(Priority priority) { public boolean isAsSevereAsThreshold(final Priority priority) {
return ((threshold == null) || priority.isGreaterOrEqual(threshold)); return ((threshold == null) || priority.isGreaterOrEqual(threshold));
} }
/** /**
* This method is never going to be called in Log4j 2 so there isn't much po int in having any code in it. * This method is never going to be called in Log4j 2 so there isn't much po int in having any code in it.
* @param event The LoggingEvent. * @param event The LoggingEvent.
*/ */
@Override @Override
public void doAppend(LoggingEvent event) { public void doAppend(final LoggingEvent event) {
} }
/** /**
* Set the {@link ErrorHandler} for this Appender. * Set the {@link ErrorHandler} for this Appender.
* *
* @since 0.9.0 * @since 0.9.0
*/ */
@Override @Override
public synchronized void setErrorHandler(ErrorHandler eh) { public synchronized void setErrorHandler(final ErrorHandler eh) {
if (eh != null) { if (eh != null) {
this.errorHandler = eh; this.errorHandler = eh;
} }
} }
@Override @Override
public void setLayout(Layout layout) { public void setLayout(final Layout layout) {
this.layout = layout; this.layout = layout;
} }
@Override @Override
public void setName(String name) { public void setName(final String name) {
this.name = name; this.name = name;
} }
public void setThreshold(Priority threshold) { public void setThreshold(final Priority threshold) {
this.threshold = threshold; this.threshold = threshold;
} }
public static class NoOpErrorHandler implements ErrorHandler { public static class NoOpErrorHandler implements ErrorHandler {
@Override @Override
public void setLogger(Logger logger) { public void setLogger(final Logger logger) {
} }
@Override @Override
public void error(String message, Exception e, int errorCode) { public void error(final String message, final Exception e, final int err orCode) {
} }
@Override @Override
public void error(String message) { public void error(final String message) {
} }
@Override @Override
public void error(String message, Exception e, int errorCode, LoggingEve nt event) { public void error(final String message, final Exception e, final int err orCode, final LoggingEvent event) {
} }
@Override @Override
public void setAppender(Appender appender) { public void setAppender(final Appender appender) {
} }
@Override @Override
public void setBackupAppender(Appender appender) { public void setBackupAppender(final Appender appender) {
} }
} }
} }
 End of changes. 13 change blocks. 
13 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)