mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 23:03:01 +00:00
Java 7 and 8 cleanup
Diamond operator <> Lambdas and method references
This commit is contained in:
1 parent
3db03edbc9
commit
b72d6efab3
234 files changed
+1614
-2253
No files matched your search
@@ -11,7 +11,7 @@ import mekanism.common.config.MekanismConfig.general;
|
||||
|
||||
public class VoiceServerManager
|
||||
{
|
||||
public Set<VoiceConnection> connections = new HashSet<VoiceConnection>();
|
||||
public Set<VoiceConnection> connections = new HashSet<>();
|
||||
|
||||
public ServerSocket serverSocket;
|
||||
|
||||
@@ -100,9 +100,9 @@ public class VoiceServerManager
|
||||
connections.add(connection);
|
||||
|
||||
Mekanism.logger.info("VoiceServer: Accepted new connection.");
|
||||
} catch(SocketException e) {
|
||||
} catch(NullPointerException e) {
|
||||
} catch(Exception e) {
|
||||
} catch(SocketException | NullPointerException e) {
|
||||
}
|
||||
catch(Exception e) {
|
||||
Mekanism.logger.error("VoiceServer: Error while accepting connection.");
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user