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
The following commit(s) were added to refs/heads/master by this push:
new 9c714ad8 Add since tags
9c714ad8 is described below
commit 9c714ad8703cc1c7953751408e694ce3b39d94f0
Author: aherbert <[email protected]>
AuthorDate: Wed Oct 4 17:24:49 2023 +0100
Add since tags
---
.../src/main/java/org/apache/commons/numbers/core/Addition.java | 1 +
.../src/main/java/org/apache/commons/numbers/core/Multiplication.java | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git
a/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Addition.java
b/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Addition.java
index bd24937e..44119a4b 100644
---
a/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Addition.java
+++
b/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Addition.java
@@ -56,6 +56,7 @@ public interface Addition<T> {
*
* @return {@code true} if {@code this} is a neutral element of addition.
* @see #zero()
+ * @since 1.2
*/
default boolean isZero() {
return this.equals(zero());
diff --git
a/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Multiplication.java
b/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Multiplication.java
index 6165f0cc..33228923 100644
---
a/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Multiplication.java
+++
b/commons-numbers-core/src/main/java/org/apache/commons/numbers/core/Multiplication.java
@@ -56,8 +56,9 @@ public interface Multiplication<T> {
*
* @return {@code true} if {@code this} is a neutral element of
multiplication.
* @see #one()
+ * @since 1.2
*/
default boolean isOne() {
return this.equals(one());
- };
+ }
}