Fix SpringBootVersion tangle
Update `SpringBootVersion` to no longer reference `SpringApplication` for the root package. Fixes gh-8610
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user