How to disable message "Parameter x is not assigned and could be declared final" in Eclipse?

StackOverflow https://stackoverflow.com/questions/21482010

  •  05-10-2022
  •  | 
  •  

I cannot find place in Eclipse preferences where I can disable this message:

Parameter pjp is not assigned and could be declared final

Where are this place?

有帮助吗?

解决方案

Your warning message is never produced by Eclipse's built-in checks. It is produced by an Eclipse plug-in called PMD, which supports a much wider range of code checks.

The specific PMD rule name is MethodArgumentCouldBeFinal.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top