Skip to content

Commit 1ca943c

Browse files
committed
Fixed javadoc warnings
Issue: SPR-10373
1 parent fcb0cf2 commit 1ca943c

File tree

5 files changed

+32
-31
lines changed

5 files changed

+32
-31
lines changed

build.gradle

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,23 @@ configure(allprojects) { project ->
8080

8181
ext.javadocLinks = [
8282
"http://docs.oracle.com/javase/6/docs/api",
83-
"http://docs.oracle.com/javaee/6/api",
84-
"http://portals.apache.org/pluto/portlet-2.0-apidocs/",
85-
"http://commons.apache.org/proper/commons-codec/apidocs/",
83+
"http://docs.oracle.com/javaee/6/api/",
84+
"http://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/", // CommonJ
85+
"http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.javadoc.doc/web/apidocs/",
86+
"http://glassfish.java.net/nonav/docs/v3/api/",
8687
"http://docs.jboss.org/jbossas/javadoc/4.0.5/connector/",
8788
"http://docs.jboss.org/jbossas/javadoc/7.1.2.Final/",
89+
"http://commons.apache.org/proper/commons-lang/javadocs/api-2.5/",
90+
"http://commons.apache.org/proper/commons-codec/apidocs/",
91+
"http://commons.apache.org/proper/commons-dbcp/apidocs/",
92+
"http://portals.apache.org/pluto/portlet-2.0-apidocs/",
93+
"http://tiles.apache.org/framework/apidocs/",
8894
"http://aopalliance.sourceforge.net/doc/",
89-
"http://glassfish.java.net/nonav/docs/v3/api/",
90-
"http://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/", // commonj
91-
"http://quartz-scheduler.org/api/2.1.7/",
9295
"http://www.eclipse.org/aspectj/doc/released/aspectj5rt-api/",
93-
"http://fasterxml.github.com/jackson-core/javadoc/2.2.0/",
96+
"http://ehcache.org/apidocs/",
97+
"http://quartz-scheduler.org/api/2.1.7/",
9498
"http://jackson.codehaus.org/1.9.12/javadoc/",
95-
"http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.javadoc.doc/web/apidocs/",
96-
"http://tiles.apache.org/framework/apidocs/",
97-
"http://commons.apache.org/proper/commons-dbcp/apidocs/",
99+
"http://fasterxml.github.com/jackson-core/javadoc/2.2.0/",
98100
] as String[]
99101
}
100102

spring-test/src/main/java/org/springframework/mock/web/MockServletContext.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,10 @@ public int getEffectiveMinorVersion() {
263263
}
264264

