[java-identity-provider] 02/02: Fix typos in error messages
Rod Widdowson
rdw at steadingsoftware.com
Tue Aug 18 15:33:38 UTC 2020
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=beeb39635c8241e17789f19fdf3124b68ae68f3b
commit beeb39635c8241e17789f19fdf3124b68ae68f3b
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Aug 18 16:20:23 2020 +0100
Fix typos in error messages
---
.../src/main/java/net/shibboleth/idp/plugin/PluginVersion.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/idp-admin-api/src/main/java/net/shibboleth/idp/plugin/PluginVersion.java b/idp-admin-api/src/main/java/net/shibboleth/idp/plugin/PluginVersion.java
index 1430b60ba..4edcfa07e 100644
--- a/idp-admin-api/src/main/java/net/shibboleth/idp/plugin/PluginVersion.java
+++ b/idp-admin-api/src/main/java/net/shibboleth/idp/plugin/PluginVersion.java
@@ -73,15 +73,15 @@ public final class PluginVersion implements Comparable<PluginVersion>{
public PluginVersion(final int maj, final int min, final int pat) throws NumberFormatException {
major = maj;
if (maj < 0 || maj >= MAX_VNO) {
- throw new NumberFormatException("Improbably version number : " + maj);
+ throw new NumberFormatException("Improbable major version number : " + maj);
}
minor = min;
if (min < 0 || min >= MAX_VNO) {
- throw new NumberFormatException("Improbably version number : " + min);
+ throw new NumberFormatException("Improbable minor version number : " + min);
}
patch = pat;
if (pat < 0 || pat >= MAX_VNO) {
- throw new NumberFormatException("Improbably version number : " + pat);
+ throw new NumberFormatException("Improbable patch version number : " + pat);
}
}
@@ -123,7 +123,7 @@ public final class PluginVersion implements Comparable<PluginVersion>{
private int parseValue(final String valueAsString) throws NumberFormatException{
final int value = Integer.parseInt(valueAsString);
if (value < 0 || value >= MAX_VNO) {
- throw new NumberFormatException("Improbably version number : " + value);
+ throw new NumberFormatException("Improbable version number : " + value);
}
return value;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list