Skip to content

Commit

Permalink
To squash
Browse files Browse the repository at this point in the history
Signed-off-by: Rossen Stoyanchev <rstoyanchev@vmware.com>
  • Loading branch information
rstoyanchev committed Sep 10, 2020
1 parent 36f478c commit 0002d67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public ByteBufAllocator alloc() {

@Override
public SocketAddress remoteAddress() {
return new LocalSocketAddress(name);
return new TestLocalSocketAddress(name);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public ByteBufAllocator alloc() {

@Override
public SocketAddress remoteAddress() {
return new LocalSocketAddress("TestDuplexConnection");
return new TestLocalSocketAddress("TestDuplexConnection");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.net.SocketAddress;
import java.util.Objects;

public final class LocalSocketAddress extends SocketAddress {
public final class TestLocalSocketAddress extends SocketAddress {

private static final long serialVersionUID = 2608695156052100164L;

Expand All @@ -30,7 +30,7 @@ public final class LocalSocketAddress extends SocketAddress {
* @param name the name representing the address
* @throws NullPointerException if {@code name} is {@code null}
*/
public LocalSocketAddress(String name) {
public TestLocalSocketAddress(String name) {
this.name = Objects.requireNonNull(name, "name must not be null");
}

Expand Down

0 comments on commit 0002d67

Please sign in to comment.