From 665a7c8851aeeb2427e60f77b010c47aff4a4735 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Fri, 16 Dec 2011 10:27:26 +0000 Subject: [PATCH] A small formatting change. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8937 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/network/kernel/tcp/SelectorKernel.java | 5 ++--- .../networking/com/jme3/network/kernel/udp/UdpKernel.java | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java b/engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java index 5fe3c006a..00060215f 100644 --- a/engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java +++ b/engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java @@ -118,13 +118,12 @@ 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()); data = ByteBuffer.wrap(temp); - } + } // Hand it to all of the endpoints that match our routing for( NioEndpoint p : endpoints.values() ) { diff --git a/engine/src/networking/com/jme3/network/kernel/udp/UdpKernel.java b/engine/src/networking/com/jme3/network/kernel/udp/UdpKernel.java index 53a29fa78..d380b3746 100644 --- a/engine/src/networking/com/jme3/network/kernel/udp/UdpKernel.java +++ b/engine/src/networking/com/jme3/network/kernel/udp/UdpKernel.java @@ -126,13 +126,12 @@ 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()); data = ByteBuffer.wrap(temp); - } + } // Hand it to all of the endpoints that match our routing for( UdpEndpoint p : socketEndpoints.values() ) {