A DESCRIPTION OF THE PROBLEM :
note: this is related to issueJDK-8073216, but not a duplicate
The description of -Xlint:name is wrong, and should be consistent with the description of -Xlint:-name.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
-Xlint:name
Enables warning name. See Enable or Disable Warnings with the -Xlint Option for a list of warnings you can enable with this option.
-Xlint:-name
Disables warning name. See Enable or Disable Warnings with the -Xlint Option for a list of warnings you can disable with this option.
ACTUAL -
-Xlint:name
Disables warning name. See Enable or Disable Warnings with the -Xlint Option for a list of warnings you can disable with this option.
-Xlint:-name
Disables warning name. See Enable or Disable Warnings with the -Xlint Option with the -Xlint option to get a list of warnings that you can disable with this option.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javac.html
note: this is related to issue
The description of -Xlint:name is wrong, and should be consistent with the description of -Xlint:-name.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
-Xlint:name
Enables warning name. See Enable or Disable Warnings with the -Xlint Option for a list of warnings you can enable with this option.
-Xlint:-name
Disables warning name. See Enable or Disable Warnings with the -Xlint Option for a list of warnings you can disable with this option.
ACTUAL -
-Xlint:name
Disables warning name. See Enable or Disable Warnings with the -Xlint Option for a list of warnings you can disable with this option.
-Xlint:-name
Disables warning name. See Enable or Disable Warnings with the -Xlint Option with the -Xlint option to get a list of warnings that you can disable with this option.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javac.html