Externalize ForbiddenAPI restrictions and make rules stricter

Description

ForbiddenAPI is quite useful to prepare for future JDK versions, so we're using it more. With more complex rules it's starting to become more convenient to declare the banned signatures in a dedicated resource file.

Since our tests occasionally do have grounds to need doing some dodgy things we'll keep a dedicated resource file for tests, so to be able to tune the rules separately.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Minor
Configure