diff options
author | Joakim Erdfelt | 2015-11-20 16:54:14 +0000 |
---|---|---|
committer | Joakim Erdfelt | 2015-11-20 16:54:14 +0000 |
commit | b92769c5e940cd21c04fe6dd8fb6e62afd826642 (patch) | |
tree | 30631ec18b7c88fc27e37398ff8950bd6f2b8061 | |
parent | 4bfd20cdf44ea3db4cfd381472700602bc5b8b50 (diff) | |
download | org.eclipse.jetty.project-b92769c5e940cd21c04fe6dd8fb6e62afd826642.tar.gz org.eclipse.jetty.project-b92769c5e940cd21c04fe6dd8fb6e62afd826642.tar.xz org.eclipse.jetty.project-b92769c5e940cd21c04fe6dd8fb6e62afd826642.zip |
482172 - Report form key size count in UrlEncoded exceptions
+ Fixing ISE message format/syntax
-rw-r--r-- | jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java b/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java index 252b4a6743..5f63f65adf 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/UrlEncoded.java @@ -226,7 +226,7 @@ public class UrlEncoded extends MultiMap implements Cloneable key = null; value=null; if (maxKeys>0 && map.size()>maxKeys) - throw new IllegalStateException(String.format("Form too many keys [%d > %d] ",map.size(),maxKeys)); + throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys)); break; case '=': if (key!=null) @@ -414,7 +414,7 @@ public class UrlEncoded extends MultiMap implements Cloneable key = null; value=null; if (maxKeys>0 && map.size()>maxKeys) - throw new IllegalStateException(String.format("Form too many keys [%d > %d] ",map.size(),maxKeys)); + throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys)); break; case '=': @@ -515,7 +515,7 @@ public class UrlEncoded extends MultiMap implements Cloneable key = null; value=null; if (maxKeys>0 && map.size()>maxKeys) - throw new IllegalStateException(String.format("Form too many keys [%d > %d] ",map.size(),maxKeys)); + throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys)); break; case '=': @@ -656,7 +656,7 @@ public class UrlEncoded extends MultiMap implements Cloneable key = null; value=null; if (maxKeys>0 && map.size()>maxKeys) - throw new IllegalStateException(String.format("Form too many keys [%d > %d] ",map.size(),maxKeys)); + throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys)); break; case '=': if (key!=null) |