1
0
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:
mcilwain
2016-04-19 09:21:53 -07:00
committed by Justine Tunney
parent 706f3b44ed
commit 0f4a1035b2
8 changed files with 85 additions and 103 deletions

View File

@@ -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);
}