Skip to content
Snippets Groups Projects
Commit 6f4cf8da authored by Robin Rosenberg's avatar Robin Rosenberg
Browse files

Make inner classes static in http code


Static classes are preferrable to keep unwanted dependencies away, 
and they have one less member field.

Signed-off-by: default avatarRobin Rosenberg <robin.rosenberg@dewire.com>
parent 3bf96dd0
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ public void testCreate_Enabled() throws ServiceNotEnabledException,
service.access(new R("bob", "1.2.3.4"), db);
}
private final class R extends HttpServletRequestWrapper {
private static final class R extends HttpServletRequestWrapper {
private final String user;
private final String host;
......
......@@ -174,7 +174,7 @@ public void testCreate_Enabled() throws ServiceNotEnabledException,
assertNotNull("have ReceivePack", rp);
}
private final class R extends HttpServletRequestWrapper {
private static final class R extends HttpServletRequestWrapper {
private final String user;
private final String host;
......
......@@ -136,7 +136,7 @@ public void testCreate_Enabled() throws ServiceNotEnabledException,
assertSame(db, up.getRepository());
}
private final class R extends HttpServletRequestWrapper {
private static final class R extends HttpServletRequestWrapper {
private final String user;
private final String host;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment