Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework more commons-lang usages #10314

Merged
merged 2 commits into from
Mar 16, 2021
Merged

Rework more commons-lang usages #10314

merged 2 commits into from
Mar 16, 2021

Conversation

wborn
Copy link
Member

@wborn wborn commented Mar 12, 2021

  • Reworks many commons-lang usages to use standard Java
  • Updates all remaining commons.lang imports to commons.lang3

Related to #7722

@hmerk
Copy link
Contributor

hmerk commented Mar 12, 2021

Why did you make changes to the Wemo binding, there is already a PR for removing apache.commons completely.
We only need to fix the tests, but this is not easy for me, as I did not write those.

@wborn
Copy link
Member Author

wborn commented Mar 12, 2021

That's a good thing @hmerk! I can not remember the details of all PRs. 😉

@bobadair
Copy link
Member

LGTM for the Lutron binding.

Copy link
Contributor

@mhilbush mhilbush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the following bindings: ambientweather, bigassfan, ecobee, globalcache, weathercompany

Thanks for doing this!

Copy link
Member

@druciak druciak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have you done changes to Satel binding? It had already removed all commons dependencies.

Copy link
Member

@druciak druciak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Satel binding looks good

@wborn
Copy link
Member Author

wborn commented Mar 13, 2021

It showed up in my search for StringUtils usages @druciak. When bindings like Satel prevent null values and use null annotations all those redundant null checks can be skipped and there shouldn't be much use for isEmpty, isBlank etc. provided by utility classes similar to the commons-lang StringUtils.

Copy link
Contributor

@mherwege mherwege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the upnpcontrol binding.

wborn added 2 commits March 15, 2021 00:28
* Reworks many commons-lang usages to use standard Java
* Updates all remaining commons.lang imports to commons.lang3

Related to openhab#7722

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Wouter Born <github@maindrain.net>
@wborn wborn force-pushed the rework-commons-lang branch from 69dc29d to 2bfe5b7 Compare March 14, 2021 23:28
@marcelrv
Copy link
Contributor

LGTM for max binding

@wborn wborn merged commit f350343 into openhab:main Mar 16, 2021
@wborn wborn deleted the rework-commons-lang branch March 16, 2021 11:38
@wborn wborn added this to the 3.1 milestone Mar 21, 2021
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this pull request May 10, 2021
* Reworks many commons-lang usages to use standard Java
* Updates all remaining commons.lang imports to commons.lang3

Related to openhab#7722

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: John Marshall <john.marshall.au@gmail.com>
computergeek1507 pushed a commit to computergeek1507/openhab-addons that referenced this pull request Jul 13, 2021
* Reworks many commons-lang usages to use standard Java
* Updates all remaining commons.lang imports to commons.lang3

Related to openhab#7722

Signed-off-by: Wouter Born <github@maindrain.net>
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
* Reworks many commons-lang usages to use standard Java
* Updates all remaining commons.lang imports to commons.lang3

Related to openhab#7722

Signed-off-by: Wouter Born <github@maindrain.net>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
* Reworks many commons-lang usages to use standard Java
* Updates all remaining commons.lang imports to commons.lang3

Related to openhab#7722

Signed-off-by: Wouter Born <github@maindrain.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants