This recipe replaces methods returning void that are deprecated in the SecurityManager class in Java SE 11.
The methods checkAwtEventQueueAccess(),checkSystemClipboardAccess(),checkMemberAccess() and checkTopLevelWindow() are replaced by checkPermission(new java.security.AllPermission()).
Since it was not possible to test the recipe. I created sample files, created a local plugin using
./gradlew publishToMavenLocal then ran it in the Java8 Sample App using mvn rewrite:dryRun
What's changed?
Added recipe for the following:
This recipe replaces methods returning
void
that are deprecated in theSecurityManager
class in Java SE 11. The methodscheckAwtEventQueueAccess()
,checkSystemClipboardAccess()
,checkMemberAccess()
andcheckTopLevelWindow()
are replaced bycheckPermission(new java.security.AllPermission())
.Since it was not possible to test the recipe. I created sample files, created a local plugin using
./gradlew publishToMavenLocal
then ran it in the Java8 Sample App usingmvn rewrite:dryRun
Attaching the rewrite.patch file rewrite.patch
Anyone you would like to review specifically?
Checklist