mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8288706: Unused parameter 'boolean newln' in method java.lang.VersionProps#print(boolean, boolean)
Reviewed-by: iris, alanb, rriggs
This commit is contained in:
parent
dfb24ae4b7
commit
9f37ba44b8
2 changed files with 6 additions and 18 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue