Skip to content

Commit 49e754f

Browse files
committed
Merge branch '2.2.x' into 2.3.x
Closes gh-24411
2 parents 30717b6 + 286ef61 commit 49e754f

File tree

8 files changed

+61
-10
lines changed

8 files changed

+61
-10
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/AccessLevel.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public enum AccessLevel {
3838
*/
3939
FULL;
4040

41+
/**
42+
* The request attribute used to store the {@link AccessLevel}.
43+
*/
4144
public static final String REQUEST_ATTRIBUTE = "cloudFoundryAccessLevel";
4245

4346
private final List<String> ids;

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/CloudFoundryAuthorizationException.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,54 @@ public Reason getReason() {
5858
*/
5959
public enum Reason {
6060

61+
/**
62+
* Access Denied.
63+
*/
6164
ACCESS_DENIED(HttpStatus.FORBIDDEN),
6265

66+
/**
67+
* Invalid Audience.
68+
*/
6369
INVALID_AUDIENCE(HttpStatus.UNAUTHORIZED),
6470

71+
/**
72+
* Invalid Issuer.
73+
*/
6574
INVALID_ISSUER(HttpStatus.UNAUTHORIZED),
6675

76+
/**
77+
* Invalid Key ID.
78+
*/
6779
INVALID_KEY_ID(HttpStatus.UNAUTHORIZED),
6880

81+
/**
82+
* Invalid Signature.
83+
*/
6984
INVALID_SIGNATURE(HttpStatus.UNAUTHORIZED),
7085

86+
/**
87+
* Invalid Token.
88+
*/
7189
INVALID_TOKEN(HttpStatus.UNAUTHORIZED),
7290

91+
/**
92+
* Missing Authorization.
93+
*/
7394
MISSING_AUTHORIZATION(HttpStatus.UNAUTHORIZED),
7495

96+
/**
97+
* Token Expired.
98+
*/
7599
TOKEN_EXPIRED(HttpStatus.UNAUTHORIZED),
76100

101+
/**
102+
* Unsupported Token Signing Algorithm.
103+
*/
77104
UNSUPPORTED_TOKEN_SIGNING_ALGORITHM(HttpStatus.UNAUTHORIZED),
78105

106+
/**
107+
* Service Unavailable.
108+
*/
79109
SERVICE_UNAVAILABLE(HttpStatus.SERVICE_UNAVAILABLE);
80110

81111
private final HttpStatus status;

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigureOrder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
@Documented
4949
public @interface AutoConfigureOrder {
5050

51+
/**
52+
* The default order value.
53+
*/
5154
int DEFAULT_ORDER = 0;
5255

5356
/**

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/EnableAutoConfiguration.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@
8383
@Import(AutoConfigurationImportSelector.class)
8484
public @interface EnableAutoConfiguration {
8585

86+
/**
87+
* Environment property that can be used to override when auto-configuration is
88+
* enabled.
89+
*/
8690
String ENABLED_OVERRIDE_PROPERTY = "spring.boot.enableautoconfiguration";
8791

8892
/**

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,23 +401,28 @@ else if (StringUtils.hasLength(this.plural)) {
401401
*/
402402
public enum Style {
403403

404+
/**
405+
* Render with normal styling.
406+
*/
404407
NORMAL {
408+
405409
@Override
406410
protected Object applyToItem(Object item) {
407411
return item;
408412
}
409413

410-
@Override
411-
public Collection<?> applyTo(Collection<?> items) {
412-
return items;
413-
}
414414
},
415415

416+
/**
417+
* Render with the item surrounded by quotes.
418+
*/
416419
QUOTE {
420+
417421
@Override
418422
protected String applyToItem(Object item) {
419423
return (item != null) ? "'" + item + "'" : null;
420424
}
425+
421426
};
422427

423428
public Collection<?> applyTo(Collection<?> items) {

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/DispatcherServletAutoConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@
6969
@AutoConfigureAfter(ServletWebServerFactoryAutoConfiguration.class)
7070
public class DispatcherServletAutoConfiguration {
7171

72-
/*
73-
* The bean name for a DispatcherServlet that will be mapped to the root URL "/"
72+
/**
73+
* The bean name for a DispatcherServlet that will be mapped to the root URL "/".
7474
*/
7575
public static final String DEFAULT_DISPATCHER_SERVLET_BEAN_NAME = "dispatcherServlet";
7676

77-
/*
78-
* The bean name for a ServletRegistrationBean for the DispatcherServlet "/"
77+
/**
78+
* The bean name for a ServletRegistrationBean for the DispatcherServlet "/".
7979
*/
8080
public static final String DEFAULT_DISPATCHER_SERVLET_REGISTRATION_BEAN_NAME = "dispatcherServletRegistration";
8181

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,14 @@
145145
ValidationAutoConfiguration.class })
146146
public class WebMvcAutoConfiguration {
147147

148+
/**
149+
* The default Spring MVC view prefix.
150+
*/
148151
public static final String DEFAULT_PREFIX = "";
149152

153+
/**
154+
* The default Spring MVC view suffix.
155+
*/
150156
public static final String DEFAULT_SUFFIX = "";
151157

152158
private static final String[] SERVLET_LOCATIONS = { "/" };

src/checkstyle/checkstyle-suppressions.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<suppress files="[\\/]src[\\/]test[\\/]java[\\/]" checks="Javadoc*" />
1616
<suppress files="[\\/]src[\\/]test[\\/]java[\\/]" id="mainCodeIllegalImportCheck" />
1717
<suppress files="[\\/]src[\\/]test[\\/]java[\\/]" checks="NonEmptyAtclauseDescription" />
18-
<suppress files="[\\/]autoconfigure[\\/]" checks="JavadocType" />
19-
<suppress files="[\\/]autoconfigure[\\/]" checks="JavadocVariable" />
18+
<suppress files="[\\/]autoconfigure[\\/].*Properties\.java" checks="JavadocType" />
19+
<suppress files="[\\/]autoconfigure[\\/].*Properties\.java" checks="JavadocVariable" />
2020
<suppress files="[\\/]spring-boot-docs[\\/]" checks="JavadocType" />
2121
<suppress files="[\\/]spring-boot-smoke-tests[\\/]" checks="JavadocType" />
2222
<suppress files="[\\/]spring-boot-smoke-tests[\\/]" checks="ImportControl" />

0 commit comments

Comments
 (0)