You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin rewrites method bodies to throw `NullPointerException` on invocation:
20
+
21
+
-**Instance methods**: replaced with `throw null`.
22
+
-**Constructors**: preserved `this()/super()` chaining, then `throw null`.
23
+
-**Static initializers**: replaced with minimal field assignments (sets static fields to type-appropriate defaults: `0`, `false`, or `null`). This drastically reduces bytecode size while ensuring the class loads correctly.
24
+
-**Abstract/native methods**: bodies left unchanged (they have no bodies).
25
+
-**Synthetic bridge methods**: rewritten like regular methods (bridges still exist as method symbols).
26
+
17
27
### Plugin arguments
18
28
19
29
-`ignorePackage=<packageName>`: skips rewriting for classes in the package and its subpackages. Repeat the argument to ignore multiple package roots. Ignored classes are logged as `javac` notices during compilation.
0 commit comments