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

Method decrementDepth

Bolts/src/bolts/Task.java:59–71  ·  view source on GitHub ↗

Decrements the depth. @return the new depth value.

()

Source from the content-addressed store, hash-verified

57 * @return the new depth value.
58 */
59 private int decrementDepth() {
60 Integer oldDepth = executionDepth.get();
61 if (oldDepth == null) {
62 oldDepth = 0;
63 }
64 int newDepth = oldDepth.intValue() - 1;
65 if (newDepth == 0) {
66 executionDepth.remove();
67 } else {
68 executionDepth.set(newDepth);
69 }
70 return newDepth;
71 }
72
73 public void execute(Runnable command) {
74 int depth = incrementDepth();

Callers 1

executeMethod · 0.95

Calls 2

getMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected