You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
finalList<String> valuesFromRequest = request.formValuesForKey( name );
51
+
52
+
if( !valuesFromRequest.isEmpty() ) {
53
+
54
+
// If multiple form values are present for the same field name, the potential for an error condition is probably high enough to just go ahead and fail.
55
+
if( valuesFromRequest.size() > 1 ) {
56
+
thrownewIllegalStateException( "The request contains %s form values named '%s'. I can only handle one at a time. The values you sent me are (%s).".formatted( valuesFromRequest.size(), name, valuesFromRequest ) );
0 commit comments