I mean _inside method body_ itself.It's only declared, but no code in the method refers to this parameter.
Andrey Turbanov вт, 22 мар. 2022 г. в 01:37, Mandy Chung <[email protected]>: > > VersionProps::print(boolean err, boolean newln) is called by > VersionProps::println(boolean) and VersionProps::print(boolean) which is > called from the launcher java -version and -showversion option [1]. > > Mandy > [1] > https://github.com/openjdk/jdk/blob/master/src/java.base/share/native/libjli/java.c#L1804 > > On 3/19/22 11:20 AM, Andrey Turbanov wrote: > > Hello. > I found a suspicious method java.lang.VersionProps#print with unused > parameter 'boolean newln'. > This class is generated from template - > https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/VersionProps.java.template#L203 > It's unused since integration of 'JDK-8169069 Module system > implementation refresh (11/2016)' - > https://github.com/openjdk/jdk/commit/fbe85300bfcc69cb4dd56e4df33ceea632366283 > > > > Andrey Turbanov > >
