mirror of
https://github.com/google/nomulus.git
synced 2025-06-28 15:23:34 +02:00
Switch to constructor injection in a few actions
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=232552406
This commit is contained in:
parent
927e8bbd73
commit
29d3ad8052
5 changed files with 49 additions and 50 deletions
|
@ -60,7 +60,10 @@ public final class FakeResponse implements Response {
|
|||
|
||||
@Override
|
||||
public void setContentType(MediaType contentType) {
|
||||
checkArgument(payload.isEmpty(), "setContentType must be called before setPayload");
|
||||
checkArgument(
|
||||
payload.isEmpty(),
|
||||
"setContentType must be called before setPayload; payload is: %s",
|
||||
payload);
|
||||
this.contentType = checkNotNull(contentType);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue