Skip to content

Commit 902905a

Browse files
committed
Fix SpringBootVersion tangle
Update `SpringBootVersion` to no longer reference `SpringApplication` for the root package. Fixes gh-8610
1 parent 40b3372 commit 902905a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2015 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ private SpringBootVersion() {
4040
* @see Package#getImplementationVersion()
4141
*/
4242
public static String getVersion() {
43-
Package pkg = SpringApplication.class.getPackage();
43+
Package pkg = SpringBootVersion.class.getPackage();
4444
return (pkg != null ? pkg.getImplementationVersion() : null);
4545
}
4646

0 commit comments

Comments
 (0)