openhab-bot
942929973d
New Crowdin updates ( #4138 )
...
* New translations addons.properties (French)
* New translations addons.properties (Finnish)
* New translations addons.properties (Hebrew)
* New translations units.properties (Finnish)
* New translations scriptprofile.properties (Hebrew)
* New translations units.properties (Hebrew)
* New translations addons.properties (Polish)
* New translations voice.properties (Polish)
* New translations units.properties (Polish)
* New translations addons.properties (Russian)
* New translations marketplace.properties (Russian)
* New translations units.properties (Russian)
* New translations addons.properties (Ukrainian)
* New translations validation.properties (Danish)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations addons.properties (Danish)
* New translations scriptprofile.properties (Italian)
2024-03-10 09:41:35 +01:00
Wouter Born
f4e83693fb
Simplify Map operations using computeIfAbsent ( #4020 )
...
If the specified key is not already associated with a value (or is mapped to null), the given mapping function computes the value.
Signed-off-by: Wouter Born <github@maindrain.net>
2024-02-06 20:34:05 +01:00
Wouter Born
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
c2a0739f1f
Fix several compiler warnings ( #4041 )
...
* Fix several compiler warnings
* Add missing null annotations
* Add missing null checks
* Remove use of deprecated SecurityManager
* Remove redundant null checks
* Remove unused variables
* Fix raw use of parameterized class
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-20 09:55:50 +01:00
Wouter Born
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
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
81a91ee9ae
Simplify adding elements to Collections ( #4006 )
...
* Simplify adding elements to Collections
This optimizes and simplifies the code that adds elements to Collections.
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 14:51:33 +01:00
Wouter Born
afd1d4726c
Iterate using Map entries ( #4003 )
...
* Iterate using Map entries
Iteration using Map entries is preferred because it is more efficient and helps preventing NPEs.
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 14:50:50 +01:00
Wouter Born
106c8b2270
Remove unnecessary semicolons ( #4009 )
...
This helps with stopping the proliferation of unnecessary semicolons.
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 13:47:23 +01:00
Wouter Born
26a958cd4d
Use static inner classes ( #4002 )
...
A static inner class does not keep an implicit reference to its enclosing instance.
This prevents a common cause of memory leaks and uses less memory per instance of the class.
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 12:35:26 +01:00
Wouter Born
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
7d1dcd7937
Add network-interface context ( #3981 )
...
This allows for selecting network interface names in configuration parameters.
Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-31 22:17:10 +01:00
Wouter Born
f376606e92
Simplify boolean expressions ( #3971 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-28 13:19:01 +01:00
Wouter Born
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
Wouter Born
b08a01c93f
Remove unnecessary parenthesis from lambdas ( #3968 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-27 17:52:13 +01:00
Holger Friedrich
bada23fdb8
Minor code cleanup ( #3942 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-23 12:54:29 +01:00
Holger Friedrich
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
24b1784d44
Reduce SAT warnings ( #3932 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-19 20:37:57 +01:00
J-N-K
c8a6cf2603
[UoM] Add currency handling ( #3503 )
...
* Add currency as unit
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-12-16 11:18:25 +01:00
Andrew Fiddian-Green
cc9b70516a
AddonInfo extensions ( #3865 )
...
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2023-12-05 16:49:31 +01:00
Holger Friedrich
9ad2fef549
Fix javadoc warnings ( #3870 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-11-15 09:21:07 +01:00
Wouter Born
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
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
Wouter Born
c39d15ade6
Cleanup code ( #3787 )
...
This code cleanup fixes various warnings in Eclipse.
Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-30 22:50:17 +02:00
Kai Kreuzer
5692232e2b
Apply spotless
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-07-24 01:11:37 +02:00
openhab-bot
fd93f0a766
[unleash-maven-plugin] Preparation for next development cycle.
2023-07-23 17:14:35 +00:00
openhab-bot
fb4f45e3e2
New Crowdin updates ( #3653 )
...
* New translations scriptprofile.properties (Hungarian)
* New translations validation.properties (Hungarian)
* New translations automation.properties (Hungarian)
* New translations lsp.properties (German)
* New translations persistence.properties (German)
2023-07-11 18:47:44 +02:00
openhab-bot
5550ea79b2
New Crowdin updates ( #3639 )
...
* New translations audio.properties (Romanian)
* New translations addons.properties (Romanian)
* New translations i18n.properties (Romanian)
* New translations network.properties (Romanian)
* New translations marketplace.properties (Romanian)
* New translations validation.properties (Finnish)
* New translations scriptprofile.properties (French)
* New translations scriptprofile.properties (Slovenian)
* New translations validation.properties (Hebrew)
* New translations validation.properties (Polish)
* New translations validation.properties (Slovenian)
* New translations hli.properties (French)
* New translations hli.properties (Polish)
* New translations automation.properties (Hebrew)
* New translations automation.properties (Polish)
2023-05-29 14:26:59 +02:00
openhab-bot
08924232fc
New Crowdin updates ( #3589 )
...
* New translations DefaultSystemChannels.properties (Greek)
* New translations restauth.properties (Greek)
* New translations voice.properties (Greek)
* New translations scriptprofile.properties (Greek)
* New translations i18n.properties (Greek)
* New translations validation.properties (Italian)
* New translations validation.properties (French)
---------
Signed-off-by: J-N-K <github@klug.nrw>
Co-authored-by: J-N-K <github@klug.nrw>
2023-05-13 17:54:26 +02:00
J-N-K
960cf0c179
Improve thing updates ( #3576 )
...
* Improve thing updates
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-05-07 20:46:42 +02:00
Wouter Born
3c6d855d4b
Remove redundant public and abstract modifiers from interfaces ( #3560 )
...
* Remove redundant public modifiers from interfaces
* Remove redundant abstract modifiers from interfaces
Signed-off-by: Wouter Born <github@maindrain.net>
2023-04-20 20:22:58 +02:00
Holger Friedrich
769aa562a1
Code cleanup: Use Java 17 features ( #3522 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-04-16 21:43:59 +02:00
openhab-bot
ae895790ac
New Crowdin updates ( #3475 )
...
* New translations automation.properties (Hebrew)
* New translations validation.properties (German)
* New translations validation.properties (Hebrew)
* New translations scriptprofile.properties (German)
* New translations scriptprofile.properties (Finnish)
* New translations scriptprofile.properties (Hebrew)
* New translations scriptprofile.properties (Polish)
2023-03-23 20:51:43 +01:00
J-N-K
9289fd5a78
Bump spotless and fix formatting ( #3469 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-20 23:14:59 +01:00
openhab-bot
07ffc11c87
New Crowdin updates ( #3438 )
...
* New translations automation.properties (Polish)
* New translations automation.properties (Slovenian)
* New translations DefaultSystemChannels.properties (Slovenian)
* New translations LanguageSupport.properties (Portuguese, Brazilian)
* New translations magic.properties (Slovenian)
* New translations restauth.properties (Norwegian)
* New translations restauth.properties (Slovenian)
* New translations validation.properties (Norwegian)
* New translations validation.properties (Polish)
* New translations validation.properties (Slovenian)
* New translations voice.properties (Norwegian)
* New translations voice.properties (Slovenian)
2023-03-08 22:09:07 +01:00
openhab-bot
ccef3d24ff
New Crowdin updates ( #3395 )
...
* New translations DefaultSystemChannels.properties (Czech)
* New translations addons.properties (Czech)
* New translations marketplace.properties (Czech)
* New translations restauth.properties (Czech)
* New translations voice.properties (Czech)
* New translations validation.properties (Czech)
2023-02-24 20:25:02 +01:00
J-N-K
dff6f9b984
Refactor XML handling ( #3385 )
...
* Refactor XML handling for things
* integrate config.xml and improve naming
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-23 20:06:29 +01:00
openhab-bot
0da4a226f1
New Crowdin updates ( #3381 )
...
* New translations validation.properties (Italian)
* New translations automation.properties (Hungarian)
* New translations automation.properties (Italian)
2023-02-19 11:45:13 +01:00
openhab-bot
ff063b93b2
New translations validation.properties (Hungarian) ( #3374 )
2023-02-17 06:57:16 +01:00
J-N-K
d7fa5534bf
Refactor ThingManagerImpl ( #3330 )
...
* Refactor ThingManagerImpl
This
- moves config description URI to type-base class
- decouples the thing manager from bundle loading
- makes sure that all thing/channel-types and config descriptions are available when the thing is initialized
- enables thing type updates
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-15 22:03:59 +01:00
J-N-K
8d64ecfd8d
Update license header to 2023 ( #3294 )
...
* Update license header to 2023
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-03 09:45:42 +01:00
Wouter Born
687688db7e
Update Eclipse .classpath files ( #3250 )
...
Also adds some missing files for recently added projects.
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-22 14:14:35 +01:00
J-N-K
3fc4d23734
Fix spotless and resolve itests ( #3239 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 11:09:31 +01:00
openhab-bot
35254b3a0a
[unleash-maven-plugin] Preparation for next development cycle.
2022-12-18 23:08:22 +00:00
Дилян Палаузов
e556fdf81b
Fix a/an typos ( #3181 )
...
* Typos a/an
* Fix typo generation in generateTagClasses.groovy
Signed-off-by: Wouter Born <github@maindrain.net>
2022-11-29 20:57:48 +01:00
openhab-bot
584e36898a
New translations validation.properties (Luxembourgish) ( #3074 )
2022-09-03 19:55:46 +02:00
openhab-bot
c4f0ab44df
New Crowdin updates ( #3054 )
...
* New translations units.properties (Portuguese)
* New translations units.properties (Portuguese, Brazilian)
* New translations firmware.properties (Slovenian)
* New translations units.properties (Slovenian)
* New translations validation.properties (Slovenian)
* New translations messages.properties (Slovenian)
* New translations tags.properties (Danish)
* New translations tags.properties (Slovenian)
* New translations DefaultSystemChannels.properties (Slovenian)
* New translations LanguageSupport.properties (Slovenian)
* New translations SystemProfiles.properties (Slovenian)
* New translations jsonStorage.properties (Slovenian)
* New translations network.properties (Slovenian)
* New translations i18n.properties (Slovenian)
* New translations voice.properties (Slovenian)
* New translations chart.properties (Slovenian)
* New translations persistence.properties (Slovenian)
* New translations addons.properties (Slovenian)
* New translations restauth.properties (Slovenian)
* New translations ephemeris.properties (Slovenian)
* New translations inbox.properties (Slovenian)
* New translations audio.properties (Slovenian)
* New translations hli.properties (Slovenian)
* New translations lsp.properties (Slovenian)
* New translations marketplace.properties (Slovenian)
* New translations sitemap.properties (Slovenian)
* New translations SystemThingStatusInfos.properties (Slovenian)
* New translations magic.properties (Slovenian)
* New translations automation.properties (Hebrew)
* New translations automation.properties (Slovenian)
2022-08-03 18:03:28 +02:00
openhab-bot
d92a2c6945
New Crowdin updates ( #3028 )
...
* New translations units.properties (Portuguese)
* New translations DefaultSystemChannels.properties (Norwegian)
* New translations tags.properties (Norwegian)
* New translations SystemProfiles.properties (Norwegian)
* New translations audio.properties (Norwegian)
* New translations voice.properties (Norwegian)
* New translations ephemeris.properties (Norwegian)
* New translations inbox.properties (Norwegian)
* New translations restauth.properties (Norwegian)
* New translations addons.properties (Norwegian)
* New translations persistence.properties (Norwegian)
* New translations jsonStorage.properties (Norwegian)
* New translations chart.properties (Norwegian)
* New translations i18n.properties (Norwegian)
* New translations network.properties (Norwegian)
* New translations lsp.properties (Norwegian)
* New translations sitemap.properties (Norwegian)
* New translations hli.properties (Norwegian)
* New translations marketplace.properties (Norwegian)
* New translations magic.properties (Norwegian)
* New translations validation.properties (Norwegian)
* New translations SystemThingStatusInfos.properties (Norwegian)
* New translations units.properties (Portuguese, Brazilian)
2022-07-04 15:31:54 +02:00
Kai Kreuzer
61fd47c853
Apply spotless and resolver ( #3018 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-06-27 13:41:28 +02:00