Skip to content
Permalink
Browse files
Remove @reference in TasklistServlet since we inject via context.xml
  • Loading branch information
Daniel Estermann committed Dec 3, 2018
1 parent 634e5e3 commit f9ba0e29385e9c5187af369ebf84e61f95370fad
Showing 1 changed file with 0 additions and 2 deletions.
@@ -30,7 +30,6 @@

import org.apache.aries.jpa.example.tasklist.model.Task;
import org.apache.aries.jpa.example.tasklist.model.TaskService;
import org.osgi.service.component.annotations.Reference;

public class TasklistServlet extends HttpServlet {
private transient TaskService taskService; // NOSONAR
@@ -82,7 +81,6 @@ private void showTask(PrintWriter writer, String taskId) {

}

@Reference
public void setTaskService(TaskService taskService) {
this.taskService = taskService;
}

0 comments on commit f9ba0e2

Please sign in to comment.