Fix annotation styling issues
Update all annotations so that each is on its own line and consistently use the short form (i.e. don't use `value=`) when possible. Issue: SPR-16968
This commit is contained in:
parent
e9d1b39aff
commit
04a8c285df
|
@ -875,7 +875,11 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
|
|||
/**
|
||||
* Holder used to keep a reference to a {@code Class} value.
|
||||
*/
|
||||
class Holder { @Nullable Class<?> value = null; }
|
||||
class Holder {
|
||||
|
||||
@Nullable
|
||||
Class<?> value = null;
|
||||
}
|
||||
|
||||
final Holder objectType = new Holder();
|
||||
|
||||
|
|
|
@ -723,8 +723,8 @@ public class JmsTemplate extends JmsDestinationAccessor implements JmsOperations
|
|||
return receiveSelected(destinationName, null);
|
||||
}
|
||||
|
||||
@Override@Nullable
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public Message receiveSelected(String messageSelector) throws JmsException {
|
||||
Destination defaultDestination = getDefaultDestination();
|
||||
if (defaultDestination != null) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -144,7 +144,7 @@ public @interface Sql {
|
|||
* local vs. global configuration, inheritance, overrides, etc.
|
||||
* <p>Defaults to an empty {@link SqlConfig @SqlConfig} instance.
|
||||
*/
|
||||
SqlConfig config() default @SqlConfig();
|
||||
SqlConfig config() default @SqlConfig;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -93,7 +93,7 @@ public abstract class ServletContextPropertyUtils {
|
|||
this.servletContext = servletContext;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Override
|
||||
@Nullable
|
||||
public String resolvePlaceholder(String placeholderName) {
|
||||
try {
|
||||
|
|
|
@ -1039,7 +1039,8 @@ public class WebMvcConfigurationSupport implements ApplicationContextAware, Serv
|
|||
protected void addCorsMappings(CorsRegistry registry) {
|
||||
}
|
||||
|
||||
@Bean @Lazy
|
||||
@Bean
|
||||
@Lazy
|
||||
public HandlerMappingIntrospector mvcHandlerMappingIntrospector() {
|
||||
return new HandlerMappingIntrospector();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue