Increments the depth. @return the new depth value.
()
| 42 | * @return the new depth value. |
| 43 | */ |
| 44 | private int incrementDepth() { |
| 45 | Integer oldDepth = executionDepth.get(); |
| 46 | if (oldDepth == null) { |
| 47 | oldDepth = 0; |
| 48 | } |
| 49 | int newDepth = oldDepth.intValue() + 1; |
| 50 | executionDepth.set(newDepth); |
| 51 | return newDepth; |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Decrements the depth. |