diff --git a/README.md b/README.md index 17a1e1c..c5fbca6 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Add these lines to your `pom.xml`. com.github.f4b6a3 ulid-creator - 2.0.1 + 2.0.2 ``` See more options in [maven.org](https://search.maven.org/artifact/com.github.f4b6a3/ulid-creator). diff --git a/src/main/java/com/github/f4b6a3/ulid/UlidCreator.java b/src/main/java/com/github/f4b6a3/ulid/UlidCreator.java index c0fced0..7bf9f01 100644 --- a/src/main/java/com/github/f4b6a3/ulid/UlidCreator.java +++ b/src/main/java/com/github/f4b6a3/ulid/UlidCreator.java @@ -69,7 +69,7 @@ public final class UlidCreator { * The random component is generated by a secure random number generator: * {@link java.security.SecureRandom}. * - * @return a ULID + * @return a ULID string */ public static String getUlidString() { return UlidSpecCreatorHolder.INSTANCE.createString(); diff --git a/src/main/java/com/github/f4b6a3/ulid/creator/UlidSpecCreator.java b/src/main/java/com/github/f4b6a3/ulid/creator/UlidSpecCreator.java index 70ff192..06c76e3 100644 --- a/src/main/java/com/github/f4b6a3/ulid/creator/UlidSpecCreator.java +++ b/src/main/java/com/github/f4b6a3/ulid/creator/UlidSpecCreator.java @@ -145,7 +145,7 @@ public class UlidSpecCreator { * The random component is generated by a secure random number generator: * {@link java.security.SecureRandom}. * - * @return a ULID + * @return a ULID string */ public synchronized String createString() { return UlidConverter.toString(create()); diff --git a/src/test/java/com/github/f4b6a3/ulid/creator/UlidSpecCreatorMock.java b/src/test/java/com/github/f4b6a3/ulid/creator/UlidSpecCreatorMock.java index 7d890c2..712f07a 100644 --- a/src/test/java/com/github/f4b6a3/ulid/creator/UlidSpecCreatorMock.java +++ b/src/test/java/com/github/f4b6a3/ulid/creator/UlidSpecCreatorMock.java @@ -15,20 +15,4 @@ class UlidSpecCreatorMock extends UlidSpecCreator { this.previousTimestamp = previousTimestamp; } - - public long getRandom1() { - return this.random1; - } - - public long getRandom2() { - return this.random2; - } - - public long getRandomMax1() { - return this.random1; - } - - public long getRandomMax2() { - return this.random2; - } } \ No newline at end of file diff --git a/src/test/java/com/github/f4b6a3/ulid/creator/UlidSpecCreatorTest.java b/src/test/java/com/github/f4b6a3/ulid/creator/UlidSpecCreatorTest.java index d13c605..e1ecec4 100644 --- a/src/test/java/com/github/f4b6a3/ulid/creator/UlidSpecCreatorTest.java +++ b/src/test/java/com/github/f4b6a3/ulid/creator/UlidSpecCreatorTest.java @@ -22,7 +22,7 @@ public class UlidSpecCreatorTest { private static final Random RANDOM = new Random(); - protected static final String DUPLICATE_UUID_MSG = "A duplicate ULID was created"; + protected static final String DUPLICATE_UUID_MSG = "A duplicate ULID was created."; protected static final int THREAD_TOTAL = availableProcessors();