Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update annotations to match webview
  • Loading branch information
stuartmorgan-g committed May 17, 2023
commit 8739d3c773566ee9a6d95c4b29bd7d785b54a605
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public <T> T remove(long identifier) {
* `null` if the manager doesn't contain the value.
*/
@Nullable
public Long getIdentifierForStrongReference(@NonNull Object instance) {
public Long getIdentifierForStrongReference(@Nullable Object instance) {
logWarningIfFinalizationListenerHasStopped();

final Long identifier = identifiers.get(instance);
Expand Down Expand Up @@ -178,7 +178,7 @@ public <T> T getInstance(long identifier) {
* @param instance the instance whose presence in this manager is to be tested.
* @return whether this manager contains the given `instance`.
*/
public boolean containsInstance(@NonNull Object instance) {
public boolean containsInstance(@Nullable Object instance) {
logWarningIfFinalizationListenerHasStopped();
return identifiers.containsKey(instance);
}
Expand Down