Merge pull request #8552 from sotuzun:master

* pr/8552:
  Remove unused parameter
pull/8490/merge
Stephane Nicoll 8 years ago
commit 7ed97d3e0b

@ -56,7 +56,7 @@ class SpringApplicationBannerPrinter {
}
public Banner print(Environment environment, Class<?> sourceClass, Log logger) {
Banner banner = getBanner(environment, this.fallbackBanner);
Banner banner = getBanner(environment);
try {
logger.info(createStringFromBanner(banner, environment, sourceClass));
}
@ -67,12 +67,12 @@ class SpringApplicationBannerPrinter {
}
public Banner print(Environment environment, Class<?> sourceClass, PrintStream out) {
Banner banner = getBanner(environment, this.fallbackBanner);
Banner banner = getBanner(environment);
banner.printBanner(environment, sourceClass, out);
return new PrintedBanner(banner, sourceClass);
}
private Banner getBanner(Environment environment, Banner definedBanner) {
private Banner getBanner(Environment environment) {
Banners banners = new Banners();
banners.addIfNotNull(getImageBanner(environment));
banners.addIfNotNull(getTextBanner(environment));

Loading…
Cancel
Save