MCPcopy Create free account
hub / github.com/antlr/codebuff / run

Method run

corpus/java/training/guava/base/internal/Finalizer.java:118–130  ·  view source on GitHub ↗

Loops continuously, pulling references off the queue and cleaning them up.

()

Source from the content-addressed store, hash-verified

116 * Loops continuously, pulling references off the queue and cleaning them up.
117 */
118 @SuppressWarnings("InfiniteLoopStatement")
119 @Override
120 public void run() {
121 while (true) {
122 try {
123 if (!cleanUp(queue.remove())) {
124 break;
125 }
126 } catch (InterruptedException e) {
127 // ignore
128 }
129 }
130 }
131
132 /**
133 * Cleans up a single reference. Catches and logs all throwables.

Callers

nothing calls this directly

Calls 2

cleanUpMethod · 0.95
removeMethod · 0.65

Tested by

no test coverage detected