Annotate all the things

This commit is contained in:
FalsePattern committed 2022-08-06 13:12:55 +02:00
1 parent 980e8a8776
commit da1ef6c8c7
63 files changed
+623 -369

No files matched your search

@@ -20,7 +20,11 @@
*/
package com.falsepattern.lib.asm.exceptions;
import com.falsepattern.lib.StableAPI;
@StableAPI(since = "0.10.0")
public class AsmClassNotFoundException extends AsmTransformException {
@StableAPI.Internal
public AsmClassNotFoundException(final String clazz) {
super("can't find class " + clazz);
}
@@ -20,7 +20,11 @@
*/
package com.falsepattern.lib.asm.exceptions;
import com.falsepattern.lib.StableAPI;
@StableAPI(since = "0.10.0")
public class AsmFieldNotFoundException extends AsmTransformException {
@StableAPI.Internal
public AsmFieldNotFoundException(final String field) {
super("can't find field " + field);
}
@@ -20,6 +20,9 @@
*/
package com.falsepattern.lib.asm.exceptions;
import com.falsepattern.lib.StableAPI;
@StableAPI(since = "0.10.0")
public class AsmMethodNotFoundException extends AsmTransformException {
public AsmMethodNotFoundException(final String method) {
super("can't find method " + method);
@@ -20,15 +20,21 @@
*/
package com.falsepattern.lib.asm.exceptions;
import com.falsepattern.lib.StableAPI;
@StableAPI(since = "0.10.0")
public class AsmTransformException extends RuntimeException {
@StableAPI.Expose
public AsmTransformException(final String message) {
super(message);
}
@StableAPI.Expose
public AsmTransformException(final Throwable cause) {
super(cause);
}
@StableAPI.Expose
public AsmTransformException(final String message, final Throwable cause) {
super(message, cause);
}