Skip to content

Commit c880bab

Browse files
committed
Fix hashcode equals generation.
1 parent 05dc85e commit c880bab

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/asm/Advice.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9440,6 +9440,7 @@ public String toString() {
94409440
/**
94419441
* A resolved version of a dispatcher.
94429442
*/
9443+
@HashCodeAndEqualsPlugin.Enhance
94439444
protected abstract static class Resolved extends Dispatcher.Resolved.AbstractBase {
94449445

94459446
/**
@@ -10881,6 +10882,7 @@ public String toString() {
1088110882
/**
1088210883
* A resolved version of a dispatcher.
1088310884
*/
10885+
@HashCodeAndEqualsPlugin.Enhance
1088410886
protected abstract static class Resolved extends Dispatcher.Resolved.AbstractBase {
1088510887

1088610888
/**

byte-buddy-dep/src/test/java/net/bytebuddy/test/c/NativeSample.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ public class NativeSample {
1515
}
1616
try {
1717
InputStream inputStream = NativeSample.class.getResourceAsStream("/net_bytebuddy_test_c_NativeSample.so");
18+
if (inputStream == null) {
19+
throw new IllegalStateException("Cannot find .so file");
20+
}
1821
File file;
1922
try {
2023
file = File.createTempFile("native_sample", ".so");

0 commit comments

Comments
 (0)