diff options
author | zaaarf <zaaarf@proton.me> | 2023-03-21 14:05:14 +0100 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-03-21 14:05:14 +0100 |
commit | 40686b8c929279bd486529fceae1d8dd7fa2735f (patch) | |
tree | ce314f8c939571121468aae975b60a30d27c97a5 /src/main/java/ftbsc/lll/tools | |
parent | 8c11b0b4d89b1d340bdd620d96e5127c05c2e066 (diff) |
feat: added ClassProxy
Diffstat (limited to 'src/main/java/ftbsc/lll/tools')
-rw-r--r-- | src/main/java/ftbsc/lll/tools/DescriptorBuilder.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/main/java/ftbsc/lll/tools/DescriptorBuilder.java b/src/main/java/ftbsc/lll/tools/DescriptorBuilder.java index d59f97d..252c2a8 100644 --- a/src/main/java/ftbsc/lll/tools/DescriptorBuilder.java +++ b/src/main/java/ftbsc/lll/tools/DescriptorBuilder.java @@ -26,16 +26,16 @@ 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). + * @implNote 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 (such as Minecraft + * classes). * @param returnType the Class object corresponding to the return type * @return the builder's state after the change */ @@ -72,9 +72,10 @@ 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). + * @implNote 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 (such as Minecraft + * classes). * @param param the Class object corresponding to the parameter * @return the builder's state after the change */ |