From 6641297be81e832df2415dcee5a8989d2e022388 Mon Sep 17 00:00:00 2001 From: Fabio Lima Date: Sun, 30 Apr 2023 03:39:38 -0300 Subject: [PATCH] regular maintenance --- CHANGELOG.md | 1 + README.md | 4 ++-- src/main/java/com/github/f4b6a3/ulid/Ulid.java | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac74771..b87bd5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Nothing to be released. ## [5.2.0] - 2023-04-30 Add Hash ULID generator methods. #25 + Add a MIN and MAX constants and methods. #26 ## [5.1.0] - 2022-10-22 diff --git a/README.md b/README.md index 0f72c57..967ea53 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ The jar file can be downloaded directly from [maven.org](https://repo1.maven.org Read the [Javadocs](https://javadoc.io/doc/com.github.f4b6a3/ulid-creator). -How to Use +Usage ------------------------------------------------------ Create a ULID: @@ -34,7 +34,7 @@ Create a Monotonic ULID: Ulid ulid = UlidCreator.getMonotonicUlid(); ``` -### Maven dependency +### Dependency Add these lines to your `pom.xml`. diff --git a/src/main/java/com/github/f4b6a3/ulid/Ulid.java b/src/main/java/com/github/f4b6a3/ulid/Ulid.java index 740b6d3..2377ffd 100644 --- a/src/main/java/com/github/f4b6a3/ulid/Ulid.java +++ b/src/main/java/com/github/f4b6a3/ulid/Ulid.java @@ -89,9 +89,9 @@ public final class Ulid implements Serializable, Comparable { */ public static final Ulid MAX = new Ulid(0xffffffffffffffffL, 0xffffffffffffffffL); - protected static final byte[] ALPHABET_VALUES = new byte[256]; - private static final char[] ALPHABET_UPPERCASE = "0123456789ABCDEFGHJKMNPQRSTVWXYZ".toCharArray(); - private static final char[] ALPHABET_LOWERCASE = "0123456789abcdefghjkmnpqrstvwxyz".toCharArray(); + static final byte[] ALPHABET_VALUES = new byte[256]; + static final char[] ALPHABET_UPPERCASE = "0123456789ABCDEFGHJKMNPQRSTVWXYZ".toCharArray(); + static final char[] ALPHABET_LOWERCASE = "0123456789abcdefghjkmnpqrstvwxyz".toCharArray(); static {