From e35276ddc8150c071845d99d655e839248a130b6 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 1 Apr 2019 15:22:08 -0700 Subject: [PATCH] Removed unnecessary throw in disabled constructor. --- src/main/java/net/thauvin/erik/semver/Constants.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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."); } }