Skip to content
Draft
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
3 changes: 2 additions & 1 deletion src/main/java/core/packetproxy/ProxyFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public static Proxy create(ListenPort listen_info) throws Exception {
listen_socket.setReuseAddress(true);
proxy = new ProxyXmppSSLForward(listen_socket, listen_info);

} else { /* FORWARDER */
} else {
/* FORWARDER */

ServerSocket listen_socket = new ServerSocket(listen_info.getPort());
listen_socket.setReuseAddress(true);
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/core/packetproxy/util/Throwing.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package packetproxy.util;

import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import javax.annotation.Nonnull;

Expand All @@ -20,11 +19,6 @@ public static <T> Predicate<T> rethrowP(@Nonnull final ThrowingPredicate<T> pred
return predicate;
}

@Nonnull
public static <T, R> Function<T, R> rethrowF(@Nonnull final ThrowingFunction<T, R> function) {
return function;
}

@SuppressWarnings("unchecked")
@Nonnull
public static <E extends Throwable> void sneakyThrow(@Nonnull Throwable ex) throws E {
Expand Down
20 changes: 0 additions & 20 deletions src/main/java/core/packetproxy/util/ThrowingBiConsumer.java

This file was deleted.

21 changes: 0 additions & 21 deletions src/main/java/core/packetproxy/util/ThrowingFunction.java

This file was deleted.

19 changes: 0 additions & 19 deletions src/main/java/core/packetproxy/util/WithCounter.java

This file was deleted.