Skip to content

Commit

Permalink
Executed 'Optimize imports' from IDEA to remove unnecessary imports (#78
Browse files Browse the repository at this point in the history
)
  • Loading branch information
StrongestNumber9 authored Mar 5, 2024
1 parent e661102 commit 1def6db
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 43 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/teragrep/rlp_03/SyslogFrameProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@

package com.teragrep.rlp_03;

import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;

import com.teragrep.rlp_01.RelpCommand;
import com.teragrep.rlp_01.RelpFrameTX;
import com.teragrep.rlp_03.context.frame.RelpFrame;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;

/**
* Implements the accept() method for the FrameProcessor. Takes each request from
* the rxFrameList, creates a response frame for it and adds it to the txFrameList.
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/teragrep/rlp_03/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@

package com.teragrep.rlp_03.config;

import java.lang.management.ManagementFactory;

public class Config {

public final int port;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,18 @@

package com.teragrep.rlp_03.context;

import java.io.IOException;
import java.nio.channels.CancelledKeyException;
import java.nio.channels.SelectionKey;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.RejectedExecutionException;

import com.teragrep.rlp_03.FrameProcessor;
import com.teragrep.rlp_03.FrameProcessorPool;
import com.teragrep.rlp_03.context.buffer.BufferLeasePool;
import com.teragrep.rlp_03.context.channel.Socket;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.nio.channels.CancelledKeyException;
import java.nio.channels.SelectionKey;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.RejectedExecutionException;

import static java.nio.channels.SelectionKey.OP_READ;
import static java.nio.channels.SelectionKey.OP_WRITE;

Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/teragrep/rlp_03/context/InterestOps.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@

package com.teragrep.rlp_03.context;

import java.io.IOException;

public interface InterestOps {
void add(int op);

Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/teragrep/rlp_03/context/RelpReadImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.CancelledKeyException;
import java.util.*;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.atomic.AtomicBoolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@

package com.teragrep.rlp_03.context.channel;

import com.teragrep.rlp_03.context.channel.Socket;

import java.nio.channels.SocketChannel;

public abstract class SocketFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
import com.teragrep.rlp_03.context.frame.fragment.FragmentImpl;
import com.teragrep.rlp_03.context.frame.fragment.FragmentStub;
import com.teragrep.rlp_03.context.frame.function.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.nio.ByteBuffer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@
import com.teragrep.rlp_03.context.buffer.BufferLease;
import com.teragrep.rlp_03.context.frame.fragment.Fragment;

import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;

public class RelpFrameLeaseful implements RelpFrame {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,8 @@

package com.teragrep.rlp_03.context.frame.function;

import com.teragrep.rlp_01.RelpCommand;

import java.nio.ByteBuffer;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Set;
import java.util.function.BiFunction;

public class CommandFunction implements BiFunction<ByteBuffer, LinkedList<ByteBuffer>, Boolean> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@

package com.teragrep.rlp_03.context.frame.function;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.LinkedList;
import java.util.function.BiFunction;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,9 @@

package com.teragrep.rlp_03.context.frame.function;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.nio.ByteBuffer;
import java.util.LinkedList;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import java.util.function.BiFunction;

public class PayloadFunction implements BiFunction<ByteBuffer, LinkedList<ByteBuffer>, Boolean> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@

package com.teragrep.rlp_03.context.frame.function;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.LinkedList;
import java.util.function.BiFunction;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@

package com.teragrep.rlp_03.context.frame.function;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.LinkedList;
import java.util.function.BiFunction;

Expand Down

0 comments on commit 1def6db

Please sign in to comment.