MCPcopy Index your code
hub / github.com/BoltsFramework/Bolts-Java / incrementDepth

Method incrementDepth

Bolts/src/bolts/Task.java:44–52  ·  view source on GitHub ↗

Increments the depth. @return the new depth value.

()

Source from the content-addressed store, hash-verified

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.

Callers 1

executeMethod · 0.95

Calls 2

getMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected