You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/09/12 14:21:47 UTC
(commons-lang) 10/23: Remove redundant syntax
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 200f02bec10440f8170a4cf275643f8a4c809d8c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Sep 12 10:15:17 2024 -0400
Remove redundant syntax
---
src/main/java/org/apache/commons/lang3/math/Fraction.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/math/Fraction.java b/src/main/java/org/apache/commons/lang3/math/Fraction.java
index 3d67ca754..c921f8dd6 100644
--- a/src/main/java/org/apache/commons/lang3/math/Fraction.java
+++ b/src/main/java/org/apache/commons/lang3/math/Fraction.java
@@ -809,11 +809,11 @@ public final class Fraction extends Number implements Comparable<Fraction> {
}
if (power < 0) {
if (power == Integer.MIN_VALUE) { // MIN_VALUE can't be negated.
- return this.invert().pow(2).pow(-(power / 2));
+ return invert().pow(2).pow(-(power / 2));
}
- return this.invert().pow(-power);
+ return invert().pow(-power);
}
- final Fraction f = this.multiplyBy(this);
+ final Fraction f = multiplyBy(this);
if (power % 2 == 0) { // if even...
return f.pow(power / 2);
}