Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 7ec9e28

Browse files
committed
EXTSCRIPT-189: fix a lot of jsdoc warnings
git-svn-id: https://svn.apache.org/repos/asf/myfaces/extensions/scripting/trunk@1809541 13f79535-47bb-0310-9956-ffa450edef68
1 parent bf1f9c5 commit 7ec9e28

File tree

14 files changed

+107
-23
lines changed

14 files changed

+107
-23
lines changed

extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/api/WeavingContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ public Class forName(String name) {
419419

420420
/**
421421
* reload the class dynamically
422+
* @param clazz ... the class which needs reloading
422423
*/
423424
public Class reload(Class clazz)
424425
{

extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/common/util/Cast.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,36 @@
2121
/**
2222
* Simple casting representation for introspection
2323
* calls
24+
*
25+
* @author Werner Punz
2426
*/
2527
public class Cast {
2628

2729
Class clazz;
2830
Object value;
2931

32+
/**
33+
*
34+
* @param clazz the cast class representing the value
35+
* @param value the value itself
36+
*/
3037
public Cast(Class clazz, Object value) {
3138
this.clazz = clazz;
3239
this.value = value;
3340
}
3441

42+
/**
43+
* standard getter
44+
* @return the cast class representing the value
45+
*/
3546
public Class getClazz() {
3647
return clazz;
3748
}
3849

50+
/**
51+
* standard getter
52+
* @return the value itself
53+
*/
3954
public Object getValue() {
4055
return value;
4156
}

extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/common/util/FileUtils.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static String getFileSeparator() {
4646
* <p>&nbsp;</p>
4747
* the touch is basically just the same as unix touch
4848
*
49-
* @param fileToTouch
49+
* @param fileToTouch the file which needs unix style touching
5050
*/
5151
public static void touch(File fileToTouch) {
5252
//we change our lastMofied to the current system time
@@ -72,6 +72,10 @@ public static String getFileSeparatorForRegex() {
7272
return sep;
7373
}
7474

75+
/**
76+
* Gets a temp dir to work on
77+
* @return a temp dir which can be used for io processing
78+
*/
7579
public static File getTempDir() {
7680
File tempDir;
7781

@@ -183,7 +187,7 @@ public static List<File> fetchSourceFiles(Collection<String> sourcePaths, String
183187

184188
/**
185189
* fetches the source paths from a given root directory in the format
186-
* <path>/<appendix>;...
190+
* &lt;path&gt;/&lt;appendix&gt;;...
187191
*
188192
* @param sourcePath the sourcePath from which the directory traversal should happen from
189193
* @param appendix the appendix which has to be appended to every path found

extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/common/util/Null.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@
1919
package org.apache.myfaces.extensions.scripting.core.common.util;
2020

2121
/**
22-
* @Author Werner Punz
22+
* @author Werner Punz
2323
* Null representation for easier introspection calls
24+
*
25+
* @author Werner Punz
2426
*/
2527
public class Null extends Cast
2628
{
2729

30+
/**
31+
* representation of a null value of a specific class
32+
* @param clazz
33+
*/
2834
public Null(Class clazz) {
2935
super(clazz, null);
3036
}

extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/engine/BaseEngine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void scanForAddedDeleted()
132132
/**
133133
* checks whether we have resources which are in need of a recompile
134134
*
135-
* @return
135+
* @return true if a recompile is needed
136136
*/
137137
public boolean needsRecompile()
138138
{
@@ -147,7 +147,7 @@ public boolean needsRecompile()
147147
/**
148148
* checks whether we have resources which are tainted
149149
*
150-
* @return
150+
* @return true if any resource is tainted
151151
*/
152152
public boolean isTainted()
153153
{

extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/engine/dependencyScan/registry/DependencyRegistryImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
/**
3434
* registry facade which is used to track our dependencies
35+
*
36+
* @author Werner Punz
3537
*/
3638
public class DependencyRegistryImpl implements ExternalFilterDependencyRegistry
3739
{
@@ -95,7 +97,7 @@ public boolean isAllowed(Integer engineType, String className) {
9597
}
9698

9799
/**
98-
* adds a dependency to our dependency map (usually rootclass -> dependency and currentClass -> dependency)
100+
* adds a dependency to our dependency map (usually rootclass -&gt; dependency and currentClass -&gt; dependency)
99101
*
100102
* @param engineType the engine type for this dependency
101103
* @param rootClass the root class of this scan which all dependencies are referenced from
@@ -134,6 +136,8 @@ public void addDependency(Integer engineType, String rootClass, String currently
134136

135137
/**
136138
* flush to flush down our stored dependencies into our final map
139+
*
140+
* @param engineType the engine type
137141
*/
138142
public void flush(Integer engineType) {
139143
//_registrationStrategy.apply(_dependencies);

extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/monitor/ClassResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public String getSourceDir()
8686
/**
8787
* identifier for this resource is the classname
8888
*
89-
* @return
89+
* @return the class name for this resource
9090
*/
9191
public String getIdentifier()
9292
{

extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/monitor/WatchedResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public abstract class WatchedResource implements Cloneable {
4141
/**
4242
* Unique identifier on the resource
4343
*
44-
* @return
44+
* @return get the unique idientifier for this resource
4545
*/
4646
public abstract String getIdentifier();
4747

extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/reloading/SimpleReloadingStrategy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public Object reload(Object scriptingInstance, int engineType, int artifactType)
9292
* which have to preserve some kind of delegate before instantiation.
9393
*
9494
* @param target the target which has to receive the properties
95+
* @param engineType the engine type for the mapping
9596
* @param src the source which has the original properties
9697
*/
9798
protected void mapProperties(Object target, int engineType, Object src) {

extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/jsf/annotation/BaseAnnotationScanListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ protected Application getApplication() {
4848
* unregisters this class in the central registry
4949
* is triggered if the class itself has been registered previously
5050
*
51-
* @param className
52-
* @return
51+
* @param className the classname which should be unregistered
5352
*/
5453
public void purge(String className) {
5554

0 commit comments

Comments
 (0)