265265
/**
266-
* This method uses the Java Activation framework, which returns
267-
* "application/octet-stream" when the mime type is unknown (i.e. it never returns
268-
* {@code null}). In order to maintain the {@link ServletContext#getMimeType(String)
269-
* contract, as of version 3.2.2, this method returns null if the mimeType is
270-
* "application/octet-stream".
266+
* This method uses the Java Activation framework, which returns "application/octet-stream"
267+
* when the mime type is unknown (i.e. it never returns {@code null}). In order to maintain
268+
* the {@link ServletContext#getMimeType(String)} contract, this method returns {@code null}
269+
* if the mimeType is "application/octet-stream", as of Spring 3.2.2.
271270
*/
272271
public String getMimeType(String filePath) {
273272
String mimeType = MimeTypeResolver.getMimeType(filePath);

spring-test/src/main/java/org/springframework/test/context/TestContext.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ public final Throwable getTestException() {
167167
* context} associated with this test context is <em>dirty</em> and should be
168168
* discarded. Do this if a test has modified the context &mdash; for example,
169169
* by replacing a bean definition or modifying the state of a singleton bean.
170-
* @deprecated As of Spring 3.2.2, use {@link #markApplicationContextDirty(HierarchyMode)} instead.
170+
* @deprecated as of Spring 3.2.2; use
171+
* {@link #markApplicationContextDirty(DirtiesContext.HierarchyMode)} instead.
171172
*/
172173
@Deprecated
173174
public void markApplicationContextDirty() {

spring-test/src/main/java/org/springframework/test/context/support/DirtiesContextTestExecutionListener.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import org.apache.commons.logging.Log;
2222
import org.apache.commons.logging.LogFactory;
23+
2324
import org.springframework.context.ApplicationContext;
2425
import org.springframework.test.annotation.DirtiesContext;
2526
import org.springframework.test.annotation.DirtiesContext.ClassMode;
@@ -47,8 +48,8 @@ public class DirtiesContextTestExecutionListener extends AbstractTestExecutionLi
4748
* Marks the {@linkplain ApplicationContext application context} of the supplied
4849
* {@linkplain TestContext test context} as
4950
* {@linkplain TestContext#markApplicationContextDirty() dirty}, and sets the
50-
* {@link DependencyInjectionTestExecutionListener#REINJECT_DEPENDENCIES_ATTRIBUTE
51-
* REINJECT_DEPENDENCIES_ATTRIBUTE} in the test context to {@code true}.
51+
* {@link DependencyInjectionTestExecutionListener#REINJECT_DEPENDENCIES_ATTRIBUTE}
52+
* in the test context to {@code true}.
5253
* @param testContext the test context whose application context should
5354
* marked as dirty
5455
* @deprecated as of Spring 3.2.2, use {@link #dirtyContext(TestContext, HierarchyMode)} instead.
@@ -61,10 +62,10 @@ protected void dirtyContext(TestContext testContext) {
6162

6263
/**
6364
* Marks the {@linkplain ApplicationContext application context} of the supplied
64-
* {@linkplain TestContext test context} as {@linkplain
65-
* TestContext#markApplicationContextDirty(HierarchyMode) dirty} and sets the
66-
* {@link DependencyInjectionTestExecutionListener#REINJECT_DEPENDENCIES_ATTRIBUTE
67-
* REINJECT_DEPENDENCIES_ATTRIBUTE} in the test context to {@code true}.
65+
* {@linkplain TestContext test context} as
66+
* {@linkplain TestContext#markApplicationContextDirty(DirtiesContext.HierarchyMode) dirty}
67+
* and sets {@link DependencyInjectionTestExecutionListener#REINJECT_DEPENDENCIES_ATTRIBUTE}
68+
* in the test context to {@code true}.
6869
* @param testContext the test context whose application context should
6970
* marked as dirty
7071
* @param hierarchyMode the context cache clearing mode to be applied if the
@@ -85,9 +86,8 @@ protected void dirtyContext(TestContext testContext, HierarchyMode hierarchyMode
8586
* AFTER_EACH_TEST_METHOD}, the {@linkplain ApplicationContext application
8687
* context} of the test context will be
8788
* {@linkplain TestContext#markApplicationContextDirty() marked as dirty} and the
88-
* {@link DependencyInjectionTestExecutionListener#REINJECT_DEPENDENCIES_ATTRIBUTE
89-
* REINJECT_DEPENDENCIES_ATTRIBUTE} in the test context will be set to
90-
* {@code true}.
89+
* {@link DependencyInjectionTestExecutionListener#REINJECT_DEPENDENCIES_ATTRIBUTE}
90+
* in the test context will be set to {@code true}.
9191
*/
9292
@Override
9393
public void afterTestMethod(TestContext testContext) throws Exception {

spring-web/src/test/java/org/springframework/mock/web/test/MockServletContext.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,16 +269,15 @@ public int getEffectiveMinorVersion() {
269269
}
270270

271271
/**
272-
* This method uses the Java Activation framework, which returns
273-
* "application/octet-stream" when the mime type is unknown (i.e. it never returns
274-
* {@code null}). In order to maintain the {@link ServletContext#getMimeType(String)
275-
* contract, as of version 3.2.2, this method returns null if the mimeType is
276-
* "application/octet-stream".
272+
* This method uses the Java Activation framework, which returns "application/octet-stream"
273+
* when the mime type is unknown (i.e. it never returns {@code null}). In order to maintain
274+
* the {@link ServletContext#getMimeType(String)} contract, this method returns {@code null}
275+
* if the mimeType is "application/octet-stream", as of Spring 3.2.2.
277276
*/
278277
@Override
279278
public String getMimeType(String filePath) {
280279
String mimeType = MimeTypeResolver.getMimeType(filePath);
281-
return ("application/octet-stream".equals(mimeType)) ? null : mimeType;
280+
return ("application/octet-stream".equals(mimeType) ? null : mimeType);
282281
}
283282

284283
@Override

0 commit comments

Comments
 (0)