Skip to content

Commit

Permalink
Fix Indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Owen <[email protected]>
  • Loading branch information
OwenCorrigan76 committed Feb 15, 2024
1 parent e60392b commit f1e4b29
Showing 1 changed file with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ public String listener() {

static class Listener {

private static final Pattern PATTERN = Pattern.compile("http://\\[?([0-9a-zA-Z\\-%._:]*)]?:([0-9]+)");
private static final Pattern PATTERN = Pattern.compile("http://\\[?([0-9a-zA-Z\\-%._:]*)]?:([0-9]+)");

final String host;
final int port;
final String host;
final int port;

public Listener(String host, int port) {
this.host = host;
this.port = port;
}
this.host = host;
this.port = port;
}

public static Listener parseListener(String listener) {
Matcher matcher = PATTERN.matcher(listener);
Expand All @@ -86,27 +86,27 @@ public static Listener parseListener(String listener) {
}
}

@Override
@Override
public String toString() {
return "Listener{" +
return "Listener{" +
"host=" + host +
", port=" + port +
'}';
}
}

@Override
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Listener listener = (Listener) o;
return port == listener.port && Objects.equals(host, listener.host);
}
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Listener listener = (Listener) o;
return port == listener.port && Objects.equals(host, listener.host);
}

@Override
@Override
public int hashCode() {
return Objects.hash(host, port);
}
}
return Objects.hash(host, port);
}
}

@Override
public String toString() {
Expand Down

0 comments on commit f1e4b29

Please sign in to comment.