Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit 947f1fa

Browse files
authored
Merge pull request #1 from alw-iwu/main
Review: Minor issues.
2 parents 525d5e8 + 224815c commit 947f1fa

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

dataformat-uanodeset/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
<artifactId>maven-compiler-plugin</artifactId>
6161
<version>3.8.1</version>
6262
<configuration>
63-
<source>11</source>
64-
<target>11</target>
63+
<source>${maven.compiler.source}</source>
64+
<target>${maven.compiler.target}</target>
6565
</configuration>
6666
</plugin>
6767
<plugin>

dataformat-uanodeset/src/main/java/io/adminshell/aas/v3/dataformat/i4aas/parsers/UANodeWrapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public Optional<UANodeWrapper> getI4AASProperty(String filterName) {
196196
* matches the given type
197197
*/
198198
public List<UANodeWrapper> getComponentsOfType(BasicIdentifier filterType) {
199-
return getComponents().stream().filter(c -> c.getType() == filterType).toList();
199+
return getComponents().stream().filter(c -> c.getType() == filterType).collect(Collectors.toList());
200200
}
201201

202202
/**
@@ -205,7 +205,7 @@ public List<UANodeWrapper> getComponentsOfType(BasicIdentifier filterType) {
205205
* matches the given type
206206
*/
207207
public List<UANodeWrapper> getPropertiesOfType(BasicIdentifier filterType) {
208-
return getProperties().stream().filter(c -> c.getType() == filterType).toList();
208+
return getProperties().stream().filter(c -> c.getType() == filterType).collect(Collectors.toList());
209209
}
210210

211211
public UANode getNode() {

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
<properties>
4242
<revision>1.0.2</revision>
4343
<model.version>${revision}</model.version>
44-
<maven.compiler.source>1.8</maven.compiler.source>
45-
<maven.compiler.target>1.8</maven.compiler.target>
44+
<maven.compiler.source>11</maven.compiler.source>
45+
<maven.compiler.target>11</maven.compiler.target>
4646
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4747
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
4848
<plugin.flatten.version>1.2.2</plugin.flatten.version>

0 commit comments

Comments
 (0)