Skip to content

Commit b3fda1e

Browse files
committed
test: Ensure access matches between test src and transform methods
1 parent 89917b3 commit b3fda1e

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

src/test/java/io/github/notstirred/dasm/test/tests/implicit_method_redirects/TestTrivialImplicitMethodRedirectsDueToTypeRedirects.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public TestTrivialImplicitMethodRedirectsDueToTypeRedirects() {
2424
}
2525

2626
@TransformFromMethod(value = @MethodSig("method1(Ljava/lang/Float;)V"))
27-
native String method1(String param);
27+
public native String method1(String param);
2828

2929
@RedirectSet
3030
public interface Set {

src/test/java/io/github/notstirred/dasm/test/tests/inter_field_to_method_redirect/TestInterFieldToMethodRedirect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public TestInterFieldToMethodRedirect() {
2121
}
2222

2323
@TransformFromMethod(value = @MethodSig("method1(Lio/github/notstirred/dasm/test/targets/Vec3i;)V"))
24-
native void method1out(Vec3i param);
24+
public native void method1out(Vec3i param);
2525

2626
@RedirectSet
2727
public interface Set {

src/test/java/io/github/notstirred/dasm/test/tests/inter_to_interface_field_to_method_redirect/TestInterToInterfaceFieldToMethodRedirect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public TestInterToInterfaceFieldToMethodRedirect() {
2121
}
2222

2323
@TransformFromMethod(value = @MethodSig("method1(Lio/github/notstirred/dasm/test/targets/Vec3i;)V"))
24-
native void method1out(Vec3i param);
24+
public native void method1out(Vec3i param);
2525

2626
@RedirectSet
2727
public interface Set {

src/test/java/io/github/notstirred/dasm/test/tests/intra_field_redirect/TestIntraFieldRedirect.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ public TestIntraFieldRedirect() {
2121
}
2222

2323
@TransformFromMethod(value = @MethodSig("method1(Lio/github/notstirred/dasm/test/targets/Vec3i;)V"))
24-
native void method1out(Vec3i param);
24+
public native void method1out(Vec3i param);
2525

2626
@TransformFromMethod(value = @MethodSig("method2(I)V"))
27-
native void method2out(int val);
27+
public native void method2out(int val);
2828

2929
@RedirectSet
3030
public interface Set {

src/test/java/io/github/notstirred/dasm/test/tests/intra_field_to_method_redirect/TestIntraFieldToMethodRedirect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public TestIntraFieldToMethodRedirect() {
2020
}
2121

2222
@TransformFromMethod(value = @MethodSig("method1(Lio/github/notstirred/dasm/test/targets/Vec3i;)V"))
23-
native void method1out(Vec3i param);
23+
public native void method1out(Vec3i param);
2424

2525
@RedirectSet
2626
public interface Set {

src/test/java/io/github/notstirred/dasm/test/tests/intra_method_redirect/TestIntraMethodRedirect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public TestIntraMethodRedirect() {
2222
}
2323

2424
@TransformFromMethod(value = @MethodSig("method1(Ljava/lang/String;)V"))
25-
native void method1out(String param);
25+
public native void method1out(String param);
2626

2727
@RedirectSet
2828
public interface Set {

src/test/java/io/github/notstirred/dasm/test/tests/missing_dup_after_new/TestMissingDupAfterNew.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public TestMissingDupAfterNew() {
2424
}
2525

2626
@TransformFromMethod(value = @MethodSig("method1()V"))
27-
native void method1out();
27+
public native void method1out();
2828

2929
@RedirectSet
3030
public interface Set {

src/test/java/io/github/notstirred/dasm/test/tests/redirect_chaining_swap/TestRedirectChainingSwap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public TestRedirectChainingSwap() {
1919
}
2020

2121
@TransformFromMethod(value = @MethodSig("method1(Lio/github/notstirred/dasm/test/targets/Vec3i;)V"))
22-
native void method1out(Vec3i param);
22+
public native void method1out(Vec3i param);
2323

2424
@RedirectSet
2525
public interface Set {

src/test/java/io/github/notstirred/dasm/test/tests/redirect_chaining_three_types/TestRedirectChainingThreeTypes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public TestRedirectChainingThreeTypes() {
2020
}
2121

2222
@TransformFromMethod(value = @MethodSig("method1(Lio/github/notstirred/dasm/test/targets/A;)V"))
23-
native void method1out(A a);
23+
public native void method1out(A a);
2424

2525
@RedirectSet
2626
public interface Set {

0 commit comments

Comments
 (0)