Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
xxDark committed Jan 27, 2024
1 parent a49a7d6 commit 31d8652
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'dev.xdark'
version '2.0.0'
version '2.0.1'

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/dev/xdark/jlinker/ClassInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public interface ClassInfo {
* @param descriptor Method descriptor.
* @return Class method.
*/
@Nullable MethodInfo getMethod(String name, Descriptor descriptor);
@Nullable MethodInfo getMethod(String name, MethodDescriptor descriptor);

/**
* Implementation may throw any exception.
Expand All @@ -44,5 +44,5 @@ public interface ClassInfo {
* @param descriptor Field descriptor.
* @return Class field.
*/
@Nullable FieldInfo getField(String name, Descriptor descriptor);
@Nullable FieldInfo getField(String name, FieldDescriptor descriptor);
}
4 changes: 2 additions & 2 deletions src/test/java/dev/xdark/jlinker/MyClassInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public int getAccessFlags() {
}

@Override
public @Nullable MethodInfo getMethod(String name, Descriptor descriptor) {
public @Nullable MethodInfo getMethod(String name, MethodDescriptor descriptor) {
String descriptorString = descriptor.toString();
for (MethodNode m : node.methods) {
if (name.equals(m.name) && descriptorString.equals(m.desc)) {
Expand All @@ -46,7 +46,7 @@ public int getAccessFlags() {
}

@Override
public @Nullable FieldInfo getField(String name, Descriptor descriptor) {
public @Nullable FieldInfo getField(String name, FieldDescriptor descriptor) {
String descriptorString = descriptor.toString();
for (FieldNode f : node.fields) {
if (name.equals(f.name) && descriptorString.equals(f.desc)) {
Expand Down

0 comments on commit 31d8652

Please sign in to comment.