(1);
image.add(polygon);
diff --git a/framework/nb-configuration.xml b/framework/nb-configuration.xml
index ae35717d..2db68b70 100644
--- a/framework/nb-configuration.xml
+++ b/framework/nb-configuration.xml
@@ -14,10 +14,10 @@ That way multiple projects can share the same settings (useful for formatting ru
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
project
- 2
- 2
- 2
- false
+ 4
+ 4
+ 4
+ true
100
words
0
@@ -29,33 +29,28 @@ Any value defined here will override the pom.xml file value but is only applicab
WRAP_IF_LONG
WRAP_IF_LONG
WRAP_IF_LONG
- 2
- WRAP_IF_LONG
true
+ WRAP_IF_LONG
WRAP_IF_LONG
- true
true
+ true
NEW_LINE
- WRAP_IF_LONG
WRAP_IF_LONG
+ WRAP_IF_LONG
WRAP_IF_LONG
WRAP_IF_LONG
WRAP_IF_LONG
WRAP_IF_LONG
WRAP_IF_LONG
WRAP_IF_LONG
- 2
- true
- 100
WRAP_IF_LONG
true
LEAVE_ALONE
- 2
- 2
- false
+ 4
NEW_LINE
NEW_LINE
LEAVE_ALONE
WRAP_IF_LONG
+ 2
diff --git a/framework/src/java/main/org/uncommons/util/id/CompositeIDSource.java b/framework/src/java/main/org/uncommons/util/id/CompositeIDSource.java
index 91635a90..bdad875c 100644
--- a/framework/src/java/main/org/uncommons/util/id/CompositeIDSource.java
+++ b/framework/src/java/main/org/uncommons/util/id/CompositeIDSource.java
@@ -19,13 +19,12 @@
import java.util.concurrent.locks.ReentrantLock;
/**
- * Thread-safe source for partitioned unique IDs. A single instance of this class
- * represents a single 'partition' in the space of possible IDs. By creating
- * multiple instances with different discriminators, multiple entities may generate
- * globally unique IDs independently.
- * Any given instance of this class may generate a maximum of 2^31 unique values
- * (the most significant 4 bytes are fixed and the least significant 4 bytes vary
- * in sequence).
+ * Thread-safe source for partitioned unique IDs. A single instance of this class represents a
+ * single 'partition' in the space of possible IDs. By creating multiple instances with different
+ * discriminators, multiple entities may generate globally unique IDs independently.
Any given
+ * instance of this class may generate a maximum of 2^31 unique values (the most significant 4 bytes
+ * are fixed and the least significant 4 bytes vary in sequence).
+ *
* @author Daniel Dyer
*/
public final class CompositeIDSource implements IDSource
@@ -45,9 +44,6 @@ public CompositeIDSource(int topPart)
}
- /**
- * {@inheritDoc}
- */
public Long nextID()
{
lock.lock();
diff --git a/framework/src/java/main/org/uncommons/util/id/IntSequenceIDSource.java b/framework/src/java/main/org/uncommons/util/id/IntSequenceIDSource.java
index bf6c3cb0..59836e36 100644
--- a/framework/src/java/main/org/uncommons/util/id/IntSequenceIDSource.java
+++ b/framework/src/java/main/org/uncommons/util/id/IntSequenceIDSource.java
@@ -19,15 +19,15 @@
import java.util.concurrent.locks.ReentrantLock;
/**
- * Thread-safe source for unique IDs. This particular implementation restricts
- * values to those positive integer values that can be represented by the int data type.
- * Provides sequenced 32-bit IDs.
+ * Thread-safe source for unique IDs. This particular implementation restricts values to those
+ * positive integer values that can be represented by the int data type. Provides sequenced 32-bit
+ * IDs.
+ *
* @author Daniel Dyer
*/
public final class IntSequenceIDSource implements IDSource
{
private static final long SECONDS_IN_HOUR = 3600L;
-
private final Lock lock = new ReentrantLock();
private final long startTime;
private int lastID = -1;
@@ -57,9 +57,6 @@ public IntSequenceIDSource()
}
- /**
- * {@inheritDoc}
- */
public Integer nextID()
{
lock.lock();
@@ -68,7 +65,8 @@ public Integer nextID()
if (lastID == Integer.MAX_VALUE)
{
long hours = (System.currentTimeMillis() - startTime) / SECONDS_IN_HOUR;
- throw new IDSourceExhaustedException("32-bit ID source exhausted after " + hours + " hours.");
+ throw new IDSourceExhaustedException("32-bit ID source exhausted after " + hours
+ + " hours.");
}
++lastID;
return lastID;
diff --git a/framework/src/java/main/org/uncommons/util/id/LongSequenceIDSource.java b/framework/src/java/main/org/uncommons/util/id/LongSequenceIDSource.java
index 3ea85a99..22be730a 100644
--- a/framework/src/java/main/org/uncommons/util/id/LongSequenceIDSource.java
+++ b/framework/src/java/main/org/uncommons/util/id/LongSequenceIDSource.java
@@ -19,15 +19,15 @@
import java.util.concurrent.locks.ReentrantLock;
/**
- * Thread-safe source for unique IDs. This particular implementation restricts
- * values to those positive integer values that can be represented by the long data type.
- * Provides sequenced 64-bit IDs.
+ * Thread-safe source for unique IDs. This particular implementation restricts values to those
+ * positive integer values that can be represented by the long data type. Provides sequenced 64-bit
+ * IDs.
+ *