Consider the Java code:
ReadProperty.get("info")
And a my_stettings.properties
file:
info=Lorem ipsum
server=computer01
I was wondering if it is possible to use a code analysis tool (Checkstyle, FindBugs, PMD...) to check if the String
parameter of my get()
method is available in the my_stettings.properties
file.
ReadProperty.get("servers") //should produce a warning
ReadProperty.get("server") //is OK
Have you some inputs on how I can achieve this?