Browse Source

Fix SpringBootVersion tangle

Update `SpringBootVersion` to no longer reference `SpringApplication`
for the root package.

Fixes gh-8610
pull/8621/head
Phillip Webb 9 years ago
parent
commit
902905ad10
  1. 4
      spring-boot/src/main/java/org/springframework/boot/SpringBootVersion.java

4
spring-boot/src/main/java/org/springframework/boot/SpringBootVersion.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2017 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.
@ -40,7 +40,7 @@ public final class SpringBootVersion { @@ -40,7 +40,7 @@ public final class SpringBootVersion {
* @see Package#getImplementationVersion()
*/
public static String getVersion() {
Package pkg = SpringApplication.class.getPackage();
Package pkg = SpringBootVersion.class.getPackage();
return (pkg != null ? pkg.getImplementationVersion() : null);
}

Loading…
Cancel
Save