diff --git a/api/src/main/java/io/github/libxposed/api/utils/DexParser.java b/api/src/main/java/io/github/libxposed/api/utils/DexParser.java index 878f352..201ac2c 100644 --- a/api/src/main/java/io/github/libxposed/api/utils/DexParser.java +++ b/api/src/main/java/io/github/libxposed/api/utils/DexParser.java @@ -89,24 +89,10 @@ public interface DexParser extends Closeable { @NonNull StringId getName(); } - - /** - * The interface Type id. - */ - interface TypeId { - /** - * Gets descriptor. - * - * @return the descriptor - */ - @NonNull - StringId getDescriptor(); - } - /** * The interface Id. */ - interface Id { + interface Id extends Comparable { /** * Gets id. * @@ -115,10 +101,24 @@ public interface DexParser extends Closeable { int getId(); } + /** + * The interface Type id. + */ + interface TypeId extends Id { + /** + * Gets descriptor. + * + * @return the descriptor + */ + @NonNull + StringId getDescriptor(); + } + + /** * The interface String id. */ - interface StringId extends Id { + interface StringId extends Id { /** * Gets string. * @@ -131,7 +131,7 @@ public interface DexParser extends Closeable { /** * The interface Field id. */ - interface FieldId extends Id { + interface FieldId extends Id { /** * Gets type. * @@ -160,7 +160,7 @@ public interface DexParser extends Closeable { /** * The interface Method id. */ - interface MethodId extends Id { + interface MethodId extends Id { /** * Gets declaring class. * @@ -189,7 +189,7 @@ public interface DexParser extends Closeable { /** * The interface Proto id. */ - interface ProtoId extends Id { + interface ProtoId extends Id { /** * Gets shorty. *