Skip to content

Commit

Permalink
Merge pull request #437 from buschlab/renovate/com.github.ngeor-check…
Browse files Browse the repository at this point in the history
…style-rules-7.x

Update dependency com.github.ngeor:checkstyle-rules to v7
  • Loading branch information
nr23730 authored Sep 3, 2024
2 parents 0b9ab5f + eb74b8e commit a00bd65
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 56 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<dependency>
<groupId>com.github.ngeor</groupId>
<artifactId>checkstyle-rules</artifactId>
<version>6.7.2</version>
<version>7.0.0</version>
</dependency>
</dependencies>
<configuration>
Expand Down
21 changes: 10 additions & 11 deletions src/main/java/fhirspark/JsonFhirMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@
import fhirspark.restmodel.Mtb;
import fhirspark.restmodel.TherapyRecommendation;
import fhirspark.settings.Settings;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.hl7.fhir.instance.model.api.IAnyResource;
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.Bundle.BundleEntryComponent;
Expand All @@ -36,17 +46,6 @@
import org.hl7.fhir.r4.model.RelatedArtifact;
import org.hl7.fhir.r4.model.RelatedArtifact.RelatedArtifactType;

import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
* Fulfils the persistence in HL7 FHIR resources.
*/
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/fhirspark/adapter/ClinicalTrialAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
import fhirspark.definitions.GenomicsReportingEnum;
import fhirspark.definitions.UriEnum;
import fhirspark.restmodel.ClinicalTrial;
import org.hl7.fhir.r4.model.Coding;
import org.hl7.fhir.r4.model.Observation.ObservationComponentComponent;

import java.util.ArrayList;
import java.util.List;
import org.hl7.fhir.r4.model.Coding;
import org.hl7.fhir.r4.model.Observation.ObservationComponentComponent;

public final class ClinicalTrialAdapter {

Expand Down
11 changes: 5 additions & 6 deletions src/main/java/fhirspark/adapter/FollowUpAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
import fhirspark.restmodel.TherapyRecommendation;
import fhirspark.settings.Regex;
import fhirspark.settings.Settings;
import java.lang.reflect.InvocationTargetException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import org.hl7.fhir.r4.model.Annotation;
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.CodeableConcept;
Expand All @@ -22,12 +27,6 @@
import org.hl7.fhir.r4.model.Practitioner;
import org.hl7.fhir.r4.model.Reference;

import java.lang.reflect.InvocationTargetException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

public final class FollowUpAdapter {

private static IGenericClient client;
Expand Down
13 changes: 6 additions & 7 deletions src/main/java/fhirspark/adapter/MtbAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
import fhirspark.restmodel.TherapyRecommendation;
import fhirspark.settings.Regex;
import fhirspark.settings.Settings;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.Coding;
import org.hl7.fhir.r4.model.DiagnosticReport;
Expand All @@ -27,13 +33,6 @@
import org.hl7.fhir.r4.model.Task.TaskIntent;
import org.hl7.fhir.r4.model.Task.TaskStatus;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public final class MtbAdapter {

private static IGenericClient client;
Expand Down
11 changes: 5 additions & 6 deletions src/main/java/fhirspark/adapter/ReasoningAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@
import fhirspark.restmodel.GeneticAlteration;
import fhirspark.restmodel.Reasoning;
import fhirspark.settings.Regex;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.IdType;
import org.hl7.fhir.r4.model.Observation;
import org.hl7.fhir.r4.model.Reference;
import org.hl7.fhir.r4.model.Resource;
import org.hl7.fhir.r4.model.Specimen;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public final class ReasoningAdapter {

private ReasoningAdapter() {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/fhirspark/adapter/RegexAdapter.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fhirspark.adapter;

import fhirspark.settings.Regex;

import java.util.List;

public final class RegexAdapter {
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/fhirspark/adapter/SpecimenAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
import fhirspark.definitions.GenomicsReportingEnum;
import fhirspark.definitions.Hl7TerminologyEnum;
import fhirspark.settings.Regex;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.hl7.fhir.r4.model.IdType;
import org.hl7.fhir.r4.model.Identifier;
import org.hl7.fhir.r4.model.Reference;
import org.hl7.fhir.r4.model.Specimen;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
* Builds a HL7 FHIR Speciment object with the provided specimen id.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
import fhirspark.restmodel.TherapyRecommendation;
import fhirspark.restmodel.Treatment;
import fhirspark.settings.Regex;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.hl7.fhir.r4.model.Annotation;
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.Coding;
Expand All @@ -29,11 +33,6 @@
import org.hl7.fhir.r4.model.ResearchStudy;
import org.hl7.fhir.r4.model.codesystems.ObservationCategory;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

public final class TherapyRecommendationAdapter {

private static PubmedPublication pubmedResolver = new PubmedPublication();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
import ca.uhn.fhir.rest.client.api.IGenericClient;
import fhirspark.restmodel.ClinicalDatum;
import fhirspark.settings.Regex;
import java.util.List;
import org.hl7.fhir.r4.model.Observation;
import org.hl7.fhir.r4.model.Reference;
import org.hl7.fhir.r4.model.Resource;

import java.util.List;

/**
* General interface for all adapters of clinical data.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import fhirspark.definitions.LoincEnum;
import fhirspark.restmodel.ClinicalDatum;
import fhirspark.settings.Regex;
import java.util.List;
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.CodeableConcept;
import org.hl7.fhir.r4.model.Observation;
Expand All @@ -14,8 +15,6 @@
import org.hl7.fhir.r4.model.Resource;
import org.hl7.fhir.r4.model.Specimen;

import java.util.List;

/**
* Generic adapter for clinical data. Also fallback if other adapter was not
* found.
Expand Down
1 change: 0 additions & 1 deletion src/main/java/fhirspark/resolver/HgncGeneName.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.fasterxml.jackson.dataformat.csv.CsvMapper;
import com.fasterxml.jackson.dataformat.csv.CsvSchema;
import fhirspark.resolver.model.Genenames;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.HashMap;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/fhirspark/resolver/OncoKbDrug.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import fhirspark.resolver.model.Drug;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.HashMap;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/fhirspark/resolver/PubmedPublication.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.UniformInterfaceException;
import com.sun.jersey.api.client.WebResource;
import org.eclipse.jetty.http.HttpStatus;

import java.io.IOException;
import org.eclipse.jetty.http.HttpStatus;

/**
* Resolves the title of a pubmed publication if it was not provided.
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/fhirspark/settings/ConfigurationLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import com.google.common.io.ByteStreams;
import org.apache.commons.text.StringSubstitutor;
import org.apache.commons.text.lookup.StringLookupFactory;

import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;
import java.nio.charset.StandardCharsets;
import org.apache.commons.text.StringSubstitutor;
import org.apache.commons.text.lookup.StringLookupFactory;

/**
* Class that enables the use of environment variables in the settings.yaml
Expand Down
1 change: 0 additions & 1 deletion src/main/java/fhirspark/settings/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import java.util.List;

/**
Expand Down

0 comments on commit a00bd65

Please sign in to comment.