Skip to content

Commit dffb04a

Browse files
committed
Update the Java version to 8
1 parent 495bbd9 commit dffb04a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

api-tests/src/test/java/org/openmrs/module/reporting/calculation/PatientDataCalculationBehaviorTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import java.util.Arrays;
1313
import java.util.Collections;
1414
import java.util.HashMap;
15+
import java.util.HashSet;
1516
import java.util.Map;
1617
import java.util.Set;
1718

@@ -47,8 +48,8 @@ public void setup() throws Exception {
4748
public void evaluate_shouldEvaluateAPatientCalculation() throws Exception {
4849
Integer patientId1 = 2;
4950
Integer patientId2 = 7;
50-
Set<PatientIdentifier> identifiers1 = ps.getPatient(patientId1).getIdentifiers();
51-
Set<PatientIdentifier> identifiers2 = ps.getPatient(patientId2).getIdentifiers();
51+
Set<PatientIdentifier> identifiers1 = new HashSet<>(ps.getPatient(patientId1).getIdentifiers());
52+
Set<PatientIdentifier> identifiers2 = new HashSet<>(ps.getPatient(patientId2).getIdentifiers());
5253
PatientDataCalculation calculation = new PatientDataCalculationProvider().getCalculation(
5354
"org.openmrs.module.reporting.data.patient.definition.PatientIdentifierDataDefinition", null);
5455
Map<String, Object> parameters = new HashMap<String, Object>();

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@
469469
<groupId>org.apache.maven.plugins</groupId>
470470
<artifactId>maven-compiler-plugin</artifactId>
471471
<configuration>
472-
<target>1.6</target>
473-
<source>1.6</source>
472+
<target>1.8</target>
473+
<source>1.8</source>
474474
</configuration>
475475
</plugin>
476476

0 commit comments

Comments
 (0)