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

Method register

corpus/java/training/guava/io/Closer.java:127–134  ·  view source on GitHub ↗
(@Nullable C closeable)

Source from the content-addressed store, hash-verified

125 */
126 // close. this word no longer has any meaning to me.
127 @CanIgnoreReturnValue
128 public <C extends Closeable> C register(@Nullable C closeable) {
129 if (closeable != null) {
130 stack.addFirst(closeable);
131 }
132
133 return closeable;
134 }
135
136 /**
137 * Stores the given throwable and rethrows it. It will be rethrown as is if it is an

Callers 15

writeMethod · 0.95
writeFromMethod · 0.95
isEmptyMethod · 0.95
sizeMethod · 0.95
copyToMethod · 0.95
readMethod · 0.95
contentEqualsMethod · 0.95
sliceStreamMethod · 0.95
readMethod · 0.95
mapMethod · 0.95
writeMethod · 0.95
writeLinesMethod · 0.95

Calls 1

addFirstMethod · 0.45

Tested by

no test coverage detected