Polishing
This commit is contained in:
parent
1ccd99ebe7
commit
fc46abf0b7
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2017 the original author or authors.
|
* Copyright 2002-2019 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2017 the original author or authors.
|
* Copyright 2002-2019 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -38,7 +38,7 @@ import org.springframework.core.annotation.AliasFor;
|
||||||
* @since 3.1
|
* @since 3.1
|
||||||
* @see CacheConfig
|
* @see CacheConfig
|
||||||
*/
|
*/
|
||||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
|
|
|
@ -45,7 +45,7 @@ import org.springframework.core.annotation.AliasFor;
|
||||||
* @since 3.1
|
* @since 3.1
|
||||||
* @see CacheConfig
|
* @see CacheConfig
|
||||||
*/
|
*/
|
||||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
|
|
|
@ -52,7 +52,7 @@ import org.springframework.core.annotation.AliasFor;
|
||||||
* @since 3.1
|
* @since 3.1
|
||||||
* @see CacheConfig
|
* @see CacheConfig
|
||||||
*/
|
*/
|
||||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
|
|
|
@ -33,7 +33,7 @@ import java.lang.annotation.Target;
|
||||||
* @author Chris Beams
|
* @author Chris Beams
|
||||||
* @since 3.1
|
* @since 3.1
|
||||||
*/
|
*/
|
||||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
|
|
|
@ -30,7 +30,7 @@ import java.lang.annotation.Target;
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
* @see org.springframework.beans.factory.config.BeanDefinition#getDescription()
|
* @see org.springframework.beans.factory.config.BeanDefinition#getDescription()
|
||||||
*/
|
*/
|
||||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Documented
|
@Documented
|
||||||
public @interface Description {
|
public @interface Description {
|
||||||
|
|
|
@ -48,7 +48,7 @@ import java.lang.annotation.Target;
|
||||||
* @see AnnotationAsyncExecutionInterceptor
|
* @see AnnotationAsyncExecutionInterceptor
|
||||||
* @see AsyncAnnotationAdvisor
|
* @see AsyncAnnotationAdvisor
|
||||||
*/
|
*/
|
||||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Documented
|
@Documented
|
||||||
public @interface Async {
|
public @interface Async {
|
||||||
|
|
|
@ -119,7 +119,7 @@ public final class CollectionFactory {
|
||||||
* @see java.util.TreeSet
|
* @see java.util.TreeSet
|
||||||
* @see java.util.LinkedHashSet
|
* @see java.util.LinkedHashSet
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unchecked", "cast", "rawtypes" })
|
@SuppressWarnings({"rawtypes", "unchecked", "cast"})
|
||||||
public static <E> Collection<E> createApproximateCollection(@Nullable Object collection, int capacity) {
|
public static <E> Collection<E> createApproximateCollection(@Nullable Object collection, int capacity) {
|
||||||
if (collection instanceof LinkedList) {
|
if (collection instanceof LinkedList) {
|
||||||
return new LinkedList<>();
|
return new LinkedList<>();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2019 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2019 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -718,7 +718,7 @@ public abstract class AbstractMessageListenerContainer extends AbstractJmsListen
|
||||||
* @see SessionAwareMessageListener
|
* @see SessionAwareMessageListener
|
||||||
* @see #setExposeListenerSession
|
* @see #setExposeListenerSession
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||||
protected void doInvokeListener(SessionAwareMessageListener listener, Session session, Message message)
|
protected void doInvokeListener(SessionAwareMessageListener listener, Session session, Message message)
|
||||||
throws JMSException {
|
throws JMSException {
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ import org.springframework.messaging.Message;
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Documented
|
@Documented
|
||||||
public @interface SendTo {
|
public @interface SendTo {
|
||||||
|
|
|
@ -44,7 +44,7 @@ import org.springframework.core.annotation.AliasFor;
|
||||||
* @see org.springframework.messaging.simp.user.UserDestinationMessageHandler
|
* @see org.springframework.messaging.simp.user.UserDestinationMessageHandler
|
||||||
* @see org.springframework.messaging.simp.SimpMessageHeaderAccessor#getUser()
|
* @see org.springframework.messaging.simp.SimpMessageHeaderAccessor#getUser()
|
||||||
*/
|
*/
|
||||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Documented
|
@Documented
|
||||||
public @interface SendToUser {
|
public @interface SendToUser {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2016 the original author or authors.
|
* Copyright 2002-2019 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2016 the original author or authors.
|
* Copyright 2002-2019 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -56,7 +56,7 @@ import org.springframework.transaction.TransactionDefinition;
|
||||||
* @see org.springframework.transaction.interceptor.DefaultTransactionAttribute
|
* @see org.springframework.transaction.interceptor.DefaultTransactionAttribute
|
||||||
* @see org.springframework.transaction.interceptor.RuleBasedTransactionAttribute
|
* @see org.springframework.transaction.interceptor.RuleBasedTransactionAttribute
|
||||||
*/
|
*/
|
||||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2019 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -47,7 +47,7 @@ import org.springframework.web.cors.CorsConfiguration;
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 4.2
|
* @since 4.2
|
||||||
*/
|
*/
|
||||||
@Target({ ElementType.METHOD, ElementType.TYPE })
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Documented
|
@Documented
|
||||||
public @interface CrossOrigin {
|
public @interface CrossOrigin {
|
||||||
|
|
|
@ -70,7 +70,7 @@ import org.springframework.core.annotation.AliasFor;
|
||||||
* @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
|
* @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
|
||||||
* @see org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerAdapter
|
* @see org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerAdapter
|
||||||
*/
|
*/
|
||||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Documented
|
@Documented
|
||||||
@Mapping
|
@Mapping
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2017 the original author or authors.
|
* Copyright 2002-2019 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -204,7 +204,7 @@ public class ServletWrappingController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||||
public Enumeration<String> getInitParameterNames() {
|
public Enumeration<String> getInitParameterNames() {
|
||||||
return (Enumeration) initParameters.keys();
|
return (Enumeration) initParameters.keys();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue