You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2019/11/29 12:02:46 UTC
[commons-numbers] 03/03: Alias should call "primary" method.
This is an automated email from the ASF dual-hosted git repository.
erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit 5791e5b0ff2c2056b22481ef513ddef86de6ddad
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
AuthorDate: Fri Nov 29 13:01:38 2019 +0100
Alias should call "primary" method.
Reported by "sonarcloud.io".
---
.../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 5087881..1bfbc46 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
@@ -598,7 +598,7 @@ public final class Quaternion implements Serializable {
* @see #getW()
*/
public double getScalarPart() {
- return w;
+ return getW();
}
/**