From 60594ad49ba081e4e97c51f1976179644c133092 Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Mon, 10 Oct 2022 23:10:22 +0200 Subject: [PATCH] Add cast. --- byte-buddy-dep/src/test/java/net/bytebuddy/asm/AdviceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/byte-buddy-dep/src/test/java/net/bytebuddy/asm/AdviceTest.java b/byte-buddy-dep/src/test/java/net/bytebuddy/asm/AdviceTest.java index d186c87b761..982772c6912 100644 --- a/byte-buddy-dep/src/test/java/net/bytebuddy/asm/AdviceTest.java +++ b/byte-buddy-dep/src/test/java/net/bytebuddy/asm/AdviceTest.java @@ -1632,7 +1632,7 @@ public void testWriteFieldInConstructor() throws Exception { .make() .load(ClassLoadingStrategy.BOOTSTRAP_LOADER, ClassLoadingStrategy.Default.WRAPPER) .getLoaded(); - assertThat(sample.getField(FOO).get(sample.getConstructor().newInstance()), is(FOO)); + assertThat(sample.getField(FOO).get(sample.getConstructor().newInstance()), is((Object) FOO)); } @Test(expected = IllegalStateException.class)