Java 1.6 compatibility fixes

This commit is contained in:
nathan 2017-09-25 23:29:17 +02:00
parent 9bb03fa919
commit aa686ef99a
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4"> <module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="true"> <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true">
<exclude-output /> <exclude-output />
<content url="file://$MODULE_DIR$"> <content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />

View File

@ -110,7 +110,7 @@ class ConnectionImpl extends ChannelInboundHandlerAdapter implements ICryptoConn
// //
private final RmiBridge rmiBridge; private final RmiBridge rmiBridge;
private final Map<Integer, RemoteObject> proxyIdCache = new WeakHashMap<Integer, RemoteObject>(8); private final Map<Integer, RemoteObject> proxyIdCache = new WeakHashMap<Integer, RemoteObject>(8);
private final IntMap<RemoteObjectCallback> rmiRegistrationCallbacks = new IntMap<>(); private final IntMap<RemoteObjectCallback> rmiRegistrationCallbacks = new IntMap<RemoteObjectCallback>();
private int rmiRegistrationID = 0; // protected by synchronized (rmiRegistrationCallbacks) private int rmiRegistrationID = 0; // protected by synchronized (rmiRegistrationCallbacks)
/** /**

View File

@ -290,7 +290,7 @@ class RmiGlobalTest extends BaseTest {
.add(new Listener.OnMessageReceived<Connection, MessageWithTestCow>() { .add(new Listener.OnMessageReceived<Connection, MessageWithTestCow>() {
@Override @Override
public public
void received(Connection connection, MessageWithTestCow m) { void received(final Connection connection, MessageWithTestCow m) {
System.err.println("Received finish signal for test for: Server -> Client"); System.err.println("Received finish signal for test for: Server -> Client");
TestCow object = m.testCow; TestCow object = m.testCow;

View File

@ -204,7 +204,7 @@ class RmiTest extends BaseTest {
listeners.add(new Listener.OnMessageReceived<Connection, MessageWithTestCow>() { listeners.add(new Listener.OnMessageReceived<Connection, MessageWithTestCow>() {
@Override @Override
public public
void received(Connection connection, MessageWithTestCow m) { void received(final Connection connection, MessageWithTestCow m) {
System.err.println("Received finish signal for test for: Client -> Server"); System.err.println("Received finish signal for test for: Client -> Server");
TestCow object = m.testCow; TestCow object = m.testCow;