"Fossies" - the Fresh Open Source Software Archive  

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

AbstractLogger.java  (apache-log4j-2.11.1-src):AbstractLogger.java  (apache-log4j-2.11.2-src)
skipping to change at line 2144 skipping to change at line 2144
result = new int[1]; result = new int[1];
recursionDepthHolder.set(result); recursionDepthHolder.set(result);
} }
return result; return result;
} }
private static void incrementRecursionDepth() { private static void incrementRecursionDepth() {
getRecursionDepthHolder()[0]++; getRecursionDepthHolder()[0]++;
} }
private static void decrementRecursionDepth() { private static void decrementRecursionDepth() {
int[] depth = getRecursionDepthHolder(); final int[] depth = getRecursionDepthHolder();
depth[0]--; depth[0]--;
if (depth[0] < 0) { if (depth[0] < 0) {
throw new IllegalStateException("Recursion depth became negative: " + depth[0]); throw new IllegalStateException("Recursion depth became negative: " + depth[0]);
} }
} }
/** /**
* Returns the depth of nested logging calls in the current Thread: zero if no logging call has been made, * Returns the depth of nested logging calls in the current Thread: zero if no logging call has been made,
* one if a single logging call without nested logging calls has been made, or more depending on the level of * one if a single logging call without nested logging calls has been made, or more depending on the level of
* nesting. * nesting.
 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)