Skip to content

Commit

Permalink
Add cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Oct 10, 2022
1 parent de5605e commit 60594ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 60594ad

Please sign in to comment.