Skip to content

Commit

Permalink
8327790: Improve javadoc for ResolvedJavaType.hasFinalizableSubclass
Browse files Browse the repository at this point in the history
Reviewed-by: gdub, never
  • Loading branch information
Doug Simon committed Mar 11, 2024
1 parent 18de932 commit b9bc31f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -40,10 +40,12 @@ public interface ResolvedJavaType extends JavaType, ModifiersProvider, Annotated
boolean hasFinalizer();

/**
* Checks whether this type has any finalizable subclasses so far. Any decisions based on this
* information require the registration of a dependency, since this information may change.
* Checks whether this type might have finalizable subclasses. Any decisions based on a
* negative answer require the registration of a dependency, since this information may change.
* For example, dynamic class loading can later load a finalizable subclass.
*
* @return {@code true} if this class has any subclasses with finalizers
* @return an {@link AssumptionResult} specifying if this class may have any subclasses with
* finalizers along with any assumptions under which this answer holds
*/
AssumptionResult<Boolean> hasFinalizableSubclass();

Expand Down

1 comment on commit b9bc31f

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.