You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2023/03/09 13:15:15 UTC

[causeway] branch master updated: CAUSEWAY-3304: [Commons] ex. message typos

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git


The following commit(s) were added to refs/heads/master by this push:
     new f986303373 CAUSEWAY-3304: [Commons] ex. message typos
f986303373 is described below

commit f98630337389a4ba2031e01db1c04fd93fc449c4
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Mar 9 14:15:10 2023 +0100

    CAUSEWAY-3304: [Commons] ex. message typos
---
 .../src/main/java/org/apache/causeway/commons/collections/Can.java    | 4 ++--
 .../java/org/apache/causeway/commons/collections/Can_Multiple.java    | 4 ++--
 .../java/org/apache/causeway/commons/collections/Can_Singleton.java   | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/commons/src/main/java/org/apache/causeway/commons/collections/Can.java b/commons/src/main/java/org/apache/causeway/commons/collections/Can.java
index dcacf60eed..7e7a21fc82 100644
--- a/commons/src/main/java/org/apache/causeway/commons/collections/Can.java
+++ b/commons/src/main/java/org/apache/causeway/commons/collections/Can.java
@@ -548,7 +548,7 @@ extends ImmutableCollection<T>, Comparable<Can<T>>, Serializable {
 
     /**
      * Returns consecutive {@link #subCan(int, int) subCan},
-     * each of the same maxInnerSize, while the final {@link Can} may be smaller.
+     * each of the same maxInnerSize, while the final sub-{@link Can} may be smaller.
      * <p>
      * For example,
      * partitioning a {@link Can} containing {@code [a, b, c, d, e]} with a partition
@@ -565,7 +565,7 @@ extends ImmutableCollection<T>, Comparable<Can<T>>, Serializable {
 
     /**
      * Tries to split this {@link Can} into outerSizeYield consecutive {@link #subCan(int, int) subCan},
-     * each of the same calculated max-inner-size, while the final {@link Can} may be smaller.
+     * each of the same calculated max-inner-size, while the final sub-{@link Can} may be smaller.
      * <p>
      * An outer cardinality of outerSizeYield is either exactly met or under-represented,
      * based on how many elements are actually available.
diff --git a/commons/src/main/java/org/apache/causeway/commons/collections/Can_Multiple.java b/commons/src/main/java/org/apache/causeway/commons/collections/Can_Multiple.java
index e4d4a78774..37b553d1f9 100644
--- a/commons/src/main/java/org/apache/causeway/commons/collections/Can_Multiple.java
+++ b/commons/src/main/java/org/apache/causeway/commons/collections/Can_Multiple.java
@@ -313,7 +313,7 @@ final class Can_Multiple<T> implements Can<T> {
     @Override
     public Can<Can<T>> partitionInnerBound(final int maxInnerSize) {
         if(maxInnerSize<1) {
-            throw _Exceptions.illegalArgument("maxInnerSize %d must be grater or equal to 1", maxInnerSize);
+            throw _Exceptions.illegalArgument("maxInnerSize %d must be greater or equal to 1", maxInnerSize);
         }
         final int n = size();
         final int subCanCount = (n - 1)/maxInnerSize + 1;
@@ -327,7 +327,7 @@ final class Can_Multiple<T> implements Can<T> {
     @Override
     public Can<Can<T>> partitionOuterBound(final int outerSizeYield) {
         if(outerSizeYield<1) {
-            throw _Exceptions.illegalArgument("outerSizeYield %d must be grater or equal to 1", outerSizeYield);
+            throw _Exceptions.illegalArgument("outerSizeYield %d must be greater or equal to 1", outerSizeYield);
         }
         final int n = size();
         final int maxInnerSize = (n - 1)/outerSizeYield + 1;
diff --git a/commons/src/main/java/org/apache/causeway/commons/collections/Can_Singleton.java b/commons/src/main/java/org/apache/causeway/commons/collections/Can_Singleton.java
index 8e10a40415..bbe732cf8d 100644
--- a/commons/src/main/java/org/apache/causeway/commons/collections/Can_Singleton.java
+++ b/commons/src/main/java/org/apache/causeway/commons/collections/Can_Singleton.java
@@ -290,7 +290,7 @@ final class Can_Singleton<T> implements Can<T> {
     @Override
     public Can<Can<T>> partitionInnerBound(final int maxInnerSize) {
         if(maxInnerSize<1) {
-            throw _Exceptions.illegalArgument("maxInnerSize %d must be grater or equal to 1", maxInnerSize);
+            throw _Exceptions.illegalArgument("maxInnerSize %d must be greater or equal to 1", maxInnerSize);
         }
         // a singular always fits into a single slot
         return Can.of(this);
@@ -299,7 +299,7 @@ final class Can_Singleton<T> implements Can<T> {
     @Override
     public Can<Can<T>> partitionOuterBound(final int outerSizeYield) {
         if(outerSizeYield<1) {
-            throw _Exceptions.illegalArgument("outerSizeYield %d must be grater or equal to 1", outerSizeYield);
+            throw _Exceptions.illegalArgument("outerSizeYield %d must be greater or equal to 1", outerSizeYield);
         }
         // a singular always fits into a single slot
         return Can.of(this);