Skip to content

Commit

Permalink
Fixed advice.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Apr 9, 2016
1 parent 79da3c5 commit 3f22524
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
7 changes: 0 additions & 7 deletions byte-buddy-dep/src/main/java/net/bytebuddy/asm/Advice.java
Expand Up @@ -4774,13 +4774,6 @@ public String toString() {
String value() default DEFAULT;
}

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
public @interface OriginType {
// TODO!
}

/**
* Indicates that the annotated parameter should always return a default value (i.e. {@code 0} for numeric values, {@code false}
* for {@code boolean} types and {@code null} for reference types).
Expand Down
Expand Up @@ -24,7 +24,6 @@ public static Collection<Object[]> data() {
{Advice.Enter.class, ElementType.PARAMETER},
{Advice.Ignored.class, ElementType.PARAMETER},
{Advice.Origin.class, ElementType.PARAMETER},
{Advice.OriginType.class, ElementType.PARAMETER},
{Advice.Return.class, ElementType.PARAMETER},
{Advice.This.class, ElementType.PARAMETER},
{Advice.Thrown.class, ElementType.PARAMETER},
Expand Down
Expand Up @@ -11,9 +11,9 @@
import static net.bytebuddy.matcher.ElementMatchers.named;

@RunWith(Parameterized.class)
public class AdviceParameterWriteTest {
public class AdviceIllegalTypeTest {

private static final String FOO = "foo", BAR = "bar", ENTER = "enter", EXIT = "exit", exception = "exception";
private static final String FOO = "foo";

private static final byte VALUE = 42;

Expand All @@ -36,7 +36,7 @@ public static Collection<Object[]> data() {

private final Class<?> type;

public AdviceParameterWriteTest(Class<?> type) {
public AdviceIllegalTypeTest(Class<?> type) {
this.type = type;
}

Expand Down

0 comments on commit 3f22524

Please sign in to comment.