mirror of
https://github.com/google/nomulus
synced 2026-02-07 13:31:12 +00:00
Refactor metrics servlet to be a Daggerized action
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=120235694
This commit is contained in:
@@ -29,7 +29,10 @@ public final class HttpServletUtils {
|
||||
/**
|
||||
* Returns the value of the given request's first {@code name} parameter, or throws
|
||||
* {@code IllegalArgumentException} if the parameter is not present.
|
||||
*
|
||||
* @deprecated in favor of <code>RequestParameters.extractRequiredParameter</code>
|
||||
*/
|
||||
@Deprecated
|
||||
public static String getRequiredParameterValue(HttpServletRequest req, String name) {
|
||||
return checkArgumentNotNull(req.getParameter(name), "Missing required parameter: %s", name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user