Skip to content

Commit 0d9427b

Browse files
committed
feat: add JSpecify @NullMarked annotations for null-safety
1 parent 586f570 commit 0d9427b

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

‎friendly-id/pom.xml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
<description>Core library for converting UUIDs to URL-friendly Base62-encoded IDs</description>
1717

1818
<dependencies>
19+
<dependency>
20+
<groupId>org.jspecify</groupId>
21+
<artifactId>jspecify</artifactId>
22+
<version>1.0.0</version>
23+
</dependency>
1924
<dependency>
2025
<groupId>org.junit.jupiter</groupId>
2126
<artifactId>junit-jupiter</artifactId>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* FriendlyId - URL-friendly Base62 encoding of UUIDs.
3+
* <p>
4+
* This package is null-marked, meaning all parameters and return values
5+
* are non-null by default unless explicitly annotated with {@link org.jspecify.annotations.Nullable}.
6+
*/
7+
@NullMarked
8+
package com.devskiller.friendly_id;
9+
10+
import org.jspecify.annotations.NullMarked;

‎friendly-id/src/main/java/com/devskiller/friendly_id/type/package-info.java‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44
* This package provides type-safe, memory-efficient value objects for working with FriendlyIds
55
* in domain models and persistence layers.
66
* </p>
7+
* <p>
8+
* This package is null-marked, meaning all parameters and return values
9+
* are non-null by default unless explicitly annotated with {@link org.jspecify.annotations.Nullable}.
10+
* </p>
711
*
812
* @see com.devskiller.friendly_id.type.FriendlyId
913
* @since 1.1.1
1014
*/
15+
@NullMarked
1116
package com.devskiller.friendly_id.type;
17+
18+
import org.jspecify.annotations.NullMarked;

0 commit comments

Comments
 (0)