Just some whitespace changes.

experimental
Paul Speed 10 years ago
parent c1670e7509
commit 42105f4c4b
  1. 2
      jme3-networking/src/main/java/com/jme3/network/base/DefaultServer.java
  2. 2
      jme3-networking/src/main/java/com/jme3/network/kernel/udp/UdpConnector.java

@ -223,7 +223,7 @@ public class DefaultServer implements Server
{ {
if( connections.isEmpty() ) if( connections.isEmpty() )
return; return;
ByteBuffer buffer = MessageProtocol.messageToBuffer(message, null); ByteBuffer buffer = MessageProtocol.messageToBuffer(message, null);
FilterAdapter adapter = filter == null ? null : new FilterAdapter(filter); FilterAdapter adapter = filter == null ? null : new FilterAdapter(filter);

@ -113,7 +113,6 @@ public class UdpConnector implements Connector
public ByteBuffer read() public ByteBuffer read()
{ {
checkClosed(); checkClosed();
try { try {
DatagramPacket packet = new DatagramPacket( buffer, buffer.length ); DatagramPacket packet = new DatagramPacket( buffer, buffer.length );
sock.receive(packet); sock.receive(packet);
@ -132,7 +131,6 @@ public class UdpConnector implements Connector
public void write( ByteBuffer data ) public void write( ByteBuffer data )
{ {
checkClosed(); checkClosed();
try { try {
DatagramPacket p = new DatagramPacket( data.array(), data.position(), data.remaining(), DatagramPacket p = new DatagramPacket( data.array(), data.position(), data.remaining(),
remoteAddress ); remoteAddress );

Loading…
Cancel
Save