Skip to content

Commit

Permalink
Vector and Matrix templates of(..) method: unitString length 0 is ok
Browse files Browse the repository at this point in the history
  • Loading branch information
averbraeck committed Jul 24, 2023
1 parent 15b0860 commit 980b695
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/main/resources/value/vdouble/matrix/SIMATRIX.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ public static SIMatrix of(final double[][] values, final String unitString, fina
{
Throw.whenNull(values, "Error parsing SIMatrix: value is null");
Throw.whenNull(unitString, "Error parsing SIMatrix: unitString is null");
Throw.when(unitString.length() == 0, IllegalArgumentException.class, "Error parsing SIMatrix: empty unitString");
Throw.whenNull(storageType, "Error parsing SIMatrix: storageType is null");
try
{
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/value/vdouble/vector/SIVECTOR.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ public static SIVector of(final double[] value, final String unitString, final S
{
Throw.whenNull(value, "Error parsing SIVector: value is null");
Throw.whenNull(unitString, "Error parsing SIVector: unitString is null");
Throw.when(unitString.length() == 0, IllegalArgumentException.class, "Error parsing SIVector: empty unitString");
Throw.whenNull(storageType, "Error parsing SIVector: storageType is null");
try
{
Expand Down Expand Up @@ -233,7 +232,6 @@ public static SIVector of(final List<Double> valueList, final String unitString,
{
Throw.whenNull(valueList, "Error parsing SIVector: valueList is null");
Throw.whenNull(unitString, "Error parsing SIVector: unitString is null");
Throw.when(unitString.length() == 0, IllegalArgumentException.class, "Error parsing SIVector: empty unitString");
Throw.whenNull(storageType, "Error parsing SIVector: storageType is null");
try
{
Expand Down Expand Up @@ -265,7 +263,6 @@ public static SIVector of(final Map<Integer, Double> valueMap, final String unit
{
Throw.whenNull(valueMap, "Error parsing SIVector: valueMap is null");
Throw.whenNull(unitString, "Error parsing SIVector: unitString is null");
Throw.when(unitString.length() == 0, IllegalArgumentException.class, "Error parsing SIVector: empty unitString");
Throw.whenNull(storageType, "Error parsing SIVector: storageType is null");
try
{
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/value/vfloat/matrix/FLOATSIMATRIX.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ public static FloatSIMatrix of(final float[][] values, final String unitString,
{
Throw.whenNull(values, "Error parsing FloatSIMatrix: value is null");
Throw.whenNull(unitString, "Error parsing FloatSIMatrix: unitString is null");
Throw.when(unitString.length() == 0, IllegalArgumentException.class, "Error parsing FloatSIMatrix: empty unitString");
Throw.whenNull(storageType, "Error parsing FloatSIMatrix: storageType is null");
try
{
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/value/vfloat/vector/FLOATSIVECTOR.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ public static FloatSIVector of(final float[] value, final String unitString, fin
{
Throw.whenNull(value, "Error parsing FloatSIVector: value is null");
Throw.whenNull(unitString, "Error parsing FloatSIVector: unitString is null");
Throw.when(unitString.length() == 0, IllegalArgumentException.class, "Error parsing FloatSIVector: empty unitString");
Throw.whenNull(storageType, "Error parsing FloatSIVector: storageType is null");
try
{
Expand Down Expand Up @@ -234,7 +233,6 @@ public static FloatSIVector of(final List<Float> valueList, final String unitStr
{
Throw.whenNull(valueList, "Error parsing FloatSIVector: valueList is null");
Throw.whenNull(unitString, "Error parsing FloatSIVector: unitString is null");
Throw.when(unitString.length() == 0, IllegalArgumentException.class, "Error parsing FloatSIVector: empty unitString");
Throw.whenNull(storageType, "Error parsing FloatSIVector: storageType is null");
try
{
Expand Down Expand Up @@ -266,7 +264,6 @@ public static FloatSIVector of(final Map<Integer, Float> valueMap, final String
{
Throw.whenNull(valueMap, "Error parsing FloatSIVector: valueMap is null");
Throw.whenNull(unitString, "Error parsing FloatSIVector: unitString is null");
Throw.when(unitString.length() == 0, IllegalArgumentException.class, "Error parsing FloatSIVector: empty unitString");
Throw.whenNull(storageType, "Error parsing FloatSIVector: storageType is null");
try
{
Expand Down

0 comments on commit 980b695

Please sign in to comment.