|
6 | 6 | import com.fasterxml.jackson.annotation.JsonSubTypes; |
7 | 7 | import com.fasterxml.jackson.annotation.JsonTypeInfo; |
8 | 8 |
|
9 | | -@JsonIgnoreProperties(ignoreUnknown = true) |
10 | 9 | @JsonTypeInfo( |
11 | 10 | use = JsonTypeInfo.Id.NAME, |
12 | 11 | include = JsonTypeInfo.As.PROPERTY, |
|
29 | 28 | @JsonSubTypes.Type(value = Asm.Dup.class, name = "Dup"), |
30 | 29 | @JsonSubTypes.Type(value = Asm.Field.class, name = "Field"), |
31 | 30 | @JsonSubTypes.Type(value = Asm.Frame.class, name = "Frame"), |
32 | | - @JsonSubTypes.Type(value = Asm.GetType.class, name = "GetType"), |
33 | 31 | @JsonSubTypes.Type(value = Asm.Goto.class, name = "Goto"), |
34 | 32 | @JsonSubTypes.Type(value = Asm.I2c.class, name = "I2c"), |
35 | 33 | @JsonSubTypes.Type(value = Asm.I2l.class, name = "I2l"), |
@@ -87,7 +85,6 @@ public enum AsmType { |
87 | 85 | Dup, |
88 | 86 | Field, |
89 | 87 | Frame, |
90 | | - GetType, |
91 | 88 | Goto, |
92 | 89 | I2c, |
93 | 90 | I2l, |
@@ -586,7 +583,6 @@ public String getLabel() { |
586 | 583 | } |
587 | 584 | } |
588 | 585 |
|
589 | | - @JsonIgnoreProperties(ignoreUnknown = true) |
590 | 586 | @JsonTypeInfo( |
591 | 587 | use = JsonTypeInfo.Id.NAME, |
592 | 588 | include = JsonTypeInfo.As.PROPERTY, |
@@ -718,18 +714,6 @@ public String getName() { |
718 | 714 | } |
719 | 715 | } |
720 | 716 |
|
721 | | - public static class GetType { |
722 | | - private final String desc; |
723 | | - |
724 | | - public GetType(@JsonProperty("desc") final String desc) { |
725 | | - this.desc = desc; |
726 | | - } |
727 | | - |
728 | | - public String getDesc() { |
729 | | - return desc; |
730 | | - } |
731 | | - } |
732 | | - |
733 | 717 | public static final class Handle { |
734 | 718 | private final int tag; |
735 | 719 | private final String cname; |
@@ -770,7 +754,6 @@ public boolean isIntf() { |
770 | 754 | } |
771 | 755 | } |
772 | 756 |
|
773 | | - @JsonIgnoreProperties(ignoreUnknown = true) |
774 | 757 | @JsonTypeInfo( |
775 | 758 | use = JsonTypeInfo.Id.NAME, |
776 | 759 | include = JsonTypeInfo.As.PROPERTY, |
|
0 commit comments