"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-core/src/main/java/org/apache/logging/log4j/core/impl/MementoMessage.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).

MementoMessage.java  (apache-log4j-2.11.1-src):MementoMessage.java  (apache-log4j-2.11.2-src)
skipping to change at line 39 skipping to change at line 39
* {@link Message#getFormat()} and {@link Message#getParameters()} values. * {@link Message#getFormat()} and {@link Message#getParameters()} values.
* *
* @since 3.0 * @since 3.0
*/ */
public final class MementoMessage implements Message, StringBuilderFormattable { public final class MementoMessage implements Message, StringBuilderFormattable {
private final String formattedMessage; private final String formattedMessage;
private final String format; private final String format;
private final Object[] parameters; private final Object[] parameters;
public MementoMessage(String formattedMessage, String format, Object[] param eters) { public MementoMessage(final String formattedMessage, final String format, fi nal Object[] parameters) {
this.formattedMessage = formattedMessage; this.formattedMessage = formattedMessage;
this.format = format; this.format = format;
this.parameters = parameters; this.parameters = parameters;
} }
@Override @Override
public String getFormattedMessage() { public String getFormattedMessage() {
return formattedMessage; return formattedMessage;
} }
skipping to change at line 71 skipping to change at line 71
* Always returns null. * Always returns null.
* *
* @return null * @return null
*/ */
@Override @Override
public Throwable getThrowable() { public Throwable getThrowable() {
return null; return null;
} }
@Override @Override
public void formatTo(StringBuilder buffer) { public void formatTo(final StringBuilder buffer) {
buffer.append(formattedMessage); buffer.append(formattedMessage);
} }
@Override @Override
public String toString() { public String toString() {
return "MementoMessage{" + return "MementoMessage{" +
"formattedMessage='" + formattedMessage + '\'' + "formattedMessage='" + formattedMessage + '\'' +
", format='" + format + '\'' + ", format='" + format + '\'' +
", parameters=" + Arrays.toString(parameters) + ", parameters=" + Arrays.toString(parameters) +
'}'; '}';
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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