mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 07:02:02 +01:00
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:
parent
155c6ff385
commit
6c053c7e60
@ -50,16 +50,7 @@ public class JsonParserHelper {
|
||||
}
|
||||
|
||||
if (measures != null) {
|
||||
List<@Nullable Measure> nullableMeasuresWithoutNulls = 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 measures.stream().filter(Objects::nonNull).toList();
|
||||
}
|
||||
|
||||
return Collections.emptyList();
|
||||
|
@ -278,7 +278,7 @@ class BoschHttpClientTest {
|
||||
ExecutionException e = assertThrows(ExecutionException.class,
|
||||
() -> httpClient.sendRequest(request, SubscribeResult.class, sr -> false, null));
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>33.3.0-jre</version>
|
||||
<version>33.3.1-jre</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
|
@ -716,9 +716,9 @@ public class NikoHomeControlCommunication2 extends NikoHomeControlCommunication
|
||||
Optional<Integer> ambientTemperatureProperty = deviceProperties.stream().map(p -> p.ambientTemperature)
|
||||
.map(s -> (!((s == null) || s.isEmpty())) ? Math.round(Float.parseFloat(s) * 10) : null)
|
||||
.filter(Objects::nonNull).findFirst();
|
||||
Optional<@Nullable String> demandProperty = deviceProperties.stream().map(p -> p.demand)
|
||||
.filter(Objects::nonNull).findFirst();
|
||||
Optional<@Nullable String> operationModeProperty = deviceProperties.stream().map(p -> p.operationMode)
|
||||
Optional<String> demandProperty = deviceProperties.stream().map(p -> p.demand).filter(Objects::nonNull)
|
||||
.findFirst();
|
||||
Optional<String> operationModeProperty = deviceProperties.stream().map(p -> p.operationMode)
|
||||
.filter(Objects::nonNull).findFirst();
|
||||
|
||||
String modeString = deviceProperties.stream().map(p -> p.program).filter(Objects::nonNull).findFirst()
|
||||
|
@ -30,7 +30,7 @@
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>33.3.0-jre</version>
|
||||
<version>33.3.1-jre</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -40,7 +40,7 @@ Fragment-Host: org.openhab.automation.groovyscripting
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
@ -40,7 +40,7 @@ Fragment-Host: org.openhab.automation.jsscriptingnashorn
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
@ -35,7 +35,7 @@ Fragment-Host: org.openhab.binding.astro
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-jupiter-params;version='[5.10.0,5.10.1)',\
|
||||
|
@ -41,7 +41,7 @@ Fragment-Host: org.openhab.binding.avmfritz
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
@ -40,7 +40,7 @@ Fragment-Host: org.openhab.binding.feed
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
@ -45,7 +45,7 @@ Fragment-Host: org.openhab.binding.hue
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
@ -38,7 +38,7 @@ Fragment-Host: org.openhab.binding.max
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
@ -42,7 +42,7 @@ Fragment-Host: org.openhab.binding.mielecloud
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
@ -45,7 +45,7 @@ Fragment-Host: org.openhab.binding.modbus
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-jupiter-params;version='[5.10.0,5.10.1)',\
|
||||
|
@ -64,7 +64,7 @@ Import-Package: \
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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)',\
|
||||
io.reactivex.rxjava2.rxjava;version='[2.2.21,2.2.22)',\
|
||||
reactive-streams;version='[1.0.4,1.0.5)',\
|
||||
|
@ -64,7 +64,7 @@ Import-Package: \
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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)',\
|
||||
io.reactivex.rxjava2.rxjava;version='[2.2.21,2.2.22)',\
|
||||
reactive-streams;version='[1.0.4,1.0.5)',\
|
||||
|
@ -64,7 +64,7 @@ Import-Package: \
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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)',\
|
||||
io.reactivex.rxjava2.rxjava;version='[2.2.21,2.2.22)',\
|
||||
reactive-streams;version='[1.0.4,1.0.5)',\
|
||||
|
@ -43,7 +43,7 @@ Fragment-Host: org.openhab.binding.ntp
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
@ -45,7 +45,7 @@ Fragment-Host: org.openhab.binding.systeminfo
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
@ -48,7 +48,7 @@ Fragment-Host: org.openhab.binding.tradfri
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
@ -45,7 +45,7 @@ Fragment-Host: org.openhab.binding.wemo
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
@ -40,7 +40,7 @@ Fragment-Host: org.openhab.persistence.mapdb
|
||||
org.eclipse.equinox.event;version='[1.6.200,1.6.201)',\
|
||||
org.osgi.service.event;version='[1.4.1,1.4.2)',\
|
||||
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-engine;version='[5.10.0,5.10.1)',\
|
||||
junit-platform-commons;version='[1.10.0,1.10.1)',\
|
||||
|
4
pom.xml
4
pom.xml
@ -76,7 +76,7 @@
|
||||
<netty.version>4.1.104.Final</netty.version>
|
||||
<okhttp3.version>4.12.0</okhttp3.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>
|
||||
<sat.version>0.17.0</sat.version>
|
||||
<slf4j.version>2.0.12</slf4j.version>
|
||||
@ -325,7 +325,7 @@ Import-Package: \\
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jdt</groupId>
|
||||
<artifactId>ecj</artifactId>
|
||||
<version>3.36.0</version>
|
||||
<version>3.39.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
|
Loading…
Reference in New Issue
Block a user