diff options
author | Joakim Erdfelt | 2012-02-06 17:01:44 +0000 |
---|---|---|
committer | Joakim Erdfelt | 2012-02-06 17:01:44 +0000 |
commit | 9207423ca084f3ca74cf9668aaea52291d6881da (patch) | |
tree | d4c269d18a83728164b7bc966d29fc2edd13b365 | |
parent | 9781a734bd047ca7b1e8b7be4688275b69e53550 (diff) | |
download | org.eclipse.jetty.project-9207423ca084f3ca74cf9668aaea52291d6881da.tar.gz org.eclipse.jetty.project-9207423ca084f3ca74cf9668aaea52291d6881da.tar.xz org.eclipse.jetty.project-9207423ca084f3ca74cf9668aaea52291d6881da.zip |
Fixing JDK5 build abort due to bad javadocs
8 files changed, 39 insertions, 22 deletions
diff --git a/jetty-aggregate/jetty-all/pom.xml b/jetty-aggregate/jetty-all/pom.xml index 58b44b5165..f8f62fd9e5 100644 --- a/jetty-aggregate/jetty-all/pom.xml +++ b/jetty-aggregate/jetty-all/pom.xml @@ -38,7 +38,7 @@ <configuration> <classifier>sources</classifier> <includes>**/*</includes> - <excludes>META-INF/**</excludes> + <excludes>META-INF/**,**/Servlet3Continuation*,**/Jetty6Continuation*</excludes> <includeGroupIds>org.eclipse.jetty</includeGroupIds> <excludeArtifactIds>javax</excludeArtifactIds> <excludeGroupIds>javax,org.eclipse.jetty.orbit</excludeGroupIds> @@ -171,5 +171,11 @@ <version>${project.version}</version> <scope>provided</scope> </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <scope>provided</scope> + <optional>true</optional> + </dependency> </dependencies> </project> diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnector.java b/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnector.java index e36ee95331..b503dd60ba 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnector.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractConnector.java @@ -18,6 +18,7 @@ import java.net.InetAddress; import java.net.Socket; import java.net.UnknownHostException; import java.util.concurrent.atomic.AtomicLong; + import javax.servlet.ServletRequest; import org.eclipse.jetty.http.HttpBuffers; @@ -30,7 +31,6 @@ import org.eclipse.jetty.io.Buffers.Type; import org.eclipse.jetty.io.Connection; import org.eclipse.jetty.io.EndPoint; import org.eclipse.jetty.io.EofException; -import org.eclipse.jetty.util.component.AbstractLifeCycle; import org.eclipse.jetty.util.component.AggregateLifeCycle; import org.eclipse.jetty.util.component.Dumpable; import org.eclipse.jetty.util.log.Log; @@ -49,8 +49,6 @@ import org.eclipse.jetty.util.thread.ThreadPool; * <li>Base acceptor thread</li> * <li>Optional reverse proxy headers checking</li> * </ul> - * - * */ public abstract class AbstractConnector extends AggregateLifeCycle implements HttpBuffers, Connector, Dumpable { @@ -130,7 +128,7 @@ public abstract class AbstractConnector extends AggregateLifeCycle implements Ht /** Set the ThreadPool. * The threadpool passed is added via {@link #addBean(Object)} so that * it's lifecycle may be managed as a {@link AggregateLifeCycle}. - * @param threadPool the threadPool to set + * @param pool the threadPool to set */ public void setThreadPool(ThreadPool pool) { @@ -225,6 +223,7 @@ public abstract class AbstractConnector extends AggregateLifeCycle implements Ht * @return Returns the maxIdleTime when resources are low. * @deprecated */ + @Deprecated public final int getLowResourceMaxIdleTime() { return getLowResourcesMaxIdleTime(); @@ -236,6 +235,7 @@ public abstract class AbstractConnector extends AggregateLifeCycle implements Ht * The maxIdleTime to set when resources are low. * @deprecated */ + @Deprecated public final void setLowResourceMaxIdleTime(int maxIdleTime) { setLowResourcesMaxIdleTime(maxIdleTime); @@ -639,10 +639,10 @@ public abstract class AbstractConnector extends AggregateLifeCycle implements Ht * * @param check * true if this connector is checking the x-forwarded-for/host/server headers - * @set {@link #setForwardedForHeader(String)} - * @set {@link #setForwardedHostHeader(String)} - * @set {@link #setForwardedProtoHeader(String)} - * @set {@link #setForwardedServerHeader(String)} + * @see #setForwardedForHeader(String) + * @see #setForwardedHostHeader(String) + * @see #setForwardedProtoHeader(String) + * @see #setForwardedServerHeader(String) */ public void setForwarded(boolean check) { diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceCache.java b/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceCache.java index 949f641e5e..e3742bc25e 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceCache.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceCache.java @@ -25,6 +25,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; import org.eclipse.jetty.http.HttpContent; +import org.eclipse.jetty.http.HttpContent.ResourceAsHttpContent; import org.eclipse.jetty.http.HttpFields; import org.eclipse.jetty.http.MimeTypes; import org.eclipse.jetty.io.Buffer; @@ -172,7 +173,7 @@ public class ResourceCache * @param pathInContext The key into the cache * @return The entry matching <code>pathInContext</code>, or a new entry * if no matching entry was found. If the content exists but is not cachable, - * then a {@link HttpContent.ResourceAsHttpContent} instance is return. If + * then a {@link ResourceAsHttpContent} instance is return. If * the resource does not exist, then null is returned. * @throws IOException Problem loading the resource */ @@ -337,6 +338,7 @@ public class ResourceCache } /* ------------------------------------------------------------ */ + @Override public String toString() { return "ResourceCache["+_parent+","+_factory+"]@"+hashCode(); diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java b/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java index 87b2f2e4a2..efa536bf9e 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java @@ -358,7 +358,6 @@ public class UrlEncoded extends MultiMap implements Cloneable /** Decoded parameters to Map. * @param in InputSteam to read * @param map MultiMap to add parameters to - * @param maxLength maximum length of content to read or -1 for no limit * @param maxLength maximum number of keys to read or -1 for no limit */ public static void decode88591To(InputStream in, MultiMap map, int maxLength, int maxKeys) @@ -444,7 +443,6 @@ public class UrlEncoded extends MultiMap implements Cloneable /** Decoded parameters to Map. * @param in InputSteam to read * @param map MultiMap to add parameters to - * @param maxLength maximum length of content to read or -1 for no limit * @param maxLength maximum number of keys to read or -1 for no limit */ public static void decodeUtf8To(InputStream in, MultiMap map, int maxLength, int maxKeys) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/component/AggregateLifeCycle.java b/jetty-util/src/main/java/org/eclipse/jetty/util/component/AggregateLifeCycle.java index 33796a2ba7..38d2aa641b 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/component/AggregateLifeCycle.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/component/AggregateLifeCycle.java @@ -15,13 +15,13 @@ import org.eclipse.jetty.util.log.Logger; * An AggregateLifeCycle is an {@link LifeCycle} implementation for a collection of contained beans. * <p> * Beans can be added the AggregateLifeCycle either as managed beans or as unmanaged beans. A managed bean is started, stopped and destroyed with the aggregate. - * An umanaged bean is associated with the aggregate for the purposes of {@link #dump()}, but it's lifecycle must be managed externally. + * An unmanaged bean is associated with the aggregate for the purposes of {@link #dump()}, but it's lifecycle must be managed externally. * <p> * When a bean is added, if it is a {@link LifeCycle} and it is already started, then it is assumed to be an unmanaged bean. - * Otherwise the methods {@link #addBean(LifeCycle, boolean)}, {@link #manage(LifeCycle)} and {@link #unmanage(LifeCycle)} can be used to + * Otherwise the methods {@link #addBean(Object, boolean)}, {@link #manage(Object)} and {@link #unmanage(Object)} can be used to * explicitly control the life cycle relationship. * <p> - * If adding a bean that is shared between multiple {@link AggregateLifeCycle} instances, then it should be started before being added, so it is unmanged, or + * If adding a bean that is shared between multiple {@link AggregateLifeCycle} instances, then it should be started before being added, so it is unmanaged, or * the API must be used to explicitly set it as unmanaged. * <p> */ @@ -154,7 +154,7 @@ public class AggregateLifeCycle extends AbstractLifeCycle implements Destroyable /** Add an associated lifecycle. * @param o The lifecycle to add * @param managed True if the LifeCycle is to be joined, otherwise it will be disjoint. - * @return + * @return true if bean was added, false if already present. */ public boolean addBean(Object o, boolean managed) { diff --git a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/Ordering.java b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/Ordering.java index 2f07404f2b..e3f2086aad 100644 --- a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/Ordering.java +++ b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/Ordering.java @@ -38,7 +38,7 @@ public interface Ordering /** * AbsoluteOrdering * - * An <absolute-order> element in web.xml + * An <absolute-order> element in web.xml */ public static class AbsoluteOrdering implements Ordering { @@ -122,7 +122,7 @@ public interface Ordering /** * RelativeOrdering * - * A set of <order> elements in web-fragment.xmls. + * A set of <order> elements in web-fragment.xmls. */ public static class RelativeOrdering implements Ordering { @@ -346,7 +346,7 @@ public interface Ordering * @param list * @param fragNameA * @param fragNameB - * @return true if frament name A is before fragment name B + * @return true if fragment name A is before fragment name B */ protected boolean isBefore (List<Resource> list, String fragNameA, String fragNameB) { diff --git a/jetty-websocket/src/main/java/org/eclipse/jetty/websocket/DeflateFrameExtension.java b/jetty-websocket/src/main/java/org/eclipse/jetty/websocket/DeflateFrameExtension.java index 91bbf275f4..cedf0c7ae0 100644 --- a/jetty-websocket/src/main/java/org/eclipse/jetty/websocket/DeflateFrameExtension.java +++ b/jetty-websocket/src/main/java/org/eclipse/jetty/websocket/DeflateFrameExtension.java @@ -27,7 +27,7 @@ import org.eclipse.jetty.util.log.Log; import org.eclipse.jetty.util.log.Logger; /** - * @TODO Implement proposed deflate frame draft + * TODO Implement proposed deflate frame draft */ public class DeflateFrameExtension extends AbstractExtension { @@ -281,9 +281,20 @@ <artifactId>maven-javadoc-plugin</artifactId> <configuration> <docfilessubdirs>true</docfilessubdirs> - <detectLinks>true</detectLinks> + <detectLinks>false</detectLinks> <detectJavaApiLink>true</detectJavaApiLink> - </configuration> + <excludePackageNames>org.slf4j.*;org.mortbay.*</excludePackageNames> + <links> + <link>http://download.eclipse.org/jetty/stable-7/apidocs/</link> + </links> + <tags> + <tag> + <name>org.apache.xbean.XBean</name> + <placement>a</placement> + <head>Apache XBean:</head> + </tag> + </tags> + </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> |