"Fossies" - the Fresh Open Source Software Archive  

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

TestPatternConverters.java  (apache-log4j-2.11.1-src):TestPatternConverters.java  (apache-log4j-2.11.2-src)
skipping to change at line 47 skipping to change at line 47
super("Parameters", "testparameters"); super("Parameters", "testparameters");
} }
public static TestParametersPatternConverter newInstance(final String[] options) { public static TestParametersPatternConverter newInstance(final String[] options) {
return new TestParametersPatternConverter(); return new TestParametersPatternConverter();
} }
@Override @Override
public void format(final LogEvent event, final StringBuilder toAppendTo) { public void format(final LogEvent event, final StringBuilder toAppendTo) {
toAppendTo.append('['); toAppendTo.append('[');
Object[] parameters = event.getMessage().getParameters(); final Object[] parameters = event.getMessage().getParameters();
if (parameters != null) { if (parameters != null) {
for (int i = 0; i < parameters.length; i++) { for (int i = 0; i < parameters.length; i++) {
StringBuilders.appendValue(toAppendTo, parameters[i]); StringBuilders.appendValue(toAppendTo, parameters[i]);
if (i != parameters.length - 1) { if (i != parameters.length - 1) {
toAppendTo.append(','); toAppendTo.append(',');
} }
} }
} }
toAppendTo.append(']'); toAppendTo.append(']');
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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