--- a/src/java.base/share/classes/java/lang/VersionProps.java.template Thu Jan 25 11:56:32 2018 +0000
+++ b/src/java.base/share/classes/java/lang/VersionProps.java.template Thu Jan 25 13:39:28 2018 -0800
@@ -166,15 +166,8 @@
* Print version info.
*/
private static void print(boolean err, boolean newln) {
- boolean isHeadless = false;
PrintStream ps = err ? System.err : System.out;
- /* Report that we're running headless if the property is true */
- String headless = System.getProperty("java.awt.headless");
- if ( (headless != null) && (headless.equalsIgnoreCase("true")) ) {
- isHeadless = true;
- }
-
/* First line: platform version. */
if (err) {
ps.println(launcher_name + " version \"" + java_version + "\""