Skip to content

Commit

Permalink
refactor: unused RestTemplate private field
Browse files Browse the repository at this point in the history
  • Loading branch information
GtanSndil committed Feb 15, 2024
1 parent 097c9d5 commit 52f195d
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
import jakarta.ws.rs.core.MediaType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.client.RestTemplate;


@RestController
Expand All @@ -26,11 +24,8 @@ public class GetItem {

private final ColecticaService colecticaService;

private final RestTemplate restTemplate;
@Autowired
public GetItem(ColecticaService colecticaService, RestTemplate restTemplate) {
public GetItem(ColecticaService colecticaService) {
this.colecticaService = colecticaService;
this.restTemplate = restTemplate;
}


Expand Down

0 comments on commit 52f195d

Please sign in to comment.