Author: markt
Date: Wed Jan 12 23:49:18 2011
New Revision: 1058357
URL: http://svn.apache.org/viewvc?rev=1058357&view=rev
Log:
Fix Javadoc warnings
Modified:
tomcat/trunk/java/org/apache/catalina/Container.java
tomcat/trunk/java/org/apache/catalina/Host.java
tomcat/trunk/java/org/apache/catalina/Server.java
tomcat/trunk/java/org/apache/catalina/Service.java
tomcat/trunk/java/org/apache/catalina/authenticator/AuthenticatorBase.java
tomcat/trunk/java/org/apache/catalina/filters/RequestFilter.java
tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java
tomcat/trunk/java/org/apache/catalina/valves/RequestFilterValve.java
tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java
tomcat/trunk/java/org/apache/tomcat/util/threads/CounterLatch.java
tomcat/trunk/java/org/apache/tomcat/util/threads/DedicatedThreadExecutor.java
tomcat/trunk/java/org/apache/tomcat/util/threads/ResizableExecutor.java
tomcat/trunk/webapps/docs/changelog.xml
Modified: tomcat/trunk/java/org/apache/catalina/Container.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/Container.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/Container.java (original)
+++ tomcat/trunk/java/org/apache/catalina/Container.java Wed Jan 12 23:49:18
2011
@@ -283,7 +283,7 @@ public interface Container extends Lifec
/**
* Return the parent class loader for this component. If not set, return
- * {...@link Container#getParent()#getParentClassLoader()}. If no parent
has
+ * {...@link #getParent()} {...@link #getParentClassLoader()}. If no
parent has
* been set, return the system class loader.
*/
public ClassLoader getParentClassLoader();
Modified: tomcat/trunk/java/org/apache/catalina/Host.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/Host.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/Host.java (original)
+++ tomcat/trunk/java/org/apache/catalina/Host.java Wed Jan 12 23:49:18 2011
@@ -149,24 +149,24 @@ public interface Host extends Container
/**
* Return the regular expression that defines the files and directories in
- * the host's {...@link #appBase} that will be ignored by the automatic
- * deployment process.
+ * the host's appBase that will be ignored by the automatic deployment
+ * process.
*/
public String getDeployIgnore();
/**
* Return the compiled regular expression that defines the files and
- * directories in the host's {...@link #appBase} that will be ignored by
the
- * automatic deployment process.
+ * directories in the host's appBase that will be ignored by the automatic
+ * deployment process.
*/
public Pattern getDeployIgnorePattern();
/**
* Set the regular expression that defines the files and directories in
- * the host's {...@link #appBase} that will be ignored by the automatic
- * deployment process.
+ * the host's appBase that will be ignored by the automatic deployment
+ * process.
*/
public void setDeployIgnore(String deployIgnore);
Modified: tomcat/trunk/java/org/apache/catalina/Server.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/Server.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/Server.java (original)
+++ tomcat/trunk/java/org/apache/catalina/Server.java Wed Jan 12 23:49:18 2011
@@ -119,8 +119,8 @@ public interface Server extends Lifecycl
/**
* Return the parent class loader for this component. If not set, return
- * {...@link Server#getCatalina()#getParentClassLoader(). If no catalina
has
- * been set, return the system class loader.
+ * {...@link #getCatalina()} {...@link Catalina#getParentClassLoader()}. If
+ * catalina has not been set, return the system class loader.
*/
public ClassLoader getParentClassLoader();
Modified: tomcat/trunk/java/org/apache/catalina/Service.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/Service.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/Service.java (original)
+++ tomcat/trunk/java/org/apache/catalina/Service.java Wed Jan 12 23:49:18 2011
@@ -86,8 +86,8 @@ public interface Service extends Lifecyc
/**
* Return the parent class loader for this component. If not set, return
- * {...@link Service#getServer()#getParentClassLoader(). If no server has
- * been set, return the system class loader.
+ * {...@link #getServer()} {...@link Server#getParentClassLoader()}. If no
server
+ * has been set, return the system class loader.
*/
public ClassLoader getParentClassLoader();
Modified:
tomcat/trunk/java/org/apache/catalina/authenticator/AuthenticatorBase.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/authenticator/AuthenticatorBase.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/authenticator/AuthenticatorBase.java
(original)
+++ tomcat/trunk/java/org/apache/catalina/authenticator/AuthenticatorBase.java
Wed Jan 12 23:49:18 2011
@@ -169,14 +169,14 @@ public abstract class AuthenticatorBase
* The Java class name of the secure random number generator class to be
* used when generating SSO session identifiers. The random number
generator
* class must be self-seeding and have a zero-argument constructor. If not
- * specified, an instance of {...@link java.secure.SecureRandom} will be
+ * specified, an instance of {...@link java.security.SecureRandom} will be
* generated.
*/
protected String secureRandomClass = null;
/**
* The name of the algorithm to use to create instances of
- * {...@link java.secure.SecureRandom} which are used to generate SSO
session
+ * {...@link java.security.SecureRandom} which are used to generate SSO
session
* IDs. If no algorithm is specified, SHA1PRNG is used. To use the platform
* default (which may be SHA1PRNG), specify the empty string. If an invalid
* algorithm and/or provider is specified the SecureRandom instances will
be
@@ -187,7 +187,7 @@ public abstract class AuthenticatorBase
/**
* The name of the provider to use to create instances of
- * {...@link java.secure.SecureRandom} which are used to generate session
SSO
+ * {...@link java.security.SecureRandom} which are used to generate
session SSO
* IDs. If no algorithm is specified the of SHA1PRNG default is used. If an
* invalid algorithm and/or provider is specified the SecureRandom
instances
* will be created using the defaults. If that fails, the SecureRandom
Modified: tomcat/trunk/java/org/apache/catalina/filters/RequestFilter.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/filters/RequestFilter.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/filters/RequestFilter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/filters/RequestFilter.java Wed Jan 12
23:49:18 2011
@@ -126,7 +126,7 @@ public abstract class RequestFilter
* Set the regular expression used to test for denied requests for this
* Filter, if any.
*
- * @param allow The new deny expression
+ * @param deny The new deny expression
*/
public void setDeny(String deny) {
if (deny == null || deny.length() == 0) {
Modified: tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java (original)
+++ tomcat/trunk/java/org/apache/catalina/session/ManagerBase.java Wed Jan 12
23:49:18 2011
@@ -108,14 +108,14 @@ public abstract class ManagerBase extend
* The Java class name of the secure random number generator class to be
* used when generating session identifiers. The random number generator
* class must be self-seeding and have a zero-argument constructor. If not
- * specified, an instance of {...@link java.secure.SecureRandom} will be
+ * specified, an instance of {...@link java.security.SecureRandom} will be
* generated.
*/
protected String secureRandomClass = null;
/**
* The name of the algorithm to use to create instances of
- * {...@link java.secure.SecureRandom} which are used to generate session
IDs.
+ * {...@link java.security.SecureRandom} which are used to generate
session IDs.
* If no algorithm is specified, SHA1PRNG is used. To use the platform
* default (which may be SHA1PRNG), specify the empty string. If an invalid
* algorithm and/or provider is specified the SecureRandom instances will
be
@@ -126,7 +126,7 @@ public abstract class ManagerBase extend
/**
* The name of the provider to use to create instances of
- * {...@link java.secure.SecureRandom} which are used to generate session
IDs.
+ * {...@link java.security.SecureRandom} which are used to generate
session IDs.
* If no algorithm is specified the of SHA1PRNG default is used. If an
* invalid algorithm and/or provider is specified the SecureRandom
instances
* will be created using the defaults. If that fails, the SecureRandom
Modified: tomcat/trunk/java/org/apache/catalina/valves/RequestFilterValve.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/RequestFilterValve.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/valves/RequestFilterValve.java
(original)
+++ tomcat/trunk/java/org/apache/catalina/valves/RequestFilterValve.java Wed
Jan 12 23:49:18 2011
@@ -139,7 +139,7 @@ public abstract class RequestFilterValve
* Set the regular expression used to test for denied requests for this
* Valve, if any.
*
- * @param allow The new deny expression
+ * @param deny The new deny expression
*/
public void setDeny(String deny) {
if (deny == null || deny.length() == 0) {
Modified: tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java Wed Jan
12 23:49:18 2011
@@ -312,17 +312,19 @@ public abstract class AbstractEndpoint {
/**
* Attributes provide a way for configuration to be passed to
sub-components
- * without the {...@link ProtocolHandler} being aware of the properties
- * available on those sub-components. One example of such a sub-component
is
- * the {...@link org.apache.tomcat.util.net.ServerSocketFactory}.
+ * without the {...@link org.apache.coyote.ProtocolHandler} being aware of
the
+ * properties available on those sub-components. One example of such a
+ * sub-component is the
+ * {...@link org.apache.tomcat.util.net.ServerSocketFactory}.
*/
protected HashMap<String, Object> attributes =
new HashMap<String, Object>();
/**
* Generic property setter called when a property for which a specific
- * setter already exists within the {...@link ProtocolHandler} needs to be
- * made available to sub-components. The specific setter will call this
- * method to populate the attributes.
+ * setter already exists within the
+ * {...@link org.apache.coyote.ProtocolHandler} needs to be made available
to
+ * sub-components. The specific setter will call this method to populate
the
+ * attributes.
*/
public void setAttribute(String name, Object value) {
if (getLog().isTraceEnabled()) {
Modified: tomcat/trunk/java/org/apache/tomcat/util/threads/CounterLatch.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/threads/CounterLatch.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/threads/CounterLatch.java
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/threads/CounterLatch.java Wed Jan
12 23:49:18 2011
@@ -35,13 +35,17 @@ import java.util.concurrent.locks.Abstra
public class CounterLatch {
private class Sync extends AbstractQueuedSynchronizer {
+ private static final long serialVersionUID = 1L;
+
public Sync() {
}
+ @Override
protected int tryAcquireShared(int arg) {
return ((!released) && count.get() == signal) ? -1 : 1;
}
+ @Override
protected boolean tryReleaseShared(int arg) {
return true;
}
@@ -123,7 +127,8 @@ public class CounterLatch {
* If the operation is successful and {...@code expect==waitValue &&
expect!=update} waiting threads will be released.
* @param expect - the expected counter value
* @param update - the new counter value
- * @return
+ * @return <code>true</code> if successful, <code>false</code> if the
+ * current value wasn't as expected
*/
public boolean compareAndSet(long expect, long update) {
boolean result = count.compareAndSet(expect, update);
@@ -152,7 +157,9 @@ public class CounterLatch {
/**
* releases all waiting threads. This operation is permanent, and no
threads will block,
* even if the counter hits the {...@code waitValue} until {...@link
#reset(long)} has been called.
- * @return
+ * @return <code>true</code> if this release of shared mode may permit a
+ * waiting acquire (shared or exclusive) to succeed; and
+ * <code>false</code> otherwise
*/
public boolean releaseAll() {
released = true;
@@ -162,7 +169,7 @@ public class CounterLatch {
/**
* Resets the latch and initializes the counter with the new value.
* @param value the new counter value
- * @see {...@link #releaseAll()}
+ * @see #releaseAll()
*/
public void reset(long value) {
this.count.set(value);
Modified:
tomcat/trunk/java/org/apache/tomcat/util/threads/DedicatedThreadExecutor.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/threads/DedicatedThreadExecutor.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
---
tomcat/trunk/java/org/apache/tomcat/util/threads/DedicatedThreadExecutor.java
(original)
+++
tomcat/trunk/java/org/apache/tomcat/util/threads/DedicatedThreadExecutor.java
Wed Jan 12 23:49:18 2011
@@ -44,7 +44,7 @@ public class DedicatedThreadExecutor {
* @param <V>
* the type of the returned value
* @param callable
- * @return
+ * @return the completed result
*/
public <V> V execute(final Callable<V> callable) {
final Future<V> futureTask = executorService.submit(callable);
@@ -99,7 +99,7 @@ public class DedicatedThreadExecutor {
*
* @param <V>
* @param callable
- * @return
+ * @return the completed result
*/
public static <V> V executeInOwnThread(
final Callable<V> callable) {
Modified:
tomcat/trunk/java/org/apache/tomcat/util/threads/ResizableExecutor.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/threads/ResizableExecutor.java?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/threads/ResizableExecutor.java
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/threads/ResizableExecutor.java Wed
Jan 12 23:49:18 2011
@@ -19,17 +19,21 @@ package org.apache.tomcat.util.threads;
import java.util.concurrent.Executor;
public interface ResizableExecutor extends Executor {
+
/**
- * {...@link java.util.concurrent.ThreadPoolExecutor#getPoolSize()}
- * @return {...@link
java.util.concurrent.ThreadPoolExecutor#getPoolSize()}
+ * Returns the current number of threads in the pool.
+ *
+ * @return the number of threads
*/
public int getPoolSize();
public int getMaxThreads();
/**
- * {...@link java.util.concurrent.ThreadPoolExecutor#getActiveCount()}
- * @return {...@link
java.util.concurrent.ThreadPoolExecutor#getActiveCount()}
+ * Returns the approximate number of threads that are actively executing
+ * tasks.
+ *
+ * @return the number of threads
*/
public int getActiveCount();
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL:
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1058357&r1=1058356&r2=1058357&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Wed Jan 12 23:49:18 2011
@@ -68,6 +68,13 @@
</update>
</changelog>
</subsection>
+ <subsection name="Web applications">
+ <changelog>
+ <fix>
+ Correct a handful of Javadoc warnings. (markt)
+ </fix>
+ </changelog>
+ </subsection>
<subsection name="Other">
<changelog>
<add>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]