return underlying object instead of the Optional object (#11596)

This commit is contained in:
Frank Chen 2021-09-09 13:30:57 +08:00 committed by GitHub
parent 3c46577eec
commit 155a0c7a5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class LookupListeningResource extends ListenerResource
@Override
public Object get(String id)
{
return manager.get(id);
return manager.get(id).orElse(null);
}
@Override