< prev index next >
src/java.base/share/classes/java/lang/ref/Cleaner.java
Print this page
@@ -215,11 +215,11 @@
* @return a {@code Cleanable} instance
*/
public Cleanable register(Object obj, Runnable action) {
Objects.requireNonNull(obj, "obj");
Objects.requireNonNull(action, "action");
- return new CleanerImpl.PhantomCleanableRef(obj, this, action);
+ return new CleanerImpl.PhantomCleanableImpl(obj, this, action);
}
/**
* {@code Cleanable} represents an object and a
* cleaning action registered in a {@code Cleaner}.
< prev index next >