Merge pull request #42268 from arefbehboudi
* pr/42268: Polish Closes gh-42268
This commit is contained in:
@@ -48,11 +48,8 @@ class SpringBootBanner implements Banner {
|
||||
printStream.println();
|
||||
printStream.println(BANNER);
|
||||
String version = String.format(" (v%s)", SpringBootVersion.getVersion());
|
||||
StringBuilder padding = new StringBuilder();
|
||||
while (padding.length() < STRAP_LINE_SIZE - (version.length() + SPRING_BOOT.length())) {
|
||||
padding.append(" ");
|
||||
}
|
||||
printStream.println(AnsiOutput.toString(AnsiColor.GREEN, SPRING_BOOT, AnsiColor.DEFAULT, padding.toString(),
|
||||
String padding = " ".repeat(Math.max(0, STRAP_LINE_SIZE - (version.length() + SPRING_BOOT.length())));
|
||||
printStream.println(AnsiOutput.toString(AnsiColor.GREEN, SPRING_BOOT, AnsiColor.DEFAULT, padding,
|
||||
AnsiStyle.FAINT, version));
|
||||
printStream.println();
|
||||
}
|
||||
|
||||
@@ -83,7 +83,6 @@ public class ParentContextApplicationContextInitializer
|
||||
/**
|
||||
* {@link ApplicationEvent} fired when a parent context is available.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public static class ParentContextAvailableEvent extends ApplicationEvent {
|
||||
|
||||
public ParentContextAvailableEvent(ConfigurableApplicationContext applicationContext) {
|
||||
|
||||
@@ -213,10 +213,7 @@ public class CloudFoundryVcapEnvironmentPostProcessor implements EnvironmentPost
|
||||
else if (value instanceof String) {
|
||||
properties.put(name, value);
|
||||
}
|
||||
else if (value instanceof Number) {
|
||||
properties.put(name, value.toString());
|
||||
}
|
||||
else if (value instanceof Boolean) {
|
||||
else if (value instanceof Number || value instanceof Boolean) {
|
||||
properties.put(name, value.toString());
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user