diff --git a/src/main/java/net/thauvin/erik/semver/Constants.java b/src/main/java/net/thauvin/erik/semver/Constants.java index 140f405..ddb3adf 100644 --- a/src/main/java/net/thauvin/erik/semver/Constants.java +++ b/src/main/java/net/thauvin/erik/semver/Constants.java @@ -139,11 +139,8 @@ public final class Constants { /** * Disables the default constructor. - * - * @throws UnsupportedOperationException if the constructor is called. */ - private Constants() - throws UnsupportedOperationException { + private Constants() { throw new UnsupportedOperationException("Illegal constructor call."); } }