Skip to content

Commit fe93b7f

Browse files
committed
docs(annotations): improve javadoc for Plugin and Dependency
1 parent aae69a2 commit fe93b7f

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

annotations/src/main/java/dev/hypera/chameleon/annotations/Dependency.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
import org.jetbrains.annotations.NotNull;
3030

3131
/**
32-
* Platform Dependency.
32+
* Plugin Dependency.
33+
*
34+
* @see Plugin
3335
*/
3436
@Retention(RetentionPolicy.SOURCE)
3537
@Target({})
@@ -43,18 +45,19 @@
4345
@NotNull String name();
4446

4547
/**
46-
* Returns the version, or a maven range, that represents the versions of this dependency.
48+
* Returns the version, or a maven version range, that represents the compatible versions of
49+
* this dependency.
4750
* <p><strong>This is required for Sponge support.</strong></p>
4851
*
4952
* @return the required version of this dependency.
5053
*/
5154
@NotNull String version() default "";
5255

5356
/**
54-
* Returns whether this dependency is not required to load the dependant.
55-
* <p>By default, this is {@code false}, meaning the dependency is required.</p>
57+
* Returns whether this dependency is optional for loading the dependant plugin.
58+
* <p>Defaults to {@code false}, meaning the dependency is not required.</p>
5659
*
57-
* @return {@code true} if the dependency is not required for the dependant to load.
60+
* @return {@code true} if the dependency is not required when loading the dependant plugin.
5861
*/
5962
boolean optional() default false;
6063

annotations/src/main/java/dev/hypera/chameleon/annotations/Plugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
public @interface Plugin {
3939

4040
/**
41-
* The plugin's unique identifier.
41+
* Returns the unique identifier of this plugin.
4242
*
43-
* @return the plugin's ID.
43+
* @return plugin ID.
4444
*/
4545
@NotNull String id();
4646

0 commit comments

Comments
 (0)