Skip to content

Use Optional#orElseThrow instead of Optional#get #3976

Description

@filiphr

Follow up on #674. In some places instead of using Optional#get we could use Optional#orElseThrow if we are on Java 10 or later.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions