Skip to content

Commit

Permalink
Fix javadoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
risdenk committed Aug 7, 2019
1 parent 379b162 commit 880ced1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
*
*/
public class GatewayPortMappingConfigTest {

/**
* Mock gateway config
*/
Expand Down Expand Up @@ -108,10 +107,8 @@ public static void stopServers() {
* @param max max port to check
* @return Port that is available.
*/
public static int getAvailablePort(final int min, final int max) {

private static int getAvailablePort(final int min, final int max) {
for (int i = min; i <= max; i++) {

if (!GatewayServer.isPortInUse(i)) {
return i;
}
Expand Down Expand Up @@ -199,7 +196,5 @@ private static void startGatewayServer() throws Exception {

// Start Server
gatewayServer.start();

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public abstract class PortMappingHelper {
static MockServer masterServer;
static int eeriePort;

public PortMappingHelper() {
PortMappingHelper() {
super();
}

Expand All @@ -59,11 +59,14 @@ public PortMappingHelper() {
* This would normally be done once for this suite but the failure tests start
* affecting each other depending on the state the last 'active' url
*
* @param defaultTopologyName default topology name
* @param topologyPortMapping mapping to topology to port
* @param isPortMappingEnabled boolean if port mapping is enabled
* @throws Exception Thrown if any failure occurs.
*/
public static void init(final String defaultTopologyName,
final ConcurrentHashMap<String, Integer> topologyPortMapping, final boolean isPortMappingEnabled)
throws Exception {
final ConcurrentHashMap<String, Integer> topologyPortMapping,
final boolean isPortMappingEnabled) throws Exception {
LOG_ENTER();

masterServer = new MockServer("master", true);
Expand Down Expand Up @@ -114,8 +117,7 @@ public static void init(final String defaultTopologyName, final ConcurrentHashMa
* @param gatewayPort port for the gateway
* @return A populated XML structure for a topology file.
*/
static XMLTag createTopology(final String role, final String ldapURL,
final int gatewayPort) {
static XMLTag createTopology(final String role, final String ldapURL, final int gatewayPort) {
return XMLDoc.newDocument(true).addRoot("topology").addTag("gateway")
.addTag("provider").addTag("role").addText("webappsec").addTag("name")
.addText("WebAppSec").addTag("enabled").addText("true").addTag("param")
Expand Down Expand Up @@ -158,9 +160,7 @@ static XMLTag createTopology(final String role, final String ldapURL,
* @return Port that is available.
*/
static int getAvailablePort(final int min, final int max) {

for (int i = min; i <= max; i++) {

if (!GatewayServer.isPortInUse(i)) {
return i;
}
Expand Down

0 comments on commit 880ced1

Please sign in to comment.