Filename extension retrieval methods returning Optional.

Description

The Filenames.getExtension(String) method would be better if it returned Optional rather than a nullable string. Create a Filenames.findExtension(String) method and deprecate the one that returns a nullable; update as many references as possible to the deprecated version.

If there are any similar or related methods (e.g. finding a filename extension of a URI), do the same for them.

Environment

None

Assignee

Garret Wilson

Reporter

Garret Wilson

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure