Adapt to core change, xtext dependencies

* gson 2.11.0
* guava 3.33.1
* ecj 3.39.0
* Fix newly introduced compilation and test issues in bindings

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich 2024-11-23 21:18:19 +01:00
parent 155c6ff385
commit 6c053c7e60
23 changed files with 26 additions and 35 deletions

View File

@ -50,16 +50,7 @@ public class JsonParserHelper {
} }
if (measures != null) { if (measures != null) {
List<@Nullable Measure> nullableMeasuresWithoutNulls = measures.stream().filter(Objects::nonNull).toList(); return measures.stream().filter(Objects::nonNull).toList();
List<Measure> measuresWithoutNulls = new ArrayList<>(nullableMeasuresWithoutNulls.size());
for (@Nullable
Measure m : nullableMeasuresWithoutNulls) {
if (m != null) {
measuresWithoutNulls.add(m);
}
}
return measuresWithoutNulls;
} }
return Collections.emptyList(); return Collections.emptyList();

View File

@ -278,7 +278,7 @@ class BoschHttpClientTest {
ExecutionException e = assertThrows(ExecutionException.class, ExecutionException e = assertThrows(ExecutionException.class,
() -> httpClient.sendRequest(request, SubscribeResult.class, sr -> false, null)); () -> httpClient.sendRequest(request, SubscribeResult.class, sr -> false, null));
assertEquals( assertEquals(
"Received invalid content in response, expected type org.openhab.binding.boschshc.internal.devices.bridge.dto.SubscribeResult: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 44 path $.@type", "Received invalid content in response, expected type org.openhab.binding.boschshc.internal.devices.bridge.dto.SubscribeResult: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 44 path $.@type\nSee https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json",
e.getMessage()); e.getMessage());
} }
} }

View File

@ -30,7 +30,7 @@
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
<version>33.3.0-jre</version> <version>33.3.1-jre</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>

View File

@ -716,9 +716,9 @@ public class NikoHomeControlCommunication2 extends NikoHomeControlCommunication
Optional<Integer> ambientTemperatureProperty = deviceProperties.stream().map(p -> p.ambientTemperature) Optional<Integer> ambientTemperatureProperty = deviceProperties.stream().map(p -> p.ambientTemperature)
.map(s -> (!((s == null) || s.isEmpty())) ? Math.round(Float.parseFloat(s) * 10) : null) .map(s -> (!((s == null) || s.isEmpty())) ? Math.round(Float.parseFloat(s) * 10) : null)
.filter(Objects::nonNull).findFirst(); .filter(Objects::nonNull).findFirst();
Optional<@Nullable String> demandProperty = deviceProperties.stream().map(p -> p.demand) Optional<String> demandProperty = deviceProperties.stream().map(p -> p.demand).filter(Objects::nonNull)
.filter(Objects::nonNull).findFirst(); .findFirst();
Optional<@Nullable String> operationModeProperty = deviceProperties.stream().map(p -> p.operationMode) Optional<String> operationModeProperty = deviceProperties.stream().map(p -> p.operationMode)
.filter(Objects::nonNull).findFirst(); .filter(Objects::nonNull).findFirst();
String modeString = deviceProperties.stream().map(p -> p.program).filter(Objects::nonNull).findFirst() String modeString = deviceProperties.stream().map(p -> p.program).filter(Objects::nonNull).findFirst()

View File

@ -30,7 +30,7 @@
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
<version>33.3.0-jre</version> <version>33.3.1-jre</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -40,7 +40,7 @@ Fragment-Host: org.openhab.automation.groovyscripting
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -40,7 +40,7 @@ Fragment-Host: org.openhab.automation.jsscriptingnashorn
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -35,7 +35,7 @@ Fragment-Host: org.openhab.binding.astro
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-jupiter-params;version='[5.10.0,5.10.1)',\ junit-jupiter-params;version='[5.10.0,5.10.1)',\

View File

@ -41,7 +41,7 @@ Fragment-Host: org.openhab.binding.avmfritz
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -40,7 +40,7 @@ Fragment-Host: org.openhab.binding.feed
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -45,7 +45,7 @@ Fragment-Host: org.openhab.binding.hue
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -38,7 +38,7 @@ Fragment-Host: org.openhab.binding.max
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -42,7 +42,7 @@ Fragment-Host: org.openhab.binding.mielecloud
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -45,7 +45,7 @@ Fragment-Host: org.openhab.binding.modbus
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-jupiter-params;version='[5.10.0,5.10.1)',\ junit-jupiter-params;version='[5.10.0,5.10.1)',\

View File

@ -64,7 +64,7 @@ Import-Package: \
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
com.hivemq.client.mqtt;version='[1.3.3,1.3.4)',\ com.hivemq.client.mqtt;version='[1.3.3,1.3.4)',\
io.reactivex.rxjava2.rxjava;version='[2.2.21,2.2.22)',\ io.reactivex.rxjava2.rxjava;version='[2.2.21,2.2.22)',\
reactive-streams;version='[1.0.4,1.0.5)',\ reactive-streams;version='[1.0.4,1.0.5)',\

View File

@ -64,7 +64,7 @@ Import-Package: \
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
com.hivemq.client.mqtt;version='[1.3.3,1.3.4)',\ com.hivemq.client.mqtt;version='[1.3.3,1.3.4)',\
io.reactivex.rxjava2.rxjava;version='[2.2.21,2.2.22)',\ io.reactivex.rxjava2.rxjava;version='[2.2.21,2.2.22)',\
reactive-streams;version='[1.0.4,1.0.5)',\ reactive-streams;version='[1.0.4,1.0.5)',\

View File

@ -64,7 +64,7 @@ Import-Package: \
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
com.hivemq.client.mqtt;version='[1.3.3,1.3.4)',\ com.hivemq.client.mqtt;version='[1.3.3,1.3.4)',\
io.reactivex.rxjava2.rxjava;version='[2.2.21,2.2.22)',\ io.reactivex.rxjava2.rxjava;version='[2.2.21,2.2.22)',\
reactive-streams;version='[1.0.4,1.0.5)',\ reactive-streams;version='[1.0.4,1.0.5)',\

View File

@ -43,7 +43,7 @@ Fragment-Host: org.openhab.binding.ntp
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -45,7 +45,7 @@ Fragment-Host: org.openhab.binding.systeminfo
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -48,7 +48,7 @@ Fragment-Host: org.openhab.binding.tradfri
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -45,7 +45,7 @@ Fragment-Host: org.openhab.binding.wemo
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -40,7 +40,7 @@ Fragment-Host: org.openhab.persistence.mapdb
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\ org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
org.osgi.service.event;version='[1.4.1,1.4.2)',\ org.osgi.service.event;version='[1.4.1,1.4.2)',\
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ org.osgi.util.promise;version='[1.3.0,1.3.1)',\
com.google.gson;version='[2.10.1,2.10.2)',\ com.google.gson;version='[2.11.0,2.11.1)',\
junit-jupiter-api;version='[5.10.0,5.10.1)',\ junit-jupiter-api;version='[5.10.0,5.10.1)',\
junit-jupiter-engine;version='[5.10.0,5.10.1)',\ junit-jupiter-engine;version='[5.10.0,5.10.1)',\
junit-platform-commons;version='[1.10.0,1.10.1)',\ junit-platform-commons;version='[1.10.0,1.10.1)',\

View File

@ -76,7 +76,7 @@
<netty.version>4.1.104.Final</netty.version> <netty.version>4.1.104.Final</netty.version>
<okhttp3.version>4.12.0</okhttp3.version> <okhttp3.version>4.12.0</okhttp3.version>
<okio.version>3.9.0</okio.version> <okio.version>3.9.0</okio.version>
<gson.version>2.9.1</gson.version> <gson.version>2.11.0</gson.version>
<kotlin.version>1.9.23</kotlin.version> <kotlin.version>1.9.23</kotlin.version>
<sat.version>0.17.0</sat.version> <sat.version>0.17.0</sat.version>
<slf4j.version>2.0.12</slf4j.version> <slf4j.version>2.0.12</slf4j.version>
@ -325,7 +325,7 @@ Import-Package: \\
<dependency> <dependency>
<groupId>org.eclipse.jdt</groupId> <groupId>org.eclipse.jdt</groupId>
<artifactId>ecj</artifactId> <artifactId>ecj</artifactId>
<version>3.36.0</version> <version>3.39.0</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>