Commit Graph
39 Commits
Author SHA1 Message Date
Wouter BornandGitHub b423f93b1f Remove Map null annotation workarounds (#8916)
These workarounds to prevent false positives can be removed now the EEAs allow for proper null analysis.

Signed-off-by: Wouter Born <github@maindrain.net>
2020-11-04 13:57:24 +01:00
Wouter BornandGitHub da490ece4e [lifx] Improve selector logic (#8941)
* Properly handle datagrams that are not immediately available so no NPEs are logged on debug
* Properly handle sockets channels that are not connected so no NPEs are logged on debug
* Prevent load/garbage by reusing ByteBuffer and not allocating trace logging strings

Fixes #8932

Signed-off-by: Wouter Born <github@maindrain.net>
2020-11-02 10:15:59 +01:00
Wouter BornandGitHub 603ceedff9 [rrd4j] Improve performance (#8929)
* [rrd4j] Improve performance

* Cache item to improve performance
* Also return DecimalType for QuantityType values

Related to #8928
Reintroduces #8809

Signed-off-by: Wouter Born <github@maindrain.net>
2020-11-01 21:28:25 +01:00
Wouter BornandGitHub 7bff7f1bf3 Fix build (#8911)
Broken by #8893

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-30 17:38:23 -07:00
Wouter BornandGitHub 6398773007 [modbus] Disable failing test (#8884)
Related to #8880

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-27 22:30:27 +01:00
Wouter BornandGitHub 08405233ae Add .gitattributes (#8874)
Without this configuration there are issues with line endings on Windows.

See: openhab/openhab-addons#8712

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-26 21:12:21 +01:00
Wouter BornandGitHub cb5d8711b8 [mapdb] Fixes and improvements (#8852)
* Fix index out of bounds when persisting empty StringType values
* Fix deserialization when strings contain type separator
* Improve debug logging
* Improve test coverage

Fixes #8790

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-24 18:10:46 +02:00
Wouter BornandGitHub 52b7c8e920 [lifx] Fix IAE for unsupported products and update products (#8827)
* Fix IllegalArgumentException when updating properties of unsupported product
* Add missing products

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-21 20:03:23 +02:00
Wouter BornandGitHub 3dbcf37b74 Fix Tradfri itest (#8788)
Related to openhab/openhab-core#1721

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-18 15:40:14 +02:00
Wouter BornandGitHub de6390501b [groovyscripting] Add Groovy scripting support (#8772)
* Add Groovy scripting support

This makes it really easy to start using Groovy 3.x scripts with openHAB!

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-17 23:32:14 +02:00
Wouter BornandGitHub fd1a40aaba Improve "Command line build" section (#8767)
* Add/explain more command line options
* Structure options in a table
* Explain when to use -DwithResolver

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-17 12:56:55 -07:00
Wouter BornandGitHub 978e122e00 Rework ThingActions (#8755)
* Remove duplication by making use of default Java generated exceptions
* Make ThingActions labels/descriptions more consistent

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-15 10:53:53 +02:00
Wouter BornandGitHub bef1046258 Rework ThingActions (#8732)
* Remove proxy workarounds
* Move ThingActions and a few other classes into the internal package
* Use more consistent action labels/descriptions

Related to:

* openhab/openhab-core#1714
* openhab/openhab-core#1639

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-14 19:01:12 +02:00
Wouter BornandGitHub 6243ccb026 [hueemulation] Update feature (#8719)
Related to openhab/openhab-core#1709

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-10 19:09:56 +02:00
Wouter BornandGitHub be7e9c9680 Configure XStream security and resolve itest bundles (#8663)
* Configures XStream security to prevent "Security framework of XStream not initialized, XStream is probably vulnerable" warnings.
* Resolves the itest bundles for the upgrade to XStream 1.4.13

Related to openhab/openhab-core#1688

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-04 22:10:04 +02:00
Wouter BornandGitHub bd4528dcf3 Resolve itest bundles for Xtext upgrade (#8653)
Related to openhab/openhab-core#1685

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-04 18:34:57 +02:00
Wouter BornandGitHub d42efe0b22 Upgrade Maven compiler and fix/upgrade some TP dependencies (#8636)
Upgrades the compiler and its dependencies so the compiler results of Maven builds are more similar to those generated in recent Eclipse versions.

To fix compilation issues in Eclipse for add-ons using classes from javax.xml.stream several dependencies were upgraded/excluded.

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-03 18:23:16 +02:00
Wouter BornandGitHub 1b0876f719 [hue] Improve HueBridgeHandlerOSGiTest stability (#8621)
The ThingStatus is updated asynchronously so the test is unstable when the status is not updated immediately.

Signed-off-by: Wouter Born <github@maindrain.net>
2020-10-01 12:19:51 +02:00
Wouter BornandGitHub fbafc365da Fix parallel MQTT itests execution (#8617)
* Improve exception handling of the embedded MQTT broker so the port can be reconfigured when it is already bound and it properly unlocks files
* Rework MQTT integration tests so they each run the embedded broker on their own reserved port

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-30 19:36:47 +02:00
Wouter BornandGitHub c5f87b44f3 [hueemulation] Replace Jersey dependency with JAX-RS Whiteboard (#8611)
Fixes #7647

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-29 18:53:43 -07:00
Wouter BornandGitHub d72a077ba9 Fix disabled integration tests (#8609)
* Fix disabled integration tests

Fixes and enables:

* org.openhab.binding.mqtt.homeassistant.tests
* org.openhab.binding.mqtt.homie.tests
* org.openhab.io.mqttembeddedbroker.tests

Fixes #8537 
* Address review comment

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-29 14:05:39 -07:00
Wouter BornandGitHub aa3f73d423 [nikohomecontrol] Fix deprecated MQTT transport call (#8577)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-25 12:16:27 +02:00
Wouter BornandGitHub b503dce9fd Fix MQTT transport deprecations (#8570)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-24 13:50:46 -07:00
Wouter BornandGitHub 4b7eba1ab2 Update CODEOWNERS file (#8566)
* Update CODEOWNERS file

* Add missing bundles/itests dirs
* Remove bundles/itests dirs that no longer exist
* Sort list

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-24 19:42:24 +02:00
Wouter BornandGitHub f0ee7ffb2f Remove Jersey ClientBuilder compatibility (#8561)
Fixes #7531

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-24 10:40:12 -07:00
Wouter BornandGitHub cc042dabff Remove deprecated handleUpdate from ThingHandler (#8558)
The handleUpdate method was deprecated when profiles were introduced (see eclipse-archived/smarthome#4108).
Instead the "follow profile" can be used which forwards item updates as commands to handlers.
This profile works with any binding instead of only those that implement the handleUpdate method.

Related to openhab/openhab-core#1669

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-24 17:50:47 +02:00
Wouter BornandGitHub 4d67ef2a6b Apply Spotless on disabled add-ons (#8568)
This should make it easier to fix these broken add-ons and the PRs that fix them will then not contain all these changes which make them easier to review.

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-24 15:02:38 +02:00
Wouter BornandGitHub 6b4839ea7d [avmfritz] Reenable itest (#8567)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-24 14:51:11 +02:00
Wouter BornandGitHub 5594150e54 [ntp] Reenable itest (#8565)
With these changes and working channelLink events (openhab/openhab-core#1634) the ntp itest works again.

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-24 08:42:12 +02:00
Wouter BornandGitHub 5d729d923a [feed] Reenable itest (#8564)
With these changes and working channelLink events (openhab/openhab-core#1634) the feed itest works again.

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-24 08:41:46 +02:00
Wouter BornandGitHub 12bef45ff8 Remove deprecated ConfigOptionProvider.getParameterOptions method (#8556)
Related to openhab/openhab-core#1667

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-23 11:28:23 -07:00
Wouter BornandGitHub f156a80d2f Fix BaseThingHandler.initialize() deprecations (#8553)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-23 13:32:46 +02:00
Wouter BornandGitHub 99461f26b3 Reenable MapTransformationServiceTest (#8533)
Depends on openhab/openhab-core#1661

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-22 14:30:42 +02:00
Wouter BornandGitHub 1f7da6b669 Fix ConfigurableService deprecations (#8526)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-22 08:48:05 +02:00
Wouter BornandGitHub c82f6c4e77 Fix and reenable more integration tests (#8535)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-22 08:19:04 +02:00
Wouter BornandGitHub 5297ac2524 [imperihome] Adapt call to ZDT in Persistence API (#8527)
Fixes #8290

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-21 23:35:31 +02:00
Wouter BornandGitHub 0c11a21d90 Fix ConfigConstants deprecations (#8525)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-21 22:57:04 +02:00
Wouter BornandGitHub 7f39d01a0f Remove/ignore Eclipse project files (#8529)
Fixes #8451

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-21 22:50:37 +02:00
Wouter BornandGitHub bd82ca82df Migrate tests to JUnit 5 (#8519)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-21 18:21:26 +02:00