diff --git a/pom.xml b/pom.xml index 3aec863..7687e5c 100644 --- a/pom.xml +++ b/pom.xml @@ -5,28 +5,20 @@ 4.0.0 com.nesscomputing - ness-oss-parent - 29 + ness-root + 1.0-SNAPSHOT - - scm:git:git://github.com/NessComputing/components-ness-core.git - scm:git:git@github.com:NessComputing/components-ness-core.git - http://github.com/NessComputing/components-ness-core - HEAD - - com.nesscomputing.components ness-core ness-core - 1.9.1-SNAPSHOT jar Ness base types component com.google.code.findbugs - jsr305 + annotations @@ -38,7 +30,6 @@ com.google.caliper caliper - 0.5-rc1 test diff --git a/src/main/java/com/nesscomputing/callback/Callbacks.java b/src/main/java/com/nesscomputing/callback/Callbacks.java index 01cfa91..8327853 100644 --- a/src/main/java/com/nesscomputing/callback/Callbacks.java +++ b/src/main/java/com/nesscomputing/callback/Callbacks.java @@ -17,6 +17,8 @@ import java.util.Arrays; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; + /** * Callback helper methods */ @@ -37,6 +39,7 @@ public static void stream(Callback callback, T... items) throws Exception * For every element in the iterable, invoke the given callback. * Stops if {@link CallbackRefusedException} is thrown. */ + @SuppressFBWarnings("BAD_PRACTICE") public static void stream(Callback callback, Iterable iterable) throws Exception { for (T item : iterable) { diff --git a/src/main/java/com/nesscomputing/uuid/NessUUID.java b/src/main/java/com/nesscomputing/uuid/NessUUID.java index 97cf6b0..ea3ac35 100644 --- a/src/main/java/com/nesscomputing/uuid/NessUUID.java +++ b/src/main/java/com/nesscomputing/uuid/NessUUID.java @@ -145,7 +145,7 @@ private static void digits(char[] dest, int offset, int digits, long val) { toUnsignedString(dest, offset, digits, hi | (val & (hi - 1)), 4); } - private final static char[] DIGITS = { + private static final char[] DIGITS = { '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , 'a' , 'b' , 'c' , 'd' , 'e' , 'f' diff --git a/src/test/java/com/nesscomputing/callback/TestBatchingCallback.java b/src/test/java/com/nesscomputing/callback/TestBatchingCallback.java index 0c8b752..a523af0 100644 --- a/src/test/java/com/nesscomputing/callback/TestBatchingCallback.java +++ b/src/test/java/com/nesscomputing/callback/TestBatchingCallback.java @@ -16,6 +16,7 @@ package com.nesscomputing.callback; import static com.google.common.collect.ImmutableList.of; + import static org.junit.Assert.assertEquals; import java.util.Collection; diff --git a/src/test/java/com/nesscomputing/callback/TestExecutorBatchingCallback.java b/src/test/java/com/nesscomputing/callback/TestExecutorBatchingCallback.java index 28a83b7..bc64681 100644 --- a/src/test/java/com/nesscomputing/callback/TestExecutorBatchingCallback.java +++ b/src/test/java/com/nesscomputing/callback/TestExecutorBatchingCallback.java @@ -16,6 +16,7 @@ package com.nesscomputing.callback; import static com.google.common.collect.ImmutableList.of; + import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertSame; import static org.junit.Assert.fail; diff --git a/src/test/java/com/nesscomputing/callback/TestTransformingCallback.java b/src/test/java/com/nesscomputing/callback/TestTransformingCallback.java index a4f4b13..794e173 100644 --- a/src/test/java/com/nesscomputing/callback/TestTransformingCallback.java +++ b/src/test/java/com/nesscomputing/callback/TestTransformingCallback.java @@ -16,6 +16,7 @@ package com.nesscomputing.callback; import static com.nesscomputing.callback.TransformedCallback.transform; + import static org.junit.Assert.assertEquals; import javax.annotation.Nullable; diff --git a/src/test/java/com/nesscomputing/uuid/TestNessUUID.java b/src/test/java/com/nesscomputing/uuid/TestNessUUID.java index 77b5921..292f8f9 100644 --- a/src/test/java/com/nesscomputing/uuid/TestNessUUID.java +++ b/src/test/java/com/nesscomputing/uuid/TestNessUUID.java @@ -254,14 +254,14 @@ public void test_fromString_LString_Exception() { Assert.assertEquals(0xffffffffffffffffL, uuid.getLeastSignificantBits()); try { - uuid = NessUUID.fromString("0-0-0-80000000000000000-0"); + NessUUID.fromString("0-0-0-80000000000000000-0"); Assert.fail("should throw IllegalArgumentException that contains NumberFormatException"); } catch (IllegalArgumentException e) { Assert.assertTrue(e.getCause() != null && e.getCause() instanceof NumberFormatException); } try { - uuid = NessUUID.fromString("0-0-0-0-80000000000000000"); + NessUUID.fromString("0-0-0-0-80000000000000000"); Assert.fail("should throw IllegalArgumentException that contains NumberFormatException"); } catch (IllegalArgumentException e) { Assert.assertTrue(e.getCause() != null && e.getCause() instanceof NumberFormatException);