Skip to content
Olafcio1Public

About

Common utilities for Java 4+

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Commons

Commons is a set of commonly needed utilities, including:

  • nullability annotations,
  • @ApiStatus,
  • ServiceLoader,
  • Logging API,

supporting Java versions down to 1.4.

Annotations

They exist on all JARs for Java >=1.5.
Includes:

  • API:
    • @ApiStatus
  • Meta:
    • @Required
    • @Transitive
  • Nullability:
    • @NotNull
    • @Nullable
    • @NullMarked
    • @NullUnmarked
    • @UnknownNullability

Logging

Exists on all JARs.

  • Java 4: custom implementation
  • Java 5: reload4j implementation
  • Java 6: slf4j implementation
  • Java 7: slf4j implementation
  • Java 8: slf4j2 implementation

Shell

Just a utility class for coloring. No changes across Java versions.

Util

  • Stacktraces: utility class for retrieving caller info
  • Strings: utility class containing substitutes for String.format
  • ServiceLoader: class for loading services (minor differences between Java versions)

About

Common utilities for Java 4+

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages