* Remove unnecessary type specifiers (use Java 7 <>)
* Remove unnecessary "extends Object" declarations
* Remove unnecessary semi-colons
* Merge identical catch blocks
* Remove redundant modifiers:
- enum constructors are private by default
- interface properties are public static final by default
- interface methods are public abstract by default
- interfaces are abstract by default
- inner interfaces are static by default
- inner classes in interfaces are public static by default
Change-Id: Ie8f6cd7df4287d427e9ecb8174bcd8c79a80c4de
Signed-off-by: Stephen Kitt <skitt@redhat.com>
* Created by kramesha on 7/16/14.
*/
public class LogGenerator {
- private Map<ActorRef, LoggingThread> clientToLoggingThread = new HashMap<ActorRef, LoggingThread>();
+ private Map<ActorRef, LoggingThread> clientToLoggingThread = new HashMap<>();
public void startLoggingForClient(ActorRef client) {
LoggingThread lt = new LoggingThread(client);
private static Map<String, String> allPeers = new HashMap<>();
- private static Map<String, ActorRef> clientActorRefs = new HashMap<String, ActorRef>();
- private static Map<String, ActorRef> actorRefs = new HashMap<String, ActorRef>();
+ private static Map<String, ActorRef> clientActorRefs = new HashMap<>();
+ private static Map<String, ActorRef> actorRefs = new HashMap<>();
private static LogGenerator logGenerator = new LogGenerator();
private int nameCounter = 0;
private static ConfigParams configParams = new ExampleConfigParamsImpl();