diff options
author | zaaarf <zaaarf@proton.me> | 2023-03-25 20:53:09 +0100 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-03-25 20:53:09 +0100 |
commit | b8cd398fd5be79bbe5add01b6b6b998881a1bb46 (patch) | |
tree | 237a6bd5fb75c75bc636c666eeeaf102c893d4f8 /src/main/java/ftbsc/lll/tools/DescriptorBuilder.java | |
parent | c1cb2184aa1b86dd1624a3b7c98b51f89af587eb (diff) | |
parent | 17a0b4d0172c0b3399fb5ed0ef1f89b41a1fc67f (diff) |
Merge branch 'version4' into dev
Diffstat (limited to 'src/main/java/ftbsc/lll/tools/DescriptorBuilder.java')
-rw-r--r-- | src/main/java/ftbsc/lll/tools/DescriptorBuilder.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/main/java/ftbsc/lll/tools/DescriptorBuilder.java b/src/main/java/ftbsc/lll/tools/DescriptorBuilder.java index d59f97d..1b33790 100644 --- a/src/main/java/ftbsc/lll/tools/DescriptorBuilder.java +++ b/src/main/java/ftbsc/lll/tools/DescriptorBuilder.java @@ -26,16 +26,15 @@ public class DescriptorBuilder { * Initialises default values. */ public DescriptorBuilder() { - this.returnType = Type.getDescriptor(void.class); this.params = new ArrayList<>(); } /** * Sets the return type to the given type. - * WARNING: will most likely cause problems if used with objects outside the - * Java SDK. Pass the fully qualified name as a String rather than the Class - * object for non-standard types (such as Minecraft classes). + * Passing a {@link Class} may cause problems if used with objects outside the Java + * SDK. Pass the fully qualified name as a {@link String} rather than the {@link Class} + * object for non-standard types. * @param returnType the Class object corresponding to the return type * @return the builder's state after the change */ @@ -72,9 +71,9 @@ public class DescriptorBuilder { /** * Adds a parameter of the given class type to the method. * Parameter order matters. - * WARNING: will most likely cause problems if used with objects outside the - * Java SDK. Pass the fully qualified name as a String rather than the Class - * object for non-standard types (such as Minecraft classes). + * Passing a {@link Class} may cause problems if used with objects outside the Java + * SDK. Pass the fully qualified name as a {@link String} rather than the {@link Class} + * object for non-standard types. * @param param the Class object corresponding to the parameter * @return the builder's state after the change */ @@ -113,7 +112,7 @@ public class DescriptorBuilder { /** * Builds the descriptor into a string. - * Example result: int m(Object[] o) -> ([Ljava/lang/Object;)I + * Example result: {@code int m(Object[] o)} becomes {@code ([Ljava/lang/Object;)I} * @return the resulting descriptor */ public String build() { |