Skip to content

Commit

Permalink
Remove unused imports and variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SolizerCodes authored Jul 24, 2023
1 parent 4ea5de6 commit f8212ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.context.annotation.Profile;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import de.tum.in.www1.artemis.service.connectors.ConnectorHealth;
import de.tum.in.www1.artemis.service.connectors.iris.dto.IrisStatusDTO;

Expand All @@ -26,14 +21,11 @@ public class IrisHealthIndicator implements HealthIndicator {

private final RestTemplate restTemplate;

private final ObjectMapper objectMapper;

@Value("${artemis.iris.url}")
private URI irisUrl;

public IrisHealthIndicator(@Qualifier("irisRestTemplate") RestTemplate restTemplate, MappingJackson2HttpMessageConverter springMvcJacksonConverter) {
public IrisHealthIndicator(@Qualifier("irisRestTemplate") RestTemplate restTemplate) {
this.restTemplate = restTemplate;
this.objectMapper = springMvcJacksonConverter.getObjectMapper();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.Arrays;
import java.util.List;

import org.springframework.boot.actuate.health.Status;
import org.springframework.context.annotation.Profile;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
Expand Down

0 comments on commit f8212ae

Please sign in to comment.