Make inner classes static where possible
Change-Id: Icb75d765bd4e9198ef294c3d099c762a395a623e
This commit is contained in:
parent
dfb8975e88
commit
a564df698a
|
@ -22,7 +22,7 @@ import java.net.URISyntaxException;
|
|||
import org.junit.Test;
|
||||
|
||||
public class IndexServletTest {
|
||||
class TestIndexServlet extends IndexServlet {
|
||||
static class TestIndexServlet extends IndexServlet {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
TestIndexServlet(String canonicalURL, String cdnPath) throws URISyntaxException {
|
||||
|
|
|
@ -147,7 +147,7 @@ public class ProjectQoSFilter implements Filter {
|
|||
@Override
|
||||
public void destroy() {}
|
||||
|
||||
private final class Listener implements ContinuationListener {
|
||||
private static final class Listener implements ContinuationListener {
|
||||
final Future<?> future;
|
||||
|
||||
Listener(Future<?> future) {
|
||||
|
|
|
@ -895,7 +895,7 @@ public class RefControlTest {
|
|||
return all.get(local.getProject().getNameKey());
|
||||
}
|
||||
|
||||
private class MockUser extends CurrentUser {
|
||||
private static class MockUser extends CurrentUser {
|
||||
private final String username;
|
||||
private final GroupMembership groups;
|
||||
|
||||
|
|
Loading…
Reference in New Issue