Skip to content

Commit 605ec2f

Browse files
committed
Polish "Add vendor version to JavaInfo"
See gh-29090
1 parent c6e6d10 commit 605ec2f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/info/JavaInfo.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2022 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.
@@ -57,10 +57,13 @@ public JavaVirtualMachineInfo getJvm() {
5757
}
5858

5959
/**
60-
* Information about the Java Vendor of the used Java Runtime.
60+
* Information about the Java Vendor of the Java Runtime the application is running
61+
* in.
62+
*
6163
* @since 2.7.0
6264
*/
6365
public static class JavaVendorInfo {
66+
6467
private final String name;
6568

6669
private final String version;
@@ -77,11 +80,11 @@ public String getName() {
7780
public String getVersion() {
7881
return this.version;
7982
}
83+
8084
}
8185

8286
/**
8387
* Information about the Java Runtime Environment the application is running in.
84-
* @since 2.6.0
8588
*/
8689
public static class JavaRuntimeEnvironmentInfo {
8790

@@ -106,7 +109,6 @@ public String getVersion() {
106109

107110
/**
108111
* Information about the Java Virtual Machine the application is running in.
109-
* @since 2.6.0
110112
*/
111113
public static class JavaVirtualMachineInfo {
112114

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/info/JavaInfoTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2022 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.

0 commit comments

Comments
 (0)