PutHttpPassword: Replace comment with @UsedAt annotation

Annotate the apply() method which is used by the serviceuser
plugin. Note that the comment incorrectly states that it's
used by the admin-console plugin.

Change-Id: I55304efa41665c534c484fa1aede362b8b51674d
This commit is contained in:
David Pursehouse
2019-05-30 12:22:10 +09:00
parent d9358d8837
commit 2b8cd92f0e

View File

@@ -107,8 +107,7 @@ public class PutHttpPassword implements RestModifyView<AccountResource, HttpPass
return apply(rsrc.getUser(), newPassword);
}
// Used by the admin console plugin
// TODO(dpursehouse): Replace comment with @UsedAt
@UsedAt(UsedAt.Project.PLUGIN_SERVICEUSER)
public Response<String> apply(IdentifiedUser user, String newPassword)
throws ResourceNotFoundException, ResourceConflictException, OrmException, IOException,
ConfigInvalidException {