Skip to content

Commit a066cc5

Browse files
committed
Apply standard formatting
1 parent 98187ff commit a066cc5

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

java/org/apache/catalina/filters/CsrfPreventionFilter.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -579,17 +579,13 @@ private boolean shouldAddNonce(String url) {
579579
}
580580

581581
/**
582-
* Removes zero or more query parameters from a URL.
583-
*
584-
* All instances of the query parameter and any associated values will be
585-
* removed.
586-
*
587-
* @param url The URL whose query parameters should be removed.
582+
* Removes zero or more query parameters from a URL. All instances of the query parameter and any associated
583+
* values will be removed.
588584
*
585+
* @param url The URL whose query parameters should be removed.
589586
* @param parameterName The name of the parameter to remove.
590587
*
591-
* @return The URL without any instances of the query parameter
592-
* <code>parameterName</code> present.
588+
* @return The URL without any instances of the query parameter <code>parameterName</code> present.
593589
*/
594590
public static String removeQueryParameters(String url, String parameterName) {
595591
if (null != parameterName) {
@@ -635,7 +631,7 @@ public static String removeQueryParameters(String url, String parameterName) {
635631
if (-1 < pos) {
636632
paramName = url.substring(start, pos);
637633
} else {
638-
paramName = url.substring(start);
634+
paramName = url.substring(start);
639635
// No value
640636
}
641637
if (paramName.equals(parameterName)) {

0 commit comments

Comments
 (0)