Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WICKET-7147: reversed order of parameters to null check methods #1097

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class OriginResourceIsolationPolicy implements IResourceIsolationPolicy
*/
public OriginResourceIsolationPolicy addAcceptedOrigin(String acceptedOrigin)
{
Checks.notNull("acceptedOrigin", acceptedOrigin);
Checks.notNull(acceptedOrigin, "acceptedOrigin");

// strip any leading dot characters
final int len = acceptedOrigin.length();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2511,7 +2511,7 @@ public void component(final FormComponent<?> formComponent, final IVisit<Void> v
public String getContentTypeFromResponseHeader()
{
String contentType = getLastResponse().getContentType();
assertNotNull("No Content-Type header found", contentType);
assertNotNull(contentType, "No Content-Type header found");
return contentType;
}

Expand All @@ -2523,7 +2523,7 @@ public String getContentTypeFromResponseHeader()
public int getContentLengthFromResponseHeader()
{
String contentLength = getLastResponse().getHeader("Content-Length");
assertNotNull("No Content-Length header found", contentLength);
assertNotNull(contentLength, "No Content-Length header found");
return Integer.parseInt(contentLength);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ void executeAjaxEvent_ajaxFormSubmitLink()
// executeAjaxEvent weren't submitting the form the name would have been
// reset to null, because the form would have been updated but there
// wouldn't be any data to update it with.
assertNotNull("executeAjaxEvent() did not properly submit the form", pojo.getName());
assertNotNull(pojo.getName(), "executeAjaxEvent() did not properly submit the form");
assertEquals("Mock name", pojo.getName());
}

Expand Down