A time out occured while publishing version 2.0.1 to maven central.

The version 2.0.2 will be created to try again.
This commit is contained in:
Fabio Lima 2020-07-06 05:28:41 -03:00
parent 3962862107
commit 24a2d4ce13
5 changed files with 4 additions and 20 deletions

View File

@ -28,7 +28,7 @@ Add these lines to your `pom.xml`.
<dependency> <dependency>
<groupId>com.github.f4b6a3</groupId> <groupId>com.github.f4b6a3</groupId>
<artifactId>ulid-creator</artifactId> <artifactId>ulid-creator</artifactId>
<version>2.0.1</version> <version>2.0.2</version>
</dependency> </dependency>
``` ```
See more options in [maven.org](https://search.maven.org/artifact/com.github.f4b6a3/ulid-creator). See more options in [maven.org](https://search.maven.org/artifact/com.github.f4b6a3/ulid-creator).

View File

@ -69,7 +69,7 @@ public final class UlidCreator {
* The random component is generated by a secure random number generator: * The random component is generated by a secure random number generator:
* {@link java.security.SecureRandom}. * {@link java.security.SecureRandom}.
* *
* @return a ULID * @return a ULID string
*/ */
public static String getUlidString() { public static String getUlidString() {
return UlidSpecCreatorHolder.INSTANCE.createString(); return UlidSpecCreatorHolder.INSTANCE.createString();

View File

@ -145,7 +145,7 @@ public class UlidSpecCreator {
* The random component is generated by a secure random number generator: * The random component is generated by a secure random number generator:
* {@link java.security.SecureRandom}. * {@link java.security.SecureRandom}.
* *
* @return a ULID * @return a ULID string
*/ */
public synchronized String createString() { public synchronized String createString() {
return UlidConverter.toString(create()); return UlidConverter.toString(create());

View File

@ -15,20 +15,4 @@ class UlidSpecCreatorMock extends UlidSpecCreator {
this.previousTimestamp = previousTimestamp; 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;
}
} }

View File

@ -22,7 +22,7 @@ public class UlidSpecCreatorTest {
private static final Random RANDOM = new Random(); 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(); protected static final int THREAD_TOTAL = availableProcessors();