Browse Source

Polish

See gh-11193
pull/11378/head
Stephane Nicoll 8 years ago
parent
commit
d920b49ba1
  1. 6
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java
  2. 10
      spring-boot/src/main/java/org/springframework/boot/ansi/AnsiPropertySource.java

6
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2016 the original author or authors. * Copyright 2012-2017 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.
@ -53,8 +53,8 @@ public @interface ConditionalOnSingleCandidate {
* specified is contained in the {@link ApplicationContext} and a primary candidate * specified is contained in the {@link ApplicationContext} and a primary candidate
* exists in case of multiple instances. * exists in case of multiple instances.
* <p> * <p>
* This attribute may <strong>not</strong> be used in conjunction with {@link #type()} * This attribute may <strong>not</strong> be used in conjunction with
* , but it may be used instead of {@link #type()}. * {@link #type()}, but it may be used instead of {@link #type()}.
* @return the class type of the bean to check * @return the class type of the bean to check
*/ */
Class<?> value() default Object.class; Class<?> value() default Object.class;

10
spring-boot/src/main/java/org/springframework/boot/ansi/AnsiPropertySource.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2015 the original author or authors. * Copyright 2012-2017 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.
@ -28,10 +28,10 @@ import org.springframework.util.StringUtils;
/** /**
* {@link PropertyResolver} for {@link AnsiStyle}, {@link AnsiColor} and * {@link PropertyResolver} for {@link AnsiStyle}, {@link AnsiColor} and
* {@link AnsiBackground} elements. Supports properties of the form {@code AnsiStyle.BOLD} * {@link AnsiBackground} elements. Supports properties of the form
* , {@code AnsiColor.RED} or {@code AnsiBackground.GREEN}. Also supports a prefix of * {@code AnsiStyle.BOLD}, {@code AnsiColor.RED} or {@code AnsiBackground.GREEN}. Also
* {@code Ansi.} which is an aggregation of everything (with background colors prefixed * supports a prefix of {@code Ansi.} which is an aggregation of everything (with
* {@code BG_}). * background colors prefixed {@code BG_}).
* *
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0

Loading…
Cancel
Save