Consistent formatting of license headers, package javadocs, and import declarations

This commit is contained in:
Juergen Hoeller
2014-10-21 00:30:42 +02:00
parent b6fdcffc94
commit 8325b10080
2059 changed files with 3944 additions and 5473 deletions

View File

@@ -17,7 +17,6 @@
package org.springframework.cache.annotation;
import java.util.Collection;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,12 @@
package org.springframework.cache.annotation;
import java.lang.annotation.*;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Group annotation for multiple cache annotations (of different or the same type).

View File

@@ -16,11 +16,12 @@
package org.springframework.cache.config;
import org.w3c.dom.Element;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
import org.springframework.util.StringUtils;
import org.w3c.dom.Element;
/**
* {@code NamespaceHandler} allowing for the configuration of declarative

View File

@@ -1,4 +1,3 @@
/**
* Support package for declarative caching configuration, with XML
* schema being the primary configuration format. See {@link

View File

@@ -27,6 +27,7 @@ import java.util.concurrent.ConcurrentHashMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.aop.framework.AopProxyUtils;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.BeanFactoryAnnotationUtils;

View File

@@ -24,6 +24,7 @@ import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.util.ObjectUtils;
import org.springframework.util.PatternMatchUtils;

View File

@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -1,12 +1,8 @@
/**
*
* Helper infrastructure to locate and access shared application contexts.
*
* <p><b>Note: This package is only relevant for special sharing of application
* contexts, for example behind EJB facades. It is <i>not</i> used in a typical
* web application or standalone application.</b>
*
*/
package org.springframework.context.access;

View File

@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -17,7 +17,6 @@
package org.springframework.context.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -16,11 +16,11 @@
package org.springframework.context.annotation;
import java.lang.annotation.Target;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Documented;
import java.lang.annotation.Target;
/**
* Beans on which the current bean depends. Any beans specified are guaranteed to be

View File

@@ -1,10 +1,6 @@
/**
*
* Annotation support for the Application Context, including JSR-250 "common"
* annotations, component-scanning, and Java-based metadata for creating
* Spring-managed objects.
*
*/
package org.springframework.context.annotation;

View File

@@ -1,9 +1,5 @@
/**
*
* Support package for advanced application context configuration,
* with XML schema being the primary configuration format.
*
*/
package org.springframework.context.config;

View File

@@ -1,9 +1,5 @@
/**
*
* Support classes for application events, like standard context events.
* To be supported by all major application context implementations.
*
*/
package org.springframework.context.event;

View File

@@ -1,8 +1,4 @@
/**
*
* Expression parsing support within a Spring application context.
*
*/
package org.springframework.context.expression;

View File

@@ -1,9 +1,5 @@
/**
*
* Abstraction for determining the current Locale,
* plus global holder that exposes a thread-bound Locale.
*
*/
package org.springframework.context.i18n;

View File

@@ -1,6 +1,4 @@
/**
*
* This package builds on the beans package to add support for
* message sources and for the Observer design pattern, and the
* ability for application objects to obtain resources using a
@@ -11,7 +9,5 @@
* explicitly. One of the strengths of the Spring architecture
* is that application objects can often be configured without
* any dependency on Spring-specific APIs.
*
*/
package org.springframework.context;

View File

@@ -1,10 +1,6 @@
/**
*
* Classes supporting the org.springframework.context package,
* such as abstract base classes for ApplicationContext
* implementations and a MessageSource implementation.
*
*/
package org.springframework.context.support;

View File

@@ -1,9 +1,5 @@
/**
*
* Load-time weaving support for a Spring application context, building on Spring's
* {@link org.springframework.instrument.classloading.LoadTimeWeaver} abstraction.
*
*/
package org.springframework.context.weaving;

View File

@@ -19,7 +19,6 @@ package org.springframework.ejb.access;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.rmi.RemoteException;
import javax.ejb.EJBHome;
import javax.ejb.EJBObject;
import javax.naming.NamingException;

View File

@@ -18,7 +18,6 @@ package org.springframework.ejb.access;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import javax.naming.Context;
import javax.naming.NamingException;

View File

@@ -18,7 +18,6 @@ package org.springframework.ejb.access;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.EJBLocalObject;

View File

@@ -18,7 +18,6 @@ package org.springframework.ejb.access;
import java.lang.reflect.InvocationTargetException;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.EJBObject;
import javax.naming.NamingException;

View File

@@ -1,6 +1,4 @@
/**
*
* This package contains classes that allow easy access to EJBs.
* The basis are AOP interceptors run before and after the EJB invocation.
* In particular, the classes in this package allow transparent access
@@ -20,7 +18,5 @@
* <p>However, the implementation and naming of classes in this package has changed.
* It now uses FactoryBeans and AOP, rather than the custom bean definitions described in
* <i>Expert One-on-One J2EE</i>.
*
*/
package org.springframework.ejb.access;

View File

@@ -17,7 +17,6 @@
package org.springframework.ejb.config;
import org.w3c.dom.Element;
import static org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.*;
import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -25,6 +24,8 @@ import org.springframework.beans.factory.xml.AbstractSimpleBeanDefinitionParser;
import org.springframework.util.StringUtils;
import org.springframework.util.xml.DomUtils;
import static org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.*;
/**
* Abstract base class for BeanDefinitionParsers which build
* JNDI-locating beans, supporting an optional "jndiEnvironment"

View File

@@ -1,9 +1,5 @@
/**
*
* Support package for EJB/J2EE-related configuration,
* with XML schema being the primary configuration format.
*
*/
package org.springframework.ejb.config;

View File

@@ -1,9 +1,6 @@
/**
*
* Support classes for EJB 3 Session Beans and Message-Driven Beans,
* performing injection of Spring beans through an EJB 3 interceptor
* that processes Spring's {@code @Autowired} annotation.
*
*/
package org.springframework.ejb.interceptor;

View File

@@ -1,8 +1,4 @@
/**
*
* Support for class instrumentation on GlassFish.
*
*/
package org.springframework.instrument.classloading.glassfish;

View File

@@ -1,8 +1,4 @@
/**
*
* Support for class instrumentation on JBoss AS 6 and 7.
*
*/
package org.springframework.instrument.classloading.jboss;

View File

@@ -1,9 +1,5 @@
/**
*
* Support package for load time weaving based on class loaders,
* as required by JPA providers (but not JPA-specific).
*
*/
package org.springframework.instrument.classloading;

View File

@@ -2,4 +2,3 @@
* Support for class instrumentation on Tomcat.
*/
package org.springframework.instrument.classloading.tomcat;

View File

@@ -1,8 +1,4 @@
/**
*
* Support for class instrumentation on BEA WebLogic 10.
*
* Support for class instrumentation on BEA WebLogic 10+.
*/
package org.springframework.instrument.classloading.weblogic;

View File

@@ -1,8 +1,4 @@
/**
*
* Support for class instrumentation on IBM WebSphere Application Server 7.
*
* Support for class instrumentation on IBM WebSphere Application Server 7+.
*/
package org.springframework.instrument.classloading.websphere;

View File

@@ -18,7 +18,6 @@ package org.springframework.jmx.access;
import java.io.IOException;
import java.util.Map;
import javax.management.MBeanServerConnection;
import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;

View File

@@ -20,7 +20,6 @@ import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Arrays;
import java.util.Map;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
import javax.management.remote.JMXServiceURL;

View File

@@ -1,8 +1,4 @@
/**
*
* Provides support for accessing remote MBean resources. Requires JMX 1.2 or above.
*
* Provides support for accessing remote MBean resources.
*/
package org.springframework.jmx.access;

View File

@@ -1,10 +1,6 @@
/**
*
* JDK 1.5+ annotations for MBean exposure.
* Java 5 annotations for MBean exposure.
* Hooked into Spring's JMX export infrastructure
* via a special JmxAttributeSource implementation.
*
*/
package org.springframework.jmx.export.annotation;

View File

@@ -1,9 +1,5 @@
/**
*
* Provides a strategy for MBeanInfo assembly. Used by MBeanExporter to
* determine the attributes and operations to expose for Spring-managed beans.
*
*/
package org.springframework.jmx.export.assembler;

View File

@@ -1,9 +1,5 @@
/**
*
* Provides generic JMX metadata classes and basic support for reading
* JMX metadata in a provider-agnostic manner.
*
*/
package org.springframework.jmx.export.metadata;

View File

@@ -17,7 +17,6 @@
package org.springframework.jmx.export.naming;
import java.util.Hashtable;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;

View File

@@ -18,7 +18,6 @@ package org.springframework.jmx.export.naming;
import java.io.IOException;
import java.util.Properties;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;

View File

@@ -1,9 +1,5 @@
/**
*
* Provides a strategy for ObjectName creation. Used by MBeanExporter
* to determine the JMX names to use for exported Spring-managed beans.
*
*/
package org.springframework.jmx.export.naming;

View File

@@ -1,9 +1,5 @@
/**
*
* Provides supporting infrastructure to allow Spring-created MBeans
* to send JMX notifications.
*
*/
package org.springframework.jmx.export.notification;

View File

@@ -1,9 +1,5 @@
/**
*
* This package provides declarative creation and registration of
* Spring-managed beans as JMX MBeans.
*
*/
package org.springframework.jmx.export;

View File

@@ -1,9 +1,5 @@
/**
*
* This package contains Spring's JMX support, which includes registration of
* Spring-managed beans as JMX MBeans as well as access to remote JMX MBeans.
*
*/
package org.springframework.jmx;

View File

@@ -1,8 +1,5 @@
/**
*
* Contains support classes for connecting to local and remote {@code MBeanServer}s
* and for exposing an {@code MBeanServer} to remote clients.
*
*/
package org.springframework.jmx.support;

View File

@@ -1,6 +1,4 @@
/**
*
* The classes in this package make JNDI easier to use,
* facilitating the accessing of configuration stored in JNDI,
* and provide useful superclasses for JNDI access classes.
@@ -8,7 +6,5 @@
* <p>The classes in this package are discussed in Chapter 11 of
* <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0764543857/">Expert One-On-One J2EE Design and Development</a>
* by Rod Johnson (Wrox, 2002).
*
*/
package org.springframework.jndi;

View File

@@ -1,9 +1,5 @@
/**
*
* Support classes for JNDI usage,
* including a JNDI-based BeanFactory implementation.
*
*/
package org.springframework.jndi.support;

View File

@@ -1,9 +1,5 @@
/**
*
* Exception hierarchy for Spring's remoting infrastructure,
* independent of any specific remote method invocation system.
*
*/
package org.springframework.remoting;

View File

@@ -20,7 +20,6 @@ import java.rmi.NoSuchObjectException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Properties;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;

View File

@@ -1,10 +1,6 @@
/**
*
* Remoting classes for conventional RMI and transparent remoting via
* RMI invokers. Provides a proxy factory for accessing RMI services,
* and an exporter for making beans available to RMI clients.
*
*/
package org.springframework.remoting.rmi;

View File

@@ -1,8 +1,4 @@
/**
*
* SOAP-specific exceptions and support classes for Spring's remoting subsystem.
*
*/
package org.springframework.remoting.soap;

View File

@@ -1,9 +1,5 @@
/**
*
* Generic support classes for remoting implementations.
* Provides abstract base classes for remote proxy factories.
*
*/
package org.springframework.remoting.support;

View File

@@ -1,8 +1,4 @@
/**
*
* JDK 1.5+ annotation for asynchronous method execution.
*
* Java 5 annotation for asynchronous method execution.
*/
package org.springframework.scheduling.annotation;

View File

@@ -1,11 +1,8 @@
/**
*
* Scheduling convenience classes for the {@code java.util.concurrent}
* and {@code javax.enterprise.concurrent} packages, allowing to set up a
* ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring
* context. Provides support for the native {@code java.util.concurrent}
* interfaces as well as the Spring {@code TaskExecutor} mechanism.
*
*/
package org.springframework.scheduling.concurrent;

View File

@@ -16,6 +16,10 @@
package org.springframework.scheduling.config;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.beans.factory.parsing.BeanComponentDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -24,10 +28,6 @@ import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser;
import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.util.StringUtils;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
/**
* Parser for the 'scheduled-tasks' element of the scheduling namespace.
*

View File

@@ -1,9 +1,5 @@
/**
*
* Support package for declarative scheduling configuration,
* with XML schema being the primary configuration format.
*
*/
package org.springframework.scheduling.config;

View File

@@ -1,9 +1,5 @@
/**
*
* General exceptions for Spring's scheduling support,
* independent of any specific scheduling system.
*
*/
package org.springframework.scheduling;

View File

@@ -1,9 +1,5 @@
/**
*
* Generic support classes for scheduling.
* Provides a Runnable adapter for Spring's MethodInvoker.
*
*/
package org.springframework.scheduling.support;

View File

@@ -1,11 +1,7 @@
/**
*
* Package providing integration of
* <a href="http://www.beanshell.org">BeanShell</a>
* (and <a href="http://code.google.com/p/beanshell2/">BeanShell2</a>)
* into Spring's scripting infrastructure.
*
*/
package org.springframework.scripting.bsh;

View File

@@ -1,9 +1,5 @@
/**
*
* Support package for Spring's dynamic language machinery,
* with XML schema being the primary configuration format.
*
*/
package org.springframework.scripting.config;

View File

@@ -1,10 +1,6 @@
/**
*
* Package providing integration of
* <a href="http://groovy.codehaus.org">Groovy</a>
* into Spring's scripting infrastructure.
*
*/
package org.springframework.scripting.groovy;

View File

@@ -1,10 +1,6 @@
/**
*
* Package providing integration of
* <a href="http://jruby.sourceforge.net">JRuby</a>
* into Spring's scripting infrastructure.
*
*/
package org.springframework.scripting.jruby;

View File

@@ -1,8 +1,4 @@
/**
*
* Core interfaces for Spring's scripting support.
*
*/
package org.springframework.scripting;

View File

@@ -1,10 +1,6 @@
/**
*
* Support classes for Spring's scripting package.
* Provides a ScriptFactoryPostProcessor for turning ScriptFactory
* definitions into scripted objects.
*
*/
package org.springframework.scripting.support;

View File

@@ -1,11 +1,7 @@
/**
*
* Annotations denoting the roles of types or methods in the overall architecture
* (at a conceptual, rather than implementation, level).
*
* <p>Intended for use by tools and aspects (making an ideal target for pointcuts).
*
*/
package org.springframework.stereotype;

View File

@@ -1,31 +1,5 @@
/**
*
* Contains classes defining the application context subinterface
* for UI applications. The theme feature is added here.
*
* <ul>
* <li>If no {@code UiApplicationContextUtils.THEME_SOURCE_BEAN_NAME}
* bean is available in the context or parent context, a default {@code ResourceBundleThemeSource}
* will be created for requested themes. In this case, the base name of the property file will match
* with the theme name.</li>
* <li>If the bean is available in the context or parent context, a {@code basenamePrefix} can be
* set before the theme name for locating the property files like this:
* <br>{@code
* &lt;bean id="themeSource" class="org.springframework.ui.context.support.ResourceBundleThemeSource"&gt;
* <br> &lt;property name="basenamePrefix"&gt;&lt;value&gt;theme.&lt;/value&gt;&lt;/property&gt;
* <br>&lt;/bean&gt;
* }
* <br> in this case, the themes resource bundles will be named {@code theme.<theme_name>XXX.properties}.
* </li>
* <li>This can be defined at application level and/or at servlet level for web applications.</li>
* <li>Normal i18n features of Resource Bundles are available. So a theme message can be dependant
* of both theme and locale.</li>
* <li>If messages in the resource bundles are in fact paths to resources(css, images, ...), make sure these resources
* are directly available for the user and not, for example, under the WEB-INF directory.</li>
* </ul>
*
* <br>Web packages add the resolution and the setting of the user current theme.
*
*/
package org.springframework.ui.context;

View File

@@ -1,9 +1,5 @@
/**
*
* Classes supporting the org.springframework.ui.context package.
* Provides support classes for specialized UI contexts, e.g. for web UIs.
*
*/
package org.springframework.ui.context.support;