resources.report.rules.pmd.AvoidUsingHardCodedIP.html Maven / Gradle / Ivy
AvoidUsingHardCodedIP
AvoidUsingHardCodedIP
Application with hard-coded IP addresses can become impossible to deploy in some cases. Externalizing IP adresses is preferable.
This rule is defined by the following Java class: net.sourceforge.pmd.lang.java.rule.basic.AvoidUsingHardCodedIPRule
Example(s):
public class Foo {
private String ip = "127.0.0.1"; // not recommended
}