At least fixing the type-check warnings in the code I added.

Serializer is a little harder...


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7218 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 14 years ago
parent 4deb4d46e7
commit 49f65bd7aa
  1. 4
      engine/src/networking/com/jme3/network/base/ConnectorAdapter.java
  2. 2
      engine/src/networking/com/jme3/network/base/DefaultClient.java
  3. 1
      engine/src/networking/com/jme3/network/base/DefaultServer.java
  4. 4
      engine/src/networking/com/jme3/network/base/KernelAdapter.java

@ -61,14 +61,14 @@ import com.jme3.network.serializing.Serializer;
public class ConnectorAdapter extends Thread
{
private Connector connector;
private MessageListener dispatcher;
private MessageListener<Object> dispatcher;
private AtomicBoolean go = new AtomicBoolean(true);
// Marks the messages as reliable or not if they came
// through this connector.
private boolean reliable;
public ConnectorAdapter( Connector connector, MessageListener dispatcher, boolean reliable )
public ConnectorAdapter( Connector connector, MessageListener<Object> dispatcher, boolean reliable )
{
super( String.valueOf(connector) );
this.connector = connector;

@ -311,7 +311,7 @@ public class DefaultClient implements Client
}
}
protected class Redispatch implements MessageListener
protected class Redispatch implements MessageListener<Object>
{
public void messageReceived( Object source, Message m )
{

@ -434,6 +434,7 @@ public class DefaultServer implements Server
return sessionData.put(name, value);
}
@SuppressWarnings("unchecked")
public <T> T getAttribute( String name )
{
return (T)sessionData.get(name);

@ -67,14 +67,14 @@ public class KernelAdapter extends Thread
private DefaultServer server; // this is unfortunate
private Kernel kernel;
private MessageListener messageDispatcher;
private MessageListener<HostedConnection> messageDispatcher;
private AtomicBoolean go = new AtomicBoolean(true);
// Marks the messages as reliable or not if they came
// through this connector.
private boolean reliable;
public KernelAdapter( DefaultServer server, Kernel kernel, MessageListener messageDispatcher,
public KernelAdapter( DefaultServer server, Kernel kernel, MessageListener<HostedConnection> messageDispatcher,
boolean reliable )
{
super( String.valueOf(kernel) );

Loading…
Cancel
Save