Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary public #176

Merged
merged 1 commit into from
Dec 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/timgroup/statsd/ClientChannel.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

import java.nio.channels.WritableByteChannel;

public interface ClientChannel extends WritableByteChannel {
interface ClientChannel extends WritableByteChannel {
String getTransportType();
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.nio.ByteBuffer;
import java.nio.channels.DatagramChannel;

public class DatagramClientChannel implements ClientChannel {
class DatagramClientChannel implements ClientChannel {
protected final DatagramChannel delegate;
private final SocketAddress address;

Expand All @@ -14,7 +14,7 @@ public class DatagramClientChannel implements ClientChannel {
* @param address Address to connect the channel to
* @throws IOException if an I/O error occurs
*/
public DatagramClientChannel(SocketAddress address) throws IOException {
DatagramClientChannel(SocketAddress address) throws IOException {
this(DatagramChannel.open(), address);
}

Expand All @@ -23,7 +23,7 @@ public DatagramClientChannel(SocketAddress address) throws IOException {
* @param delegate Implementation this instance wraps
* @param address Address to connect the channel to
*/
public DatagramClientChannel(DatagramChannel delegate, SocketAddress address) {
DatagramClientChannel(DatagramChannel delegate, SocketAddress address) {
this.delegate = delegate;
this.address = address;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;

public class NamedPipeClientChannel implements ClientChannel {
class NamedPipeClientChannel implements ClientChannel {
private final RandomAccessFile randomAccessFile;
private final FileChannel fileChannel;
private final String pipe;
Expand All @@ -17,7 +17,7 @@ public class NamedPipeClientChannel implements ClientChannel {
* @param address Location of named pipe
* @throws FileNotFoundException if pipe does not exist
*/
public NamedPipeClientChannel(NamedPipeSocketAddress address) throws FileNotFoundException {
NamedPipeClientChannel(NamedPipeSocketAddress address) throws FileNotFoundException {
pipe = address.getPipe();
randomAccessFile = new RandomAccessFile(pipe, "rw");
fileChannel = randomAccessFile.getChannel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.io.IOException;
import java.net.SocketAddress;

public class UnixDatagramClientChannel extends DatagramClientChannel {
class UnixDatagramClientChannel extends DatagramClientChannel {
/**
* Creates a new UnixDatagramClientChannel.
*
Expand All @@ -15,7 +15,7 @@ public class UnixDatagramClientChannel extends DatagramClientChannel {
* @param bufferSize Buffer size
* @throws IOException if socket options cannot be set
*/
public UnixDatagramClientChannel(SocketAddress address, int timeout, int bufferSize) throws IOException {
UnixDatagramClientChannel(SocketAddress address, int timeout, int bufferSize) throws IOException {
super(UnixDatagramChannel.open(), address);
// Set send timeout, to handle the case where the transmission buffer is full
// If no timeout is set, the send becomes blocking
Expand Down