MCPcopy
hub / github.com/google/guava / register

Method register

android/guava/src/com/google/common/io/Closer.java:107–115  ·  view source on GitHub ↗
(@ParametricNullness C closeable)

Source from the content-addressed store, hash-verified

105 */
106 // close. this word no longer has any meaning to me.
107 @CanIgnoreReturnValue
108 @ParametricNullness
109 public <C extends @Nullable Closeable> C register(@ParametricNullness C closeable) {
110 if (closeable != null) {
111 stack.addFirst(closeable);
112 }
113
114 return closeable;
115 }
116
117 /**
118 * Stores the given throwable and rethrows it. It will be rethrown as is if it is an {@code

Callers 15

isEmptyMethod · 0.95
sizeMethod · 0.95
copyToMethod · 0.95
readMethod · 0.95
contentEqualsMethod · 0.95
sliceStreamMethod · 0.95
readMethod · 0.95
mapInternalMethod · 0.95
lengthMethod · 0.95
copyToMethod · 0.95
readMethod · 0.95
readFirstLineMethod · 0.95

Calls 1

addFirstMethod · 0.45