Make inner classes static where possible

Change-Id: Icb75d765bd4e9198ef294c3d099c762a395a623e
This commit is contained in:
David Pursehouse 2018-09-12 14:46:10 +09:00
parent dfb8975e88
commit a564df698a
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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) {

View File

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