Merge changes Ia4cd7ff1,I565375da
* changes: GetUsername: Remove unused 'self' member variable ChangeEditIT: Fix incorrect usage of ExpectedException
This commit is contained in:
@@ -17,21 +17,11 @@ package com.google.gerrit.server.account;
|
||||
import com.google.gerrit.extensions.restapi.AuthException;
|
||||
import com.google.gerrit.extensions.restapi.ResourceNotFoundException;
|
||||
import com.google.gerrit.extensions.restapi.RestReadView;
|
||||
import com.google.gerrit.server.CurrentUser;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
@Singleton
|
||||
public class GetUsername implements RestReadView<AccountResource> {
|
||||
|
||||
private final Provider<CurrentUser> self;
|
||||
|
||||
@Inject
|
||||
GetUsername(Provider<CurrentUser> self) {
|
||||
this.self = self;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String apply(AccountResource rsrc) throws AuthException,
|
||||
ResourceNotFoundException {
|
||||
|
||||
Reference in New Issue
Block a user