Skip to content

Commit 2a52dec

Browse files
committed
Polishing (including removal of javadoc imports that show as package cycles in IntelliJ)
1 parent 4133272 commit 2a52dec

File tree

7 files changed

+25
-26
lines changed

7 files changed

+25
-26
lines changed

spring-context/src/main/java/org/springframework/scheduling/config/CronTask.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2013 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@
1616

1717
package org.springframework.scheduling.config;
1818

19-
import org.springframework.scheduling.annotation.Scheduled;
2019
import org.springframework.scheduling.support.CronTrigger;
2120

2221
/**
@@ -26,13 +25,13 @@
2625
*
2726
* @author Chris Beams
2827
* @since 3.2
29-
* @see Scheduled#cron()
28+
* @see org.springframework.scheduling.annotation.Scheduled#cron()
3029
* @see ScheduledTaskRegistrar#setCronTasksList(java.util.List)
3130
* @see org.springframework.scheduling.TaskScheduler
3231
*/
3332
public class CronTask extends TriggerTask {
3433

35-
private String expression;
34+
private final String expression;
3635

3736

3837
/**
@@ -54,7 +53,9 @@ public CronTask(Runnable runnable, CronTrigger cronTrigger) {
5453
this.expression = cronTrigger.getExpression();
5554
}
5655

56+
5757
public String getExpression() {
58-
return expression;
58+
return this.expression;
5959
}
60+
6061
}

spring-test/src/main/java/org/springframework/test/util/XmlExpectationsHelper.java

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2013 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,11 +16,8 @@
1616

1717
package org.springframework.test.util;
1818

19-
import static org.springframework.test.util.MatcherAssertionErrors.assertThat;
20-
2119
import java.io.StringReader;
2220
import java.util.Map;
23-
2421
import javax.xml.parsers.DocumentBuilder;
2522
import javax.xml.parsers.DocumentBuilderFactory;
2623
import javax.xml.transform.Source;
@@ -29,11 +26,12 @@
2926
import org.custommonkey.xmlunit.Diff;
3027
import org.custommonkey.xmlunit.XMLUnit;
3128
import org.hamcrest.Matcher;
32-
import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
3329
import org.w3c.dom.Document;
3430
import org.w3c.dom.Node;
3531
import org.xml.sax.InputSource;
3632

33+
import static org.springframework.test.util.MatcherAssertionErrors.*;
34+
3735
/**
3836
* A helper class for assertions on XML content.
3937
*
@@ -73,15 +71,12 @@ public void assertSource(String content, Matcher<? super Source> matcher) throws
7371
* Parse the expected and actual content strings as XML and assert that the
7472
* two are "similar" -- i.e. they contain the same elements and attributes
7573
* regardless of order.
76-
*
7774
* <p>Use of this method assumes the
7875
* <a href="http://xmlunit.sourceforge.net/">XMLUnit<a/> library is available.
79-
*
8076
* @param expected the expected XML content
8177
* @param actual the actual XML content
82-
*
83-
* @see MockMvcResultMatchers#xpath(String, Object...)
84-
* @see MockMvcResultMatchers#xpath(String, Map, Object...)
78+
* @see org.springframework.test.web.servlet.result.MockMvcResultMatchers#xpath(String, Object...)
79+
* @see org.springframework.test.web.servlet.result.MockMvcResultMatchers#xpath(String, Map, Object...)
8580
*/
8681
public void assertXmlEqual(String expected, String actual) throws Exception {
8782

spring-tx/src/main/java/org/springframework/transaction/config/TransactionManagementConfigUtils.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2011 the original author or authors.
2+
* Copyright 2002-2013 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,10 @@
1616

1717
package org.springframework.transaction.config;
1818

19+
/**
20+
* @author Chris Beams
21+
* @since 3.1
22+
*/
1923
public abstract class TransactionManagementConfigUtils {
2024

2125
/**

spring-web/src/main/java/org/springframework/http/converter/support/AllEncompassingFormHttpMessageConverter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2013 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,6 +32,9 @@
3232
*/
3333
public class AllEncompassingFormHttpMessageConverter extends FormHttpMessageConverter {
3434

35+
private static final boolean jaxb2Present =
36+
ClassUtils.isPresent("javax.xml.bind.Binder", AllEncompassingFormHttpMessageConverter.class.getClassLoader());
37+
3538
private static final boolean jackson2Present =
3639
ClassUtils.isPresent("com.fasterxml.jackson.databind.ObjectMapper", AllEncompassingFormHttpMessageConverter.class.getClassLoader()) &&
3740
ClassUtils.isPresent("com.fasterxml.jackson.core.JsonGenerator", AllEncompassingFormHttpMessageConverter.class.getClassLoader());
@@ -40,9 +43,6 @@ public class AllEncompassingFormHttpMessageConverter extends FormHttpMessageConv
4043
ClassUtils.isPresent("org.codehaus.jackson.map.ObjectMapper", AllEncompassingFormHttpMessageConverter.class.getClassLoader()) &&
4144
ClassUtils.isPresent("org.codehaus.jackson.JsonGenerator", AllEncompassingFormHttpMessageConverter.class.getClassLoader());
4245

43-
private static final boolean jaxb2Present =
44-
ClassUtils.isPresent("javax.xml.bind.Binder", AllEncompassingFormHttpMessageConverter.class.getClassLoader());
45-
4646

4747
@SuppressWarnings("deprecation")
4848
public AllEncompassingFormHttpMessageConverter() {

spring-web/src/main/java/org/springframework/http/converter/xml/XmlAwareFormHttpMessageConverter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2013 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,15 +19,15 @@
1919
import javax.xml.transform.Source;
2020

2121
import org.springframework.http.converter.FormHttpMessageConverter;
22-
import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter;
2322

2423
/**
2524
* Extension of {@link org.springframework.http.converter.FormHttpMessageConverter},
2625
* adding support for XML-based parts through a {@link SourceHttpMessageConverter}.
2726
*
2827
* @author Juergen Hoeller
2928
* @since 3.0.3
30-
* @deprecated in favor of {@link AllEncompassingFormHttpMessageConverter}
29+
* @deprecated in favor of
30+
* {@link org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter}
3131
*/
3232
@Deprecated
3333
public class XmlAwareFormHttpMessageConverter extends FormHttpMessageConverter {

spring-webmvc/src/main/java/org/springframework/web/servlet/support/WebContentGenerator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.springframework.web.HttpSessionRequiredException;
2929
import org.springframework.web.context.request.WebRequest;
3030
import org.springframework.web.context.support.WebApplicationObjectSupport;
31-
import org.springframework.web.servlet.mvc.LastModified;
3231

3332
/**
3433
* Convenient superclass for any kind of web content generator,
@@ -204,7 +203,7 @@ public final boolean isUseCacheControlNoStore() {
204203
* programmatically do a lastModified calculation as described in
205204
* {@link WebRequest#checkNotModified(long)}. Default is "false",
206205
* effectively relying on whether the handler implements
207-
* {@link LastModified} or not.
206+
* {@link org.springframework.web.servlet.mvc.LastModified} or not.
208207
*/
209208
public void setAlwaysMustRevalidate(boolean mustRevalidate) {
210209
this.alwaysMustRevalidate = mustRevalidate;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
http\://www.springframework.org/schema/mvc=org.springframework.web.servlet.config.MvcNamespaceHandler
1+
http\://www.springframework.org/schema/mvc=org.springframework.web.servlet.config.MvcNamespaceHandler

0 commit comments

Comments
 (0)