Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 4c11702

Browse files
committed
Fixing some javadoc warnings, quieting down others
1 parent 350d463 commit 4c11702

20 files changed

+40
-54
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
6060
from javadoc
6161
}
6262
javadoc.failOnError = false
63+
// Ignores warnings on params that don't have descriptions, which is a little too noisy
64+
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
6365

6466
artifacts {
6567
archives javadocJar, sourcesJar

src/main/java/com/marklogic/client/ext/es/EntityServicesManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public EntityServicesManager(DatabaseClient client) {
2626
/**
2727
* @param moduleName appended to the baseUri to determine the model definition URI
2828
* @param modelDefinition JSON or XML
29-
* @return
29+
* @return the URI of the loaded model
3030
*/
3131
public String loadModel(String moduleName, String modelDefinition) {
3232
GenericDocumentManager mgr = client.newDocumentManager();

src/main/java/com/marklogic/client/ext/file/AbstractDocumentFileReader.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ protected AbstractDocumentFileReader() {
2020
}
2121

2222
/**
23-
* Retrieves a DocumentFileProcessor with the given short class name. Useful for when you want to customize a
24-
* particular processor.
25-
*
2623
* @param classShortName
27-
* @return
24+
* @return Retrieves a DocumentFileProcessor with the given short class name. Useful for when you want to customize a
25+
* particular processor.
2826
*/
2927
public DocumentFileProcessor getDocumentFileProcessor(String classShortName) {
3028
for (DocumentFileProcessor processor : documentFileProcessors) {
@@ -47,7 +45,7 @@ public void addDocumentFileProcessor(DocumentFileProcessor processor) {
4745
* in 3.11.0, it defaults to false, as an exception typically indicates that the processing should stop.
4846
*
4947
* @param documentFile
50-
* @return
48+
* @return the result of processing the given DocumentFile; may return null
5149
*/
5250
protected DocumentFile processDocumentFile(DocumentFile documentFile) {
5351
for (DocumentFileProcessor processor : documentFileProcessors) {

src/main/java/com/marklogic/client/ext/file/DefaultDocumentFileReader.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public DefaultDocumentFileReader() {
3737
* DocumentFile that is constructed by a File.
3838
*
3939
* @param paths
40-
* @return
40+
* @return list of DocumentFile objects in the given paths
4141
*/
4242
public List<DocumentFile> readDocumentFiles(String... paths) {
4343
documentFiles = new ArrayList<>();
@@ -67,7 +67,7 @@ public List<DocumentFile> readDocumentFiles(String... paths) {
6767
* will try to resolve the path from its daemon directory.
6868
*
6969
* @param path
70-
* @return
70+
* @return a Path object based on the given string path
7171
*/
7272
protected Path constructPath(String path) {
7373
File f;
@@ -128,11 +128,9 @@ public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) throws IO
128128
}
129129

130130
/**
131-
* If any of the configured FileFilter objects do not accept the Path, then it is not accepted.
132-
*
133131
* @param path
134132
* @param attrs
135-
* @return
133+
* @return false if any of the configured FileFilter objects do not accept the Path, else true
136134
*/
137135
protected boolean acceptPath(Path path, BasicFileAttributes attrs) {
138136
if (fileFilters != null) {

src/main/java/com/marklogic/client/ext/file/GenericFileLoader.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public GenericFileLoader(BatchWriter batchWriter) {
6868
* If a DocumentFileReader has not been set yet, then one will be constructed before any files are read.
6969
*
7070
* @param paths
71-
* @return
71+
* @return list of files from the given paths
7272
*/
7373
public List<DocumentFile> loadFiles(String... paths) {
7474
batchWriter.initialize();
@@ -199,9 +199,7 @@ protected void applyTokenReplacerOnKnownDocumentProcessors(AbstractDocumentFileR
199199
}
200200

201201
/**
202-
* Builds a set of DocumentFileProcessor objects based on how this class has been configured.
203-
*
204-
* @return
202+
* @return a set of DocumentFileProcessor objects based on how this class has been configured.
205203
*/
206204
protected List<DocumentFileProcessor> buildDocumentFileProcessors() {
207205
List<DocumentFileProcessor> processors = new ArrayList<>();

src/main/java/com/marklogic/client/ext/file/JarDocumentFileReader.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public List<DocumentFile> readDocumentFiles(String... paths) {
4949
*
5050
* @param basePath
5151
* @param paths
52-
* @return
52+
* @return list of resources
5353
*/
5454
protected List<Resource> findResources(String basePath, String... paths) {
5555
List<Resource> list = new ArrayList<>();
@@ -77,10 +77,8 @@ protected List<Resource> findResources(String basePath, String... paths) {
7777
}
7878

7979
/**
80-
* Uses the list of FilenameFilter objects to determine if a document can be read from the given resource.
81-
*
8280
* @param r
83-
* @return
81+
* @return true if a document can be read from the given resource based on the list of FilenameFilter objects
8482
*/
8583
protected boolean canReadResource(Resource r) {
8684
if (r == null) {

src/main/java/com/marklogic/client/ext/file/PropertiesDrivenDocumentFileProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public boolean accept(File file) {
3737

3838
/**
3939
* @param documentFile
40-
* @return
40+
* @return null if the file is not accepted, else the incoming DocumentFile
4141
*/
4242
@Override
4343
public DocumentFile processDocumentFile(DocumentFile documentFile) {

src/main/java/com/marklogic/client/ext/modulesloader/ModulesLoader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
public interface ModulesLoader {
1919

2020
/**
21-
* Load modules from the given directory, and return the set of resources containing all modules written.
21+
* Load modules from the given directory
2222
*
2323
* @param directory
2424
* @param modulesFinder
2525
* @param client the DatabaseClient to use for loading REST extensions
26-
* @return
26+
* @return the set of resources containing all modules written
2727
*/
2828
Set<Resource> loadModules(String directory, ModulesFinder modulesFinder, DatabaseClient client);
2929

@@ -34,7 +34,7 @@ public interface ModulesLoader {
3434
* @param client
3535
* @param modulesFinder
3636
* @param paths the DatabaseClient to use for loading REST extensions
37-
* @return
37+
* @return the set of resources containing all modules written
3838
*/
3939
Set<Resource> loadModules(DatabaseClient client, ModulesFinder modulesFinder, String... paths);
4040
}

src/main/java/com/marklogic/client/ext/modulesloader/impl/AbstractStaticChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected void performBulkStaticCheck(List<DocumentFile> assets) {
8585
* in construct that statement, it cannot be distinguished from an error in the actual module. To turn this behavior
8686
* off, set "staticCheckLibraryModules" to false.
8787
*
88-
* @return
88+
* @return XQuery script
8989
*/
9090
protected String buildXqueryForStaticallyCheckingModule() {
9191
String xquery =

src/main/java/com/marklogic/client/ext/modulesloader/impl/BaseModulesFinder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected void addAssetDirectories(Modules modules, String baseDir) {
9797
* test cases to know that this is safe for sure.
9898
*
9999
* @param resourceFile
100-
* @return
100+
* @return decoded resource path
101101
*/
102102
protected String decodeAssetDirectoryResource(String resourceFile) {
103103
if (resourceFile.contains("%20")) {
@@ -143,7 +143,7 @@ protected void addTransforms(Modules modules, String baseDir) {
143143
* @param moduleType used for a log message
144144
* @param basePath
145145
* @param paths
146-
* @return
146+
* @return list of resources
147147
*/
148148
protected List<Resource> findResources(String moduleType, String basePath, String... paths) {
149149
List<Resource> list = new ArrayList<>();

0 commit comments

Comments
 (0)