8288706: Unused parameter 'boolean newln' in method java.lang.VersionProps#print(boolean, boolean)

Reviewed-by: iris, alanb, rriggs
This commit is contained in:
Lance Andersen 2022-07-06 15:37:23 +00:00
parent dfb24ae4b7
commit 9f37ba44b8
2 changed files with 6 additions and 18 deletions

View file

@ -186,25 +186,13 @@ class VersionProps {
}
}
/**
* In case you were wondering this method is called by java -version.
*/
public static void print(boolean err) {
print(err, false);
}
/**
* This is the same as print except that it adds an extra line-feed
* at the end, typically used by the -showversion in the launcher
*/
public static void println(boolean err) {
print(err, true);
}
/**
* Print version info.
* In case you were wondering this method is called by java -version.
*/
private static void print(boolean err, boolean newln) {
private static void print(boolean err) {
PrintStream ps = err ? System.err : System.out;
/* First line: platform version. */