mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-14 00:49:42 +00:00
8150168: jconsole AboutDialog should use the JDK specific Version API
Reviewed-by: alanb, iris
This commit is contained in:
parent
db1d24f5e1
commit
10b0529188
@ -34,8 +34,6 @@ import javax.swing.*;
|
||||
import javax.swing.border.*;
|
||||
import javax.swing.event.*;
|
||||
|
||||
import static sun.misc.Version.jdkMinorVersion;
|
||||
|
||||
import static java.awt.BorderLayout.*;
|
||||
import static sun.tools.jconsole.Utilities.*;
|
||||
|
||||
@ -183,7 +181,7 @@ public class AboutDialog extends InternalDialog {
|
||||
}
|
||||
|
||||
private static String getOnlineDocUrl() {
|
||||
String version = Integer.toString(jdkMinorVersion());
|
||||
String version = Integer.toString(jdk.Version.current().major());
|
||||
return Resources.format(Messages.HELP_ABOUT_DIALOG_USER_GUIDE_LINK_URL,
|
||||
version);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user