HCOLL-134 ( release draft cut of the code so that I can test it across my network ) and commented out java 8 code in test so we can use java 7

This commit is contained in:
Rob Austin
2014-10-01 18:01:25 +01:00
parent 99549ce08e
commit 73bc6960f6
3 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -133,8 +133,8 @@
<compilerArgument>-Xlint:deprecation</compilerArgument>
<source>1.6</source>
<target>1.6</target>
<testSource>1.8</testSource>
<testTarget>1.8</testTarget>
<testSource>1.6</testSource>
<testTarget>1.6</testTarget>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
@@ -412,7 +412,8 @@ class BytesExternalizableImpl implements BytesExternalizable {
Bytes bytes = allNodes.activeIdentifierBytes();
//bytes.position(0);
toString(allNodes.activeIdentifierBitSet(), "writing");
if (LOG.isDebugEnabled())
toString(allNodes.activeIdentifierBitSet(), "writing");
// we will store the size of the bitset
destination.writeUnsignedShort((int) bytes.remaining());
@@ -647,7 +648,7 @@ class BytesExternalizableImpl implements BytesExternalizable {
long size = BOOTSTRAP_BYTES.limit();
if (size < source.remaining())
if (size > source.remaining())
return null;
for (int i = 0; i < size; i++) {
@@ -27,7 +27,7 @@ public class NodeDiscoveryBroadcasterTest extends TestCase {
DiscoveryCluster discoveryCluster = new DiscoveryCluster();
ChronicleMap<Integer, CharSequence> map = discoveryCluster.discoverMap(1025, 8086);
ChronicleMap<Integer, CharSequence> map = discoveryCluster.discoverMap(1025, 8087);
Thread.sleep(10000);
}