Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,20 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.nesscomputing</groupId>
<artifactId>ness-oss-parent</artifactId>
<version>29</version>
<artifactId>ness-root</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<scm>
<connection>scm:git:git://github.com/NessComputing/components-ness-core.git</connection>
<developerConnection>scm:git:git@github.com:NessComputing/components-ness-core.git</developerConnection>
<url>http://github.com/NessComputing/components-ness-core</url>
<tag>HEAD</tag>
</scm>

<groupId>com.nesscomputing.components</groupId>
<artifactId>ness-core</artifactId>
<name>ness-core</name>
<version>1.9.1-SNAPSHOT</version>
<packaging>jar</packaging>
<description>Ness base types component</description>

<dependencies>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<artifactId>annotations</artifactId>
</dependency>

<dependency>
Expand All @@ -38,7 +30,6 @@
<dependency>
<groupId>com.google.caliper</groupId>
<artifactId>caliper</artifactId>
<version>0.5-rc1</version>
<scope>test</scope>
</dependency>

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/nesscomputing/callback/Callbacks.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

import java.util.Arrays;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

/**
* Callback helper methods
*/
Expand All @@ -37,6 +39,7 @@ public static <T> void stream(Callback<T> 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 <T> void stream(Callback<T> callback, Iterable<T> iterable) throws Exception
{
for (T item : iterable) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/nesscomputing/uuid/NessUUID.java
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/nesscomputing/uuid/TestNessUUID.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down