dependabot[bot] and GitHub
53a30bb967
Bump org.apache.maven.plugins:maven-dependency-plugin ( #5612 )
...
Bumps [org.apache.maven.plugins:maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin ) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases )
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.10.0...maven-dependency-plugin-3.11.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-29 07:57:55 +02:00
Holger Friedrich and GitHub
4d5610fd57
Reduce SAT and compiler warnings ( #5549 )
...
* Reduce SAT and compiler warnings
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2026-05-17 00:20:34 +02:00
Holger Friedrich and GitHub
d7470afc23
Handle deprecated APIs ( #5550 )
...
* Handle deprecated APIs
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2026-05-17 00:19:33 +02:00
Holger Friedrich and GitHub
0f3928acaa
Avoid using Optional as field type ( #5423 )
...
Replace Optional as field types by nullable fields.
This fixes SAT warnings.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2026-03-28 10:44:37 +01:00
dependabot[bot] and GitHub
3b4b5b9279
Bump org.apache.maven.plugins:maven-dependency-plugin ( #5337 )
...
Bumps [org.apache.maven.plugins:maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin ) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases )
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.9.0...maven-dependency-plugin-3.10.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2026-02-09 00:52:47 +01:00
Holger Friedrich and GitHub
ba668ddf1d
Upgrade commons-pool2 to 2.13.1 ( #5264 )
...
Upgrade commons-pool2 from 2.12.1 to 2.13.1
Changelog:
https://commons.apache.org/proper/commons-pool/changes.html#a2.13.1
https://commons.apache.org/proper/commons-pool/changes.html#a2.13.0
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2026-01-13 05:43:14 +01:00
Holger Friedrich and GitHub
79277fafb7
Update license headers to 2026 ( #5259 )
...
* Update license headers to 2026
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2026-01-10 22:36:26 +01:00
Holger Friedrich and GitHub
4084fec56b
Prepare for OH 5.2.0 ( #5220 )
...
* Fix spotless after unleash
* Resolve itest runbundles
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2025-12-22 22:01:01 +01:00
openhab-bot
f6c7ea6490
[unleash-maven-plugin] Preparation for next development cycle.
2025-12-22 15:00:02 +00:00
dependabot[bot] and GitHub
3ed9b08744
Bump org.apache.maven.plugins:maven-dependency-plugin ( #5052 )
...
Bumps [org.apache.maven.plugins:maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin ) from 3.8.1 to 3.9.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases )
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.8.1...maven-dependency-plugin-3.9.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-03 16:45:06 +02:00
Дилян Палаузов and GitHub
961de1a2ca
Remove all super(); calls ( #5009 )
...
by calling:
sed -i "/super();/d" $(git grep -l "super();")
2025-09-07 13:17:48 +02:00
Holger Friedrich and GitHub
ddf04e2419
Prepare for OH 5.1.0 ( #4918 )
...
* Prepare for OH 5.1.0
* Fix spotless after unleash
* Resolve itest runbundles
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2025-07-21 21:10:15 +02:00
openhab-bot
36e9e60f14
[unleash-maven-plugin] Preparation for next development cycle.
2025-07-21 07:17:39 +00:00
Holger Friedrich and GitHub
6eb7d0c9a6
Clean up POM dependencies ( #4855 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2025-06-18 20:23:10 +02:00
Holger Friedrich and GitHub
72cf4c1109
Upgrade dependencies ( #4663 )
...
* Upgrade jose4j for 0.9.5 to 0.9.6
https://bitbucket.org/b_c/jose4j/wiki/Release%20Notes
* Upgrade commons-io from 2.17.0 to 2.18.0
https://commons.apache.org/proper/commons-io/changes-report.html#a2.18.0
* Upgrade commons-net from 3.9.0 to 3.11.1
https://commons.apache.org/proper/commons-net/changes-report.html#a3.11.1
* upgradetool: Upgrade commons-cli from 1.5.0 to 1.9.0
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2025-03-23 17:05:58 +01:00
Wouter Born and GitHub
6bf59605bd
Use Spotless sortpom plug-in ( #4618 )
...
This simplifies the sortpom configuration and also allows for checking and reformatting them using the spotless:check and spotless:apply Maven goals.
Signed-off-by: Wouter Born <github@maindrain.net >
2025-02-23 19:04:47 +01:00
Holger Friedrich and GitHub
b90e87367d
Fix JavaDoc, SAT and depreacation warnings ( #4598 )
...
* Fix SAT and depreacation warnings
* Fix JavaDoc build
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2025-02-16 11:37:22 +01:00
Holger Friedrich and Wouter Born
4da70a2ed8
Upgrade Karaf from 4.4.6 to 4.4.7
...
* Sync runtime dependencies with Karaf 4.4.7, most notably:
* PaxWeb 8.0.30
* Jetty 9.4.57.v20241219
* BouncyCastle 1.78.1
* CXF 3.6.4
* Jackson 2.18.2
* JNA 5.16.0
* JAXB 2.3.9
* commons-io 2.17.0
* commons-lang3 3.17.0
* XBean 4.26
* ASM 9.7.1
* PaxLogging 2.2.8
* Resolve itest runbundles
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2025-01-26 15:15:29 +01:00
Wouter Born and GitHub
f00c7700cb
Start license headers with /* instead of /** ( #4544 )
...
Prevents JavaDoc tooling issues because these tools check comments starting with `/**`.
Signed-off-by: Wouter Born <github@maindrain.net >
2025-01-07 21:48:56 +01:00
Holger Friedrich and GitHub
40d079ae80
Java 21 language features ( #4535 )
...
* Java 21 language features
* use getFirst and getLast methods
* replace new Locale by Locale.of
* replace Paths.get by Path.of
* use ThreadLocalRandom.current().nextDouble()
* add @Serial annotations
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2025-01-06 23:22:43 +01:00
Holger Friedrich and GitHub
1e0b3c2410
Upgrade plugins ( #4536 )
...
* sortpom-maven-plugin to 4.0.0 (breaking change)
https://github.com/Ekryd/sortpom?tab=readme-ov-file#news
* maven-clean-plugin to 3.4.0
https://github.com/apache/maven-clean-plugin/releases/tag/maven-clean-plugin-3.4.0
* maven-deploy-plugin to 3.1.3
https://github.com/apache/maven-deploy-plugin/releases/tag/maven-deploy-plugin-3.1.3
* maven-enforcer-plugin to 3.5.0
https://github.com/apache/maven-enforcer/releases
* maven-install-plugin to 3.1.3
https://github.com/apache/maven-install-plugin/releases
* maven-plugin-plugin to 3.15.1
* license-maven-plugin to 4.6
https://github.com/mathieucarbou/license-maven-plugin/releases
* maven-jar-plugin to 3.4.2
https://github.com/apache/maven-jar-plugin/releases/tag/maven-jar-plugin-3.4.2
* maven-archetype-plugin to 3.3.1
* maven-dependency-plugin to 3.8.1
* maven-javadoc-plugin to 3.11.2
* maven-release-plugin to 3.1.1
* maven-shade-plugin to 3.6.0
* maven-site-plugin to 3.21.0
* maven-surefire-plugin to 3.5.2
* build-helper-maven-plugin
https://github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.6.0
* i18n-maven-plugin to latest OH release 4.3.1
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2025-01-04 09:48:42 +01:00
Wouter Born and GitHub
979e4a7409
Update license headers to 2025 ( #4532 )
...
Signed-off-by: Wouter Born <github@maindrain.net >
2025-01-01 16:40:04 +01:00
Wouter Born and GitHub
db72021460
Update Eclipse files ( #4514 )
...
Signed-off-by: Wouter Born <github@maindrain.net >
2024-12-24 07:02:47 +01:00
Holger Friedrich and GitHub
8d837f9823
Prepare for OH 5.0.0 ( #4496 )
...
* Prepare for OH 5.0.0
* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles
* Fix linux-specific pom
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2024-12-15 18:49:23 +01:00
openhab-bot
0f2e56f39d
[unleash-maven-plugin] Preparation for next development cycle.
2024-12-15 11:41:19 +00:00
Wouter Born and GitHub
a22349abf4
Upgrade lastnpe EEA to 2.4.0 ( #4416 )
...
For release notes, see:
https://github.com/lastnpe/eclipse-null-eea-augments/releases/tag/v2.4.0
Signed-off-by: Wouter Born <github@maindrain.net >
2024-10-20 16:03:03 +02:00
Holger Friedrich and GitHub
fc454883c2
Reduce SAT warnings ( #4339 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2024-08-11 10:04:26 +02:00
Kai Kreuzer and GitHub
21e605d212
Apply spotless after release, resolve bundles ( #4301 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org >
2024-07-07 23:22:27 +02:00
openhab-bot
07e23eac3c
[unleash-maven-plugin] Preparation for next development cycle.
2024-07-07 16:05:56 +00:00
Holger Friedrich and GitHub
873bb53cbc
Upgrade Karaf from 4.4.5 to 4.4.6 ( #4181 )
...
* Upgrade Karaf from 4.4.5 to 4.4.6
* Sync runtime dependencies with Karaf 4.4.6, most notably:
* Jetty 9.4.54.v20240208, addresses CVE-2024-22201
* Pax Logging 2.2.7
* Pax Web 8.0.27
* ASM 9.7
* BouncyCastle 1.77
* Upgrade xtext to 2.35.0.M1
* Resolve itest runbundles
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2024-05-20 17:42:04 +02:00
Simonas Kazlauskas and GitHub
81f2bd9366
[modbus] reduce log level when modbus slave returns DEVICE_BUSY exception ( #3847 )
...
* [modbus] reduce log level when modbus slave returns DEVICE_BUSY exception
This exception is meant to indicate that the request should be retried
shortly, essentially, and at least some of the devices I own seem to be
busy bees. Thus my logs receive significant spam of this warning.
Since the exception is transient and retrying it is the expected course
of action, I think it makes sense to reduce the log level here slightly
and only output an error when the retries get exhausted.
Signed-off-by: Simonas Kazlauskas <git@kazlauskas.me >
* Update bundles/org.openhab.core.io.transport.modbus/src/main/java/org/openhab/core/io/transport/modbus/internal/ModbusManagerImpl.java
Signed-off-by: Simonas Kazlauskas <github@kazlauskas.me >
---------
Signed-off-by: Simonas Kazlauskas <git@kazlauskas.me >
Signed-off-by: Simonas Kazlauskas <github@kazlauskas.me >
2024-04-28 18:04:40 +02:00
Holger Friedrich and GitHub
c316b07c47
Update plugins ( #4197 )
...
* set minimum Maven version to 3.6.3
* build-helper-maven-plugin, 3.4.0 to 3.5.0, see
https://github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.5.0
* jvnet maven-jaxb2-plugin, 0.15.2 to 0.15.3
* license-maven-plugin, 4.2 to 4.3
* maven-archetype-plugin, 3.0.1 to 3.2.1
* maven-assembly-plugin, 3.4.2 to 3.7.1, see https://github.com/apache/maven-assembly-plugin/releases
* maven-clean-plugin, 3.3.1 to 3.3.2, see https://github.com/apache/maven-clean-plugin/releases
* maven-dependency-plugin, 3.6.0/3.3.0/3.1.1 to 3.6.1, see
https://github.com/apache/maven-dependency-plugin/releases/tag/maven-dependency-plugin-3.6.1
* maven-jar-plugin, 3.3.0 to 3.4.1, see https://github.com/apache/maven-jar-plugin/releases
* maven-javadoc-plugin, 3.6.2 to 3.6.3, see https://github.com/apache/maven-javadoc-plugin/releases
* maven-plugin-plugin, 3.11.0 to 3.12.0, see
https://github.com/apache/maven-plugin-tools/releases/tag/maven-plugin-tools-3.12.0
* maven-shade-pluginm 3.5.2 to 3.5.3
* maven-source-plugin, 3.3.0 to 3.3.1
* maven-surefire-plugin, 3.1.2 to 3.2.5, see https://github.com/apache/maven-surefire/releases
* sortpom-maven-plugin, 3.3.0 to 3.4.1, see https://github.com/Ekryd/sortpom/releases
* spotless-maven-plugin, 2.38.0 to 2.43.0, see
https://github.com/diffplug/spotless/blob/main/plugin-maven/CHANGES.md
* openhab 18n-maven-plugin, 4.0.2 to 4.1.2
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2024-04-27 09:34:39 +02:00
Wouter Born and GitHub
85056d9d7b
Some more code cleanup ( #4021 )
...
This cleanup includes:
* Use enhanced for loops
* Use text blocks
* Use Objects.equals
* Fix some typos
* Remove redundant variable initialization
* Remove redundant null checks with instanceof
* Remove redundant thrown Exceptions
* Remove redundant empty String concatenation
Signed-off-by: Wouter Born <github@maindrain.net >
2024-02-04 11:17:55 +01:00
Wouter Born and GitHub
c757819a15
Fix JavaDoc issues ( #4004 )
...
Fixes various issues including wrong parameter names, references, links and dangling JavaDocs.
Signed-off-by: Wouter Born <github@maindrain.net >
2024-01-04 00:03:48 +01:00
Wouter Born and GitHub
2babea4c9a
Update license headers to 2024 ( #4011 )
...
Signed-off-by: Wouter Born <github@maindrain.net >
2024-01-03 21:20:34 +01:00
Wouter Born and GitHub
6fc7700ea6
Use protected modifier with constructor of abstract classes ( #4010 )
...
Abstract classes should not have public constructors.
Constructors of abstract classes can only be called in constructors of their subclasses.
So there is no point in making them public.
The protected modifier should be enough.
Signed-off-by: Wouter Born <github@maindrain.net >
2024-01-03 16:17:14 +01:00
Wouter Born and GitHub
d162b82206
Fix String.format argument mismatches ( #4008 )
...
These argument mismatches cause wrong messages being logged and thrown in exceptions.
Signed-off-by: Wouter Born <github@maindrain.net >
2024-01-03 13:13:53 +01:00
Wouter Born and GitHub
58a106d36d
Use diamond operator ( #4001 )
...
Often the type can be inferred so the diamond operator can be used to simplify the code.
Signed-off-by: Wouter Born <github@maindrain.net >
2024-01-03 08:22:43 +01:00
Wouter Born and GitHub
896b05e177
Replace or remove assert statements ( #3994 )
...
Java assertions are disabled by default so in this PR they are replaced/removed where applicable.
Signed-off-by: Wouter Born <github@maindrain.net >
2024-01-02 22:21:42 +01:00
Wouter Born and GitHub
041e3b5127
Remove redundant modifiers ( #4000 )
...
Removes redundant modifiers from the code.
These modifiers redeclare the default modifiers that apply to interfaces, enums etc.
Signed-off-by: Wouter Born <github@maindrain.net >
2024-01-02 19:29:29 +01:00
Wouter Born and GitHub
4e76d76088
Remove redundant array creation for calling varargs methods ( #3997 )
...
These array creations are unnecessary because arrays are created automatically for methods using varargs.
Signed-off-by: Wouter Born <github@maindrain.net >
2024-01-02 19:01:34 +01:00
Wouter Born and GitHub
89b67adbd7
Use isEmpty instead of 0 comparisons ( #3999 )
...
`isEmpty()` expresses the intent more clearly and is therefore preferred.
Counting the number of elements can also be an expensive operation e.g. when using linked lists.
Signed-off-by: Wouter Born <github@maindrain.net >
2024-01-02 18:47:36 +01:00
Wouter Born and GitHub
f376606e92
Simplify boolean expressions ( #3971 )
...
Signed-off-by: Wouter Born <github@maindrain.net >
2023-12-28 13:19:01 +01:00
Wouter Born and GitHub
ba5647b871
More code cleanups ( #3975 )
...
While cleaning up the code I found a some more code to cleanup:
* Remove unnecessary boxing
* Use `contains(..)` instead of `indexOf(..) != -1`
* Use `assertInstanceOf` in tests
* Make expensive trace logging conditional
* Remove redundant constructor
* Replace `collect(Collectors.toUnmodifiableList())` with `toList()`
* Replace `filter(..).count() == 0L` with `noneMatch(..)`
* Replace `filter(..).count() > 0` with `anyMatch(..)`
Signed-off-by: Wouter Born <github@maindrain.net >
2023-12-28 13:15:50 +01:00
Wouter Born and GitHub
e958d5b46a
Replace lambdas with method references ( #3972 )
...
Method references are more readable because they refer to class names and usually result in less code.
Signed-off-by: Wouter Born <github@maindrain.net >
2023-12-28 09:55:31 +01:00
Holger Friedrich and GitHub
839ba1ab4c
Apply spotless after release, resolve bundles ( #3953 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2023-12-22 23:14:28 +01:00
openhab-bot
3b279587b1
[unleash-maven-plugin] Preparation for next development cycle.
2023-12-22 11:48:43 +00:00
Holger Friedrich and GitHub
9ad2fef549
Fix javadoc warnings ( #3870 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de >
2023-11-15 09:21:07 +01:00
Wouter Born and GitHub
e8e1c9fe73
Simplify code that creates List, Map and Set objects ( #3836 )
...
Simplifies the code by using List.of, List.copyOf etc. where possible which results in less code and imports.
Signed-off-by: Wouter Born <github@maindrain.net >
2023-10-09 18:00:00 +02:00
Wouter Born and GitHub
09b3160a55
Simplify code using Stream.toList ( #3831 )
...
Stream.toList was introduced in Java 16 and creates an unmodifiable List so it can be used to simplify code whenever the List is not expected to be modified.
Signed-off-by: Wouter Born <github@maindrain.net >
2023-10-09 09:20:08 +02:00