Skip to content
Permalink
Browse files
Remove redundant calls to super().
  • Loading branch information
garydgregory committed Nov 20, 2020
1 parent cc12c69 commit cc577da997e0cdff478af316f5927241f3963bb3
Showing 11 changed files with 1 addition and 17 deletions.
@@ -30,7 +30,6 @@ public class RequestContext extends ContextBase implements Request {
private Response response;

public RequestContext(String name) {
super();
this.name = name;
}

@@ -27,7 +27,6 @@ public class ResponseContext extends ContextBase implements Response {
private final String name;

public ResponseContext(String name) {
super();
this.name = name;
}

@@ -66,7 +66,7 @@
* This property can be set later using <code>setProperty</code>, or if it is not set,
* the static singleton instance from <code>CatalogFactory.getInstance()</code> will be used.
*/
public DispatchLookupCommand() { super(); }
public DispatchLookupCommand() { }

/**
* Create an instance and initialize the <code>catalogFactory</code> property
@@ -60,7 +60,6 @@ public class ContextBase extends ContextMap<String, Object> {
* Default, no argument constructor.
*/
public ContextBase() {
super();
initialize();
}

@@ -41,7 +41,6 @@
* Creates a new, empty Context with a default initial capacity, load factor, and concurrencyLevel.
*/
public ContextMap() {
super();
}

/**
@@ -48,7 +48,6 @@ class ConfigCatalogRule extends Rule {
* created {@link org.apache.commons.chain2.Catalog} instances
*/
public ConfigCatalogRule(String nameAttribute, String catalogClass) {
super();
this.nameAttribute = nameAttribute;
this.catalogClass = catalogClass;
}
@@ -44,7 +44,6 @@ class ConfigDefineRule extends Rule {
* implementation class for the new chain or command
*/
public ConfigDefineRule(String nameAttribute, String classAttribute) {
super();
this.nameAttribute = nameAttribute;
this.classAttribute = classAttribute;
}
@@ -46,7 +46,6 @@ class ConfigRegisterRule extends Rule {
* which this command should be registered
*/
public ConfigRegisterRule(String nameAttribute) {
super();
this.nameAttribute = nameAttribute;
}

@@ -28,21 +28,18 @@ public class MockPrincipal implements Principal {


public MockPrincipal() {
super();
this.name = "";
this.roles = new String[0];
}


public MockPrincipal(String name) {
super();
this.name = name;
this.roles = new String[0];
}


public MockPrincipal(String name, String roles[]) {
super();
this.name = name;
this.roles = roles;
}
@@ -35,19 +35,16 @@ public class MockHttpServletRequest implements HttpServletRequest {


public MockHttpServletRequest() {
super();
}


public MockHttpServletRequest(HttpSession session) {
super();
setHttpSession(session);
}


public MockHttpServletRequest(String contextPath, String servletPath,
String pathInfo, String queryString) {
super();
setPathElements(contextPath, servletPath, pathInfo, queryString);
}

@@ -56,7 +53,6 @@ public MockHttpServletRequest(String contextPath, String servletPath,
public MockHttpServletRequest(String contextPath, String servletPath,
String pathInfo, String queryString,
HttpSession session) {
super();
setPathElements(contextPath, servletPath, pathInfo, queryString);
setHttpSession(session);
}
@@ -35,12 +35,10 @@ public class MockHttpSession implements HttpSession {


public MockHttpSession() {
super();
}


public MockHttpSession(ServletContext servletContext) {
super();
setServletContext(servletContext);
}

0 comments on commit cc577da

Please sign in to comment.