Skip to content

Commit 247685e

Browse files
committed
Add missing @Documented
Closes gh-5786
1 parent 568d716 commit 247685e

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/condition/ConditionalOnEnabledEndpoint.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.boot.actuate.condition;
1818

19+
import java.lang.annotation.Documented;
1920
import java.lang.annotation.ElementType;
2021
import java.lang.annotation.Retention;
2122
import java.lang.annotation.RetentionPolicy;
@@ -33,9 +34,10 @@
3334
* @author Andy Wilkinson
3435
* @since 1.2.4
3536
*/
36-
@Conditional(OnEnabledEndpointCondition.class)
3737
@Retention(RetentionPolicy.RUNTIME)
3838
@Target({ ElementType.METHOD, ElementType.TYPE })
39+
@Conditional(OnEnabledEndpointCondition.class)
40+
@Documented
3941
public @interface ConditionalOnEnabledEndpoint {
4042

4143
/**

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2015 the original author or authors.
2+
* Copyright 2012-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.boot.autoconfigure.condition;
1818

19+
import java.lang.annotation.Documented;
1920
import java.lang.annotation.ElementType;
2021
import java.lang.annotation.Retention;
2122
import java.lang.annotation.RetentionPolicy;
@@ -29,9 +30,10 @@
2930
*
3031
* @author Dave Syer
3132
*/
32-
@Conditional(OnExpressionCondition.class)
3333
@Retention(RetentionPolicy.RUNTIME)
3434
@Target({ ElementType.TYPE, ElementType.METHOD })
35+
@Documented
36+
@Conditional(OnExpressionCondition.class)
3537
public @interface ConditionalOnExpression {
3638

3739
/**

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2015 the original author or authors.
2+
* Copyright 2012-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.boot.autoconfigure.condition;
1818

19+
import java.lang.annotation.Documented;
1920
import java.lang.annotation.ElementType;
2021
import java.lang.annotation.Retention;
2122
import java.lang.annotation.RetentionPolicy;
@@ -76,9 +77,10 @@
7677
* @author Phillip Webb
7778
* @since 1.1.0
7879
*/
79-
@Conditional(OnPropertyCondition.class)
8080
@Retention(RetentionPolicy.RUNTIME)
8181
@Target({ ElementType.TYPE, ElementType.METHOD })
82+
@Documented
83+
@Conditional(OnPropertyCondition.class)
8284
public @interface ConditionalOnProperty {
8385

8486
/**

0 commit comments

Comments
 (0)