A small formatting change.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8937 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 13 years ago
parent c686efc3a7
commit 665a7c8851
  1. 3
      engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java
  2. 3
      engine/src/networking/com/jme3/network/kernel/udp/UdpKernel.java

@ -118,8 +118,7 @@ public class SelectorKernel extends AbstractKernel
if( !reliable )
throw new UnsupportedOperationException( "Unreliable send not supported by this kernel." );
if( copy )
{
if( copy ) {
// Copy the data just once
byte[] temp = new byte[data.remaining()];
System.arraycopy(data.array(), data.position(), temp, 0, data.remaining());

@ -126,8 +126,7 @@ public class UdpKernel extends AbstractKernel
if( reliable )
throw new UnsupportedOperationException( "Reliable send not supported by this kernel." );
if( copy )
{
if( copy ) {
// Copy the data just once
byte[] temp = new byte[data.remaining()];
System.arraycopy(data.array(), data.position(), temp, 0, data.remaining());

Loading…
Cancel
Save