Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
e98b9384
Commit
e98b9384
authored
Feb 13, 2018
by
igor-suhorukov
Committed by
Phillip Webb
Feb 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish static final usage for constants
Closes gh-12032
parent
94bbaa74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ExitStatus.java
...g/springframework/boot/cli/command/status/ExitStatus.java
+3
-3
SpringApplicationJsonEnvironmentPostProcessor.java
...ot/env/SpringApplicationJsonEnvironmentPostProcessor.java
+3
-3
No files found.
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/status/ExitStatus.java
View file @
e98b9384
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
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.
...
...
@@ -29,12 +29,12 @@ public final class ExitStatus {
/**
* Generic "OK" exit status with zero exit code and {@literal hangup=false}.
*/
public
static
ExitStatus
OK
=
new
ExitStatus
(
0
,
"OK"
);
public
static
final
ExitStatus
OK
=
new
ExitStatus
(
0
,
"OK"
);
/**
* Generic "not OK" exit status with non-zero exit code and {@literal hangup=true}.
*/
public
static
ExitStatus
ERROR
=
new
ExitStatus
(-
1
,
"ERROR"
,
true
);
public
static
final
ExitStatus
ERROR
=
new
ExitStatus
(-
1
,
"ERROR"
,
true
);
private
final
int
code
;
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/SpringApplicationJsonEnvironmentPostProcessor.java
View file @
e98b9384
...
...
@@ -59,12 +59,12 @@ public class SpringApplicationJsonEnvironmentPostProcessor
/**
* Name of the {@code spring.application.json} property.
*/
public
static
String
SPRING_APPLICATION_JSON_PROPERTY
=
"spring.application.json"
;
public
static
final
String
SPRING_APPLICATION_JSON_PROPERTY
=
"spring.application.json"
;
/**
* Name of the {@code SPRING_APPLICATION_JSON} environment variable.
*/
public
static
String
SPRING_APPLICATION_JSON_ENVIRONMENT_VARIABLE
=
"SPRING_APPLICATION_JSON"
;
public
static
final
String
SPRING_APPLICATION_JSON_ENVIRONMENT_VARIABLE
=
"SPRING_APPLICATION_JSON"
;
private
static
final
String
SERVLET_ENVIRONMENT_CLASS
=
"org.springframework.web."
+
"context.support.StandardServletEnvironment"
;
...
...
@@ -176,7 +176,7 @@ public class SpringApplicationJsonEnvironmentPostProcessor
private
final
JsonPropertyValue
propertyValue
;
JsonPropertySource
(
JsonPropertyValue
propertyValue
,
Map
<
String
,
Object
>
source
)
{
super
(
"spring.application.json"
,
source
);
super
(
SPRING_APPLICATION_JSON_PROPERTY
,
source
);
this
.
propertyValue
=
propertyValue
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment