-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
javadoc fixes for gestalt-module #156
base: develop
Are you sure you want to change the base?
Conversation
1d1a902
to
16dfb69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At an initial glance, I have highlighted many spelling errors in the comments introduced here.
For getters, I would prefer that the description states that they return something, so "Returns a thing" is preferred over "Get a thing"/"Gets a thing".
Just because a constructor is a default constructor, that does not mean that you can describe it as "Default constructor". Even though the purpose is usually obvious, if you are aiming for complete JavaDoc coverage then we should at least make it quality documentation.
gestalt-module/src/main/java/org/terasology/gestalt/module/Module.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/module/Module.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/module/Module.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/module/Module.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/module/Module.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/module/sandbox/ModuleSecurityManager.java
Outdated
Show resolved
Hide resolved
...alt-module/src/main/java/org/terasology/gestalt/module/sandbox/ModuleSecurityPermission.java
Outdated
Show resolved
Hide resolved
...t-module/src/main/java/org/terasology/gestalt/module/sandbox/SetUnionPermissionProvider.java
Outdated
Show resolved
Hide resolved
...t-module/src/main/java/org/terasology/gestalt/module/sandbox/SetUnionPermissionProvider.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/naming/VersionRange.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/i18n/I18nMap.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/module/ModuleEnvironment.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/module/ModuleEnvironment.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/module/ModuleMetadata.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/module/ModuleMetadata.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/naming/Name.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/naming/Version.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/naming/Version.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/naming/Version.java
Outdated
Show resolved
Hide resolved
gestalt-module/src/main/java/org/terasology/gestalt/naming/VersionRange.java
Outdated
Show resolved
Hide resolved
b157332
to
96d015d
Compare
Co-authored-by: BenjaminAmos <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am hoping that this will be the last set of changes needed.
* @return Information on the contents on this module | ||
*/ | ||
public ClassIndex getClassIndex() { | ||
return classIndex; | ||
} | ||
|
||
/** | ||
* @return A predicate that specifies whether a given class from the main classloader is a | ||
* member of this module | ||
* Gets a predicate which that specifies whether a given class from the main classloader is a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Gets a predicate which that specifies whether a given class from the main classloader is a | |
* Gets a predicate that specifies whether a given class from the main classloader is a |
@@ -84,6 +84,9 @@ public class ModuleEnvironment implements AutoCloseable, Iterable<Module> { | |||
private final ModuleFileSource resources; | |||
|
|||
/** | |||
* Creates a ModuleEnvironment with give bean context, modules and permissionProviderFactory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Creates a ModuleEnvironment with give bean context, modules and permissionProviderFactory. | |
* Creates a ModuleEnvironment with a given bean context, modules and permissionProviderFactory. |
@@ -93,6 +96,9 @@ public ModuleEnvironment(BeanContext beanContext, Iterable<Module> modules, Perm | |||
} | |||
|
|||
/** | |||
* Creates a ModuleEnvironment with give bean context, modules, permissionProviderFactory, and classLoaderSupplier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Creates a ModuleEnvironment with give bean context, modules, permissionProviderFactory, and classLoaderSupplier. | |
* Creates a ModuleEnvironment with a given bean context, modules, permissionProviderFactory, and classLoaderSupplier. |
@@ -103,14 +109,19 @@ public ModuleEnvironment(BeanContext beanContext, Iterable<Module> modules, Perm | |||
} | |||
|
|||
/** | |||
* Creates a ModuleEnvironment with give bean context, modules, permissionProviderFactory, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Creates a ModuleEnvironment with give bean context, modules, permissionProviderFactory, | |
* Creates a ModuleEnvironment with a given bean context, modules, permissionProviderFactory, |
@@ -103,14 +109,19 @@ public ModuleEnvironment(BeanContext beanContext, Iterable<Module> modules, Perm | |||
} | |||
|
|||
/** | |||
* Creates a ModuleEnvironment with give bean context, modules, permissionProviderFactory, | |||
* classLoaderSupplier, and apiClassLoader. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* classLoaderSupplier, and apiClassLoader. | |
* classLoaderSupplier and apiClassLoader. |
@Inject // TODO use another constructor. | ||
public ModuleFactory() { | ||
this(Thread.currentThread().getContextClassLoader()); | ||
} | ||
|
||
/** | ||
* Creates a Module out of a file Module.json in standard library path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Creates a Module out of a file Module.json in standard library path. | |
* Creates a module using a module.json file from the standard library path. |
@@ -90,6 +97,7 @@ public ModuleFactory(String defaultCodeSubpath, String defaultLibsSubpath) { | |||
} | |||
|
|||
/** | |||
* Constructor with classLoader, code, moodule subpath, metadata loaders. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Constructor with classLoader, code, moodule subpath, metadata loaders. | |
* Constructor with classLoader, code, module subpath, metadata loaders. |
@@ -110,19 +122,27 @@ public static ModuleClassLoader create(Module module, ClassLoader parent, Permis | |||
} | |||
|
|||
/** | |||
* Get module id this classloarder belongs to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Get module id this classloarder belongs to. | |
* Get module id this classloader belongs to. |
public Name(String name) { | ||
Preconditions.checkNotNull(name); | ||
this.originalName = name; | ||
this.normalisedName = name.toLowerCase(Locale.ENGLISH); | ||
} | ||
|
||
/** | ||
* @return Whether this name is empty (equivalent to an empty string) | ||
* Whether this name is empty (equivalent to an empty string) | ||
* @return true if emppty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return true if emppty | |
* @return true if empty |
No description provided.