Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
156 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,31 @@ | |||
package net.bytebuddy; | |||
|
|||
import net.bytebuddy.implementation.StubMethod; | |||
import org.elasticsearch.client.Client; | |||
import org.junit.Test; | |||
|
|||
import java.util.concurrent.Callable; | |||
|
|||
import static net.bytebuddy.matcher.ElementMatchers.any; | |||
|
|||
public class Foo { | |||
|
|||
@Test | |||
public void testFoo() throws Exception { | |||
new ByteBuddy().subclass(Client.class).method(any()).intercept(StubMethod.INSTANCE).make(); | |||
} | |||
|
|||
@Test | |||
public void testBar() throws Exception { | |||
new ByteBuddy().subclass(Qux.class).method(any()).intercept(StubMethod.INSTANCE).make(); | |||
} | |||
|
|||
interface Bar<T> { | |||
|
|||
<S> void bar(Callable<S> arg); | |||
} | |||
|
|||
interface Qux extends Bar<Void> { | |||
|
|||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
...y/description/method/MethodDescriptionTypeSubstitutingVariableRetainingDelegatorTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.