提交 04a8c285 编写于 作者: P Phillip Webb 提交者: Juergen Hoeller

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
上级 e9d1b39a
......@@ -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) {
......
/*
* 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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册