Skip to content

Commit

Permalink
Merge pull request #8967 from IQSS/revert-8809-master
Browse files Browse the repository at this point in the history
Revert "class field can be replaced by local variable"
  • Loading branch information
pdurbin authored Sep 8, 2022
2 parents f85e425 + a4354f1 commit c08e3a9
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public class SWORDv2ContainerServlet extends SwordServlet {
ContainerManagerImpl containerManagerImpl;
@Inject
StatementManagerImpl statementManagerImpl;
// private ContainerManager cm; this field can be replaced by local variable
private ContainerManager cm;
private ContainerAPI api;
// private StatementManager sm; this field can be replaced by local variable
private StatementManager sm;
private final ReentrantLock lock = new ReentrantLock();


Expand All @@ -28,16 +28,13 @@ public void init() throws ServletException {
super.init();

// load the container manager implementation
// this.cm = containerManagerImpl;
ContainerManager cm = containerManagerImpl;
this.cm = containerManagerImpl;

// load the statement manager implementation
// this.sm = statementManagerImpl;
StatementManager sm = statementManagerImpl;
this.sm = statementManagerImpl;

// initialise the underlying servlet processor
// this.api = new ContainerAPI(this.cm, this.sm, this.config);
this.api = new ContainerAPI(cm, sm, this.config);
this.api = new ContainerAPI(this.cm, this.sm, this.config);
}

@Override
Expand Down

0 comments on commit c08e3a9

Please sign in to comment.