Skip to content

ReflectionSupport#tryToGetResources never returns a failed Try #4791

@ptomli

Description

@ptomli

Version: github/main (e1f503f)

Not sure if this is a documentation issue, or a genuine bug. I implemented some code based on the docs and it didn't work for me, so I went digging.

I wanted to be able to do something like

ReflectionSupport.tryToGetResources("blah").toOptional().isPresent();

which would appear to be supported by the documented API, but not the implementation.

Steps to reproduce

Run the attached test

Context

  • Build Tool/IDE: IntelliJ

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions