Fix SpringBootVersion tangle

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

Fixes gh-8610
This commit is contained in:
Phillip Webb
2017-03-12 21:22:41 -07:00
parent 40b3372884
commit 902905ad10

View File

@@ -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 {
* @see Package#getImplementationVersion()
*/
public static String getVersion() {
Package pkg = SpringApplication.class.getPackage();
Package pkg = SpringBootVersion.class.getPackage();
return (pkg != null ? pkg.getImplementationVersion() : null);
}