Skip to content

Commit 3b2f3ed

Browse files
committed
update java doc params
1 parent 99e7c67 commit 3b2f3ed

File tree

8 files changed

+18
-11
lines changed

8 files changed

+18
-11
lines changed

aemdesign-aem-services/src/main/java/design/aem/models/v2/common/Timing.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ private static String shortForm(String str) {
219219
}
220220

221221
/**
222-
* Remove chars up to separator in this.input, and return result
222+
* Remove chars up to separator in this.input, and return result.
223+
* @param separator separator to stop at
224+
* @return string up to separator
223225
*/
224226
private String scan(char separator) {
225227
final StringBuilder sb = new StringBuilder();

aemdesign-aem-services/src/main/java/design/aem/models/v2/content/Download.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private String getFormattedDownloadSize(com.day.cq.wcm.foundation.Download dld)
224224

225225
/**
226226
* Determine the filetype by extracting and uppercasing the last element of the mimetype
227-
*
227+
* @param resolver resource resolver instance
228228
* @param download is the download to do this for
229229
* @return the filetype for the download
230230
*/

aemdesign-aem-services/src/main/java/design/aem/models/v2/lists/AssetList.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ private void populateDescendantsListItems() {
185185

186186
/**
187187
* populate list items from children of a root page.
188+
* @param path path to use
188189
* @param flat only select children on root page
189190
*/
190191
@SuppressWarnings("Duplicates")

aemdesign-aem-services/src/main/java/design/aem/models/v2/lists/List.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,15 @@ private void generateId() {
327327
/**
328328
* get request parameter with component id prefix.
329329
* @param name name of querystring param suffix
330-
* @return
330+
* @return parameter value
331331
*/
332332
private String getParameter(String name) {
333333
return getRequest().getParameter(id + PATH_UNDERSCORE + name);
334334
}
335335

336336
/**
337337
* get next page url.
338-
* @return
338+
* @return next page url
339339
*/
340340
private String getNextPageLink() {
341341
long nextPageStart = pageStart + pageMax;
@@ -350,7 +350,7 @@ private String getNextPageLink() {
350350

351351
/**
352352
* get previous page url.
353-
* @return
353+
* @return previous page url
354354
*/
355355
private String getPreviousPageLink() {
356356
if (isPaginating && pageMax > 0 && resultPages.size() > 0 && pageStart != 0) {
@@ -365,8 +365,8 @@ private String getPreviousPageLink() {
365365

366366
/**
367367
* get page badge info from a page.
368-
* @param page
369-
* @return
368+
* @param page page to use
369+
* @return map of badge attributes
370370
*/
371371
private Map<String,Object> getPageBadgeInfo(Page page) {
372372
return getPageBadgeInfo(page,detailsNameSuffix,getResourceResolver(),detailsBadge);
@@ -378,7 +378,7 @@ private Map<String,Object> getPageBadgeInfo(Page page) {
378378
* @param detailsNameSuffix details siffix to look for
379379
* @param resourceResolver resource resolver to use
380380
* @param detailsBadge badge selectors to add
381-
* @return
381+
* @return map of page badge attributes
382382
*/
383383
static Map<String,Object> getPageBadgeInfo(Page page,String[] detailsNameSuffix, ResourceResolver resourceResolver, String detailsBadge) {
384384

@@ -527,7 +527,7 @@ private void updateListSplit() {
527527
* @param page page to check
528528
* @param includeInvalid include if page is invalid
529529
* @param includeHidden include in page is hidden
530-
* @return
530+
* @return boolean if page should be included in the list
531531
*/
532532
static boolean includePageInList(Page page, boolean includeInvalid, boolean includeHidden) {
533533
return (includeHidden || !page.isHideInNav()) && (includeInvalid || page.isValid()) && page.getDeleted() == null;
@@ -584,6 +584,7 @@ private void populateDescendantsListItems() {
584584

585585
/**
586586
* populate list items from children of a root page.
587+
* @param path path to use
587588
* @param flat only select children on root page
588589
*/
589590
private void populateChildListItems(String path, Boolean flat) {

aemdesign-aem-services/src/main/java/design/aem/models/v2/lists/ListNav.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ private void populateDescendantsListItems() {
202202

203203
/**
204204
* populate list items from children of a root page.
205+
* @param path path to use
205206
* @param flat only select children on root page
206207
*/
207208
@SuppressWarnings("Duplicates")

aemdesign-aem-services/src/main/java/design/aem/models/v2/lists/NavList.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ protected void ready() {
8787

8888
/***
8989
* return path before /JCR:CONTENT
90-
* @param slingRequest
91-
* @return
90+
* @param slingRequest sling request instance
91+
* @return path
9292
*/
9393

9494
private String getPrimaryPath(SlingHttpServletRequest slingRequest) {

aemdesign-aem-services/src/main/java/design/aem/models/v2/lists/TagList.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ private void populateDescendantsListItems() {
173173

174174
/**
175175
* populate list items from children of a root page.
176+
* @param path path to use
176177
* @param flat only select children on root page
177178
*/
178179
@SuppressWarnings("Duplicates")

aemdesign-aem-services/src/main/java/design/aem/utils/components/ContentFragmentUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class ContentFragmentUtil {
2323
* get content fragment content in an ordered map
2424
* @param contentFragmentPath path to content fragment
2525
* @param variationName variation of content fragment
26+
* @param resourceResolver resource resolver to use
2627
* @return ordered map of key value fields
2728
*/
2829
@SuppressWarnings("squid:S3776")

0 commit comments

Comments
 (0)