Commit da466fef authored by Nate Fischer's avatar Nate Fischer Committed by Commit Bot

Android: missing Override annotations (errorprone)

No change to behavior.

This adds missing @Override Java annotations in AndroidNetworkLibrary.
This resolves an errorprone compiler warning.

Test: ninja net_java (fewer compiler warnings)
Change-Id: I9b621aec75690ecaba422363796d038d73fc0ca1
Reviewed-on: https://chromium-review.googlesource.com/806749Reviewed-by: default avatarMatt Mueller <mattm@chromium.org>
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521503}
parent 8067cc0f
......@@ -317,46 +317,60 @@ class AndroidNetworkLibrary {
this.fd = mPfd.getFileDescriptor();
}
@Override
protected void accept(SocketImpl s) {
throw new RuntimeException("accept not implemented");
}
@Override
protected int available() {
throw new RuntimeException("accept not implemented");
}
@Override
protected void bind(InetAddress host, int port) {
throw new RuntimeException("accept not implemented");
}
@Override
protected void close() {
// Detach from |fd| to avoid leak detection false positives without closing |fd|.
mPfd.detachFd();
}
@Override
protected void connect(InetAddress address, int port) {
throw new RuntimeException("connect not implemented");
}
@Override
protected void connect(SocketAddress address, int timeout) {
throw new RuntimeException("connect not implemented");
}
@Override
protected void connect(String host, int port) {
throw new RuntimeException("connect not implemented");
}
@Override
protected void create(boolean stream) {
throw new RuntimeException("create not implemented");
}
@Override
protected InputStream getInputStream() {
throw new RuntimeException("getInputStream not implemented");
}
@Override
protected OutputStream getOutputStream() {
throw new RuntimeException("getOutputStream not implemented");
}
@Override
protected void listen(int backlog) {
throw new RuntimeException("listen not implemented");
}
@Override
protected void sendUrgentData(int data) {
throw new RuntimeException("sendUrgentData not implemented");
}
@Override
public Object getOption(int optID) {
throw new RuntimeException("getOption not implemented");
}
@Override
public void setOption(int optID, Object value) {
throw new RuntimeException("setOption not implemented");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment