Skip to content

Commit

Permalink
[release] Release new version.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Aug 15, 2024
1 parent 68b9f6d commit 4a4daf0
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* An entry point for a build tool which is responsible for the transformation's configuration.
*/
public interface EntryPoint {
public interface EntryPoint extends Serializable {

/**
* Returns the Byte Buddy instance to use.
Expand Down Expand Up @@ -159,7 +159,7 @@ public DynamicType.Builder<?> transform(TypeDescription typeDescription,
* An entry point that wraps another entry point but disables validation.
*/
@HashCodeAndEqualsPlugin.Enhance
class Unvalidated implements EntryPoint, Serializable {
class Unvalidated implements EntryPoint {

/**
* The serial version UID.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package net.bytebuddy.asm;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import net.bytebuddy.ByteBuddy;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.description.modifier.Visibility;
Expand Down Expand Up @@ -876,7 +875,7 @@ public void testSubstitutionChainArgumentInstrumentedMethodLoadedThis() throws E
Object instance = type.getDeclaredConstructor().newInstance();
assertThat(type.getDeclaredField(FOO).get(instance), is((Object) FOO));
assertThat(type.getDeclaredMethod(RUN, Object.class).invoke(instance, QUX), nullValue(Object.class));
assertThat(type.getDeclaredField(FOO).get(instance), is((Object) instance));
assertThat(type.getDeclaredField(FOO).get(instance), is(instance));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ public void testAsCoordinateUnresolved() throws Exception {

public static class Foo implements EntryPoint {

private static final long serialVersionUID = 1L;

public ByteBuddy byteBuddy(ClassFileVersion classFileVersion) {
throw new AssertionError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

public class IllegalEntryPoint implements EntryPoint {

private static final long serialVersionUID = 1L;

public ByteBuddy byteBuddy(ClassFileVersion classFileVersion) {
throw new RuntimeException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

public class IllegalTransformEntryPoint implements EntryPoint {

private static final long serialVersionUID = 1L;

public ByteBuddy byteBuddy(ClassFileVersion classFileVersion) {
return new ByteBuddy(classFileVersion);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

public class SimpleEntryPoint implements EntryPoint {

private static final long serialVersionUID = 1L;

public ByteBuddy byteBuddy(ClassFileVersion classFileVersion) {
return new ByteBuddy(classFileVersion);
}
Expand Down

0 comments on commit 4a4daf0

Please sign in to comment.