Skip to content

Commit

Permalink
SDK-31 Adding Java 17 Compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
wikumChamith committed Dec 6, 2023
2 parents ae13482 + d01a5c0 commit ac84845
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn clean install --file pom.xml

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import com.thoughtworks.xstream.security.AnyTypePermission;
import org.openmrs.BaseOpenmrsData;
import org.openmrs.BaseOpenmrsMetadata;
import org.openmrs.BaseOpenmrsObject;
Expand Down Expand Up @@ -160,7 +159,6 @@ protected MapperWrapper wrapMapper(MapperWrapper next) {
xstream.registerConverter(new CustomDynamicProxyConverter(), XStream.PRIORITY_VERY_HIGH);
// set our own defined marshalling strategy so that we can build references for cglib
xstream.setMarshallingStrategy(new CustomReferenceByIdMarshallingStrategy());
xstream.addPermission(AnyTypePermission.ANY);
}

@PostConstruct
Expand Down
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.20</version>
<version>1.4.17</version>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down Expand Up @@ -107,6 +108,7 @@
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down

0 comments on commit ac84845

Please sign in to comment.