Remove synchronized from some methods in NoOpCloseableReference
@@ -27,8 +27,20 @@ public class NoOpCloseableReference<T> extends CloseableReference<T> {
return this;
}
+ @Override
+ public CloseableReference<T> cloneOrNull() {
+ // No ref counting
+ return this;
+ }
+
@Override
public void close() {
// Nop
}
+
+ @Override
+ public boolean isValid() {
+ // Always valid
+ return true;
+ }
}
