From 902905ad10c58669fe4e3950e8a4df7abe451765 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Sun, 12 Mar 2017 21:22:41 -0700 Subject: [PATCH] Fix SpringBootVersion tangle Update `SpringBootVersion` to no longer reference `SpringApplication` for the root package. Fixes gh-8610 --- .../main/java/org/springframework/boot/SpringBootVersion.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot/src/main/java/org/springframework/boot/SpringBootVersion.java b/spring-boot/src/main/java/org/springframework/boot/SpringBootVersion.java index 095d4ef24e8..971b98753df 100644 --- a/spring-boot/src/main/java/org/springframework/boot/SpringBootVersion.java +++ b/spring-boot/src/main/java/org/springframework/boot/SpringBootVersion.java @@ -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); }