-
Notifications
You must be signed in to change notification settings - Fork 19
ph annotations
Philip Helger edited this page Apr 8, 2026
·
1 revision
Custom Java annotations used throughout the ph-* projects for nullness, thread safety, code style and documentation purposes.
Key annotations include:
- Thread safety:
@ThreadSafe,@NotThreadSafe,@Immutable,@GuardedBy - Code style:
@PresentForCodeCoverage,@VisibleForTesting,@UsedViaReflection,@OverrideOnDemand - Return types:
@ReturnsMutableCopy,@ReturnsMutableObject,@ReturnsImmutableObject - Constraints:
@Nonempty,@Nonnegative - Lifecycle:
@Since,@Until,@WorkInProgress,@DevelopersNote
Add the following to your pom.xml to use this artifact:
<dependency>
<groupId>com.helger.commons</groupId>
<artifactId>ph-annotations</artifactId>
<version>x.y.z</version>
</dependency>On Twitter: Follow @philiphelger
Donation link: https://paypal.me/PhilipHelger
It is appreciated if you star the GitHub project if you like it.
-
Home
- ph-annotations
- ph-base
- ph-bc
- ph-cache
- ph-cli
- ph-collection
- ph-commons
- ph-config
- ph-config-json
- ph-csv
- ph-dao
- ph-datetime
- ph-diagnostics
- ph-graph
- ph-http
- ph-io
- ph-jaxb
- ph-jaxb-adapter
- ph-json
- ph-matrix
- ph-mime
- ph-scopes
- ph-security
- ph-settings
- ph-statistics
- ph-telemetry
- ph-text
- ph-tree
- ph-typeconvert
- ph-unittest-support
- ph-unittest-support-ext
- ph-url
- ph-wsclient
- ph-xml
- News and noteworthy
- License
- History