You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2025/09/25 12:54:08 UTC
(commons-numbers) 16/16: Use final for private class
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit d48a3c68df7b667b8742221064732e4b01884bd2
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Thu Sep 25 13:17:21 2025 +0100
Use final for private class
Avoids PMD error where constructor calls an overrideable method.
---
.../src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java b/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java
index 1d62219d..66f6a80a 100644
--- a/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java
+++ b/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java
@@ -710,7 +710,7 @@ public final class Quaternion implements Serializable {
}
/** See {@link #parse(String)}. */
- private static class QuaternionParsingException extends NumberFormatException {
+ private static final class QuaternionParsingException extends NumberFormatException {
/** Serializable version identifier. */
private static final long serialVersionUID = 20181128L;