fujaba/NetworkParser

View on GitHub
src/test/java/de/uniks/networkparser/test/PetaFTest.java

Summary

Maintainability
A
0 mins
Test Coverage

Do not hard code the IP address
Open

        NodeProxy proxy = space.getOrCreateProxy("141.51.116.1", 5000);

AvoidUsingHardCodedIP

Since: PMD 4.1

Priority: Medium

Categories: Style

Remediation Points: 50000

Application with hard-coded IP addresses can become impossible to deploy in some cases. Externalizing IP adresses is preferable.

Example:

public class Foo {
 private String ip = '127.0.0.1'; // not recommended
}

Do not hard code the IP address
Open

        space.getOrCreateProxy("141.51.116.1", 5010);

AvoidUsingHardCodedIP

Since: PMD 4.1

Priority: Medium

Categories: Style

Remediation Points: 50000

Application with hard-coded IP addresses can become impossible to deploy in some cases. Externalizing IP adresses is preferable.

Example:

public class Foo {
 private String ip = '127.0.0.1'; // not recommended
}

There are no issues that match your filters.

Category
Status