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

[hue] Reduce the number of warnings #8015

Merged
merged 3 commits into from
Jul 7, 2020
Merged

Conversation

lolodomo
Copy link
Contributor

@lolodomo lolodomo commented Jun 26, 2020

Signed-off-by: Laurent Garnier [email protected]

@lolodomo lolodomo requested a review from cweitkamp as a code owner June 26, 2020 12:27
Copy link
Contributor

@DerOetzi DerOetzi left a comment

Choose a reason for hiding this comment

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

Just some small suggestions.

@@ -42,6 +42,7 @@ public void setIpAddress(String ipAddress) {
}

public int getPort() {
Integer port = this.port;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe better to use localPort or checkPort or something to avoid "hidding" of class member.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed thePort

if (scheduledFuture != null) {
scheduledFuture.cancel(true);
scheduledFuture = null;
this.scheduledFuture = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

In my opinion renaming the local variable would be a better pattern instead of using this operator?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

if (scheduledFuture != null) {
scheduledFuture.cancel(true);
scheduledFuture = null;
this.scheduledFuture = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

See above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

lolodomo added 2 commits June 27, 2020 08:48
Signed-off-by: Laurent Garnier <[email protected]>
Signed-off-by: Laurent Garnier <[email protected]>
@lolodomo
Copy link
Contributor Author

lolodomo commented Jul 1, 2020

@DerOetzi : as you reviewed and requested changes and as I handle them, can you please now approve this PR?

@DerOetzi
Copy link
Contributor

DerOetzi commented Jul 1, 2020

LGTM

@lolodomo
Copy link
Contributor Author

lolodomo commented Jul 7, 2020

@openhab/add-ons-maintainers : could you please review and merge this small PR ?

Copy link
Contributor

@cpmeister cpmeister left a comment

Choose a reason for hiding this comment

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

LGTM

@cpmeister cpmeister merged commit dc3e832 into openhab:2.5.x Jul 7, 2020
@cpmeister cpmeister added this to the 2.5.7 milestone Jul 7, 2020
@lolodomo lolodomo deleted the hue_nullchecks branch July 7, 2020 20:03
@lolodomo
Copy link
Contributor Author

lolodomo commented Jul 7, 2020

Thank you

knikhilwiz pushed a commit to knikhilwiz/openhab2-addons that referenced this pull request Jul 12, 2020
* Review comments considered
* Last minor change

Signed-off-by: Laurent Garnier <[email protected]>
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this pull request Jul 26, 2020
* Review comments considered
* Last minor change

Signed-off-by: Laurent Garnier <[email protected]>
Signed-off-by: CSchlipp <[email protected]>
MPH80 pushed a commit to MPH80/openhab-addons that referenced this pull request Aug 3, 2020
* Review comments considered
* Last minor change

Signed-off-by: Laurent Garnier <[email protected]>
Signed-off-by: MPH80 <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* Review comments considered
* Last minor change

Signed-off-by: Laurent Garnier <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* Review comments considered
* Last minor change

Signed-off-by: Laurent Garnier <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* Review comments considered
* Last minor change

Signed-off-by: Laurent Garnier <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* Review comments considered
* Last minor change

Signed-off-by: Laurent Garnier <[email protected]>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this pull request Sep 1, 2020
* Review comments considered
* Last minor change

Signed-off-by: Laurent Garnier <[email protected]>
Signed-off-by: Daan Meijer <[email protected]>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request Sep 19, 2020
* Review comments considered
* Last minor change

Signed-off-by: Laurent Garnier <[email protected]>
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.

3 participants