You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Andrew Gaul <no...@github.com> on 2013/09/03 18:24:47 UTC

[jclouds] Enable some Xlint warning (#140)

Also address a handful of warnings.
You can merge this Pull Request by running:

  git pull https://github.com/maginatics/jclouds xlint

Or you can view, comment on it, or merge it online at:

  https://github.com/jclouds/jclouds/pull/140

-- Commit Summary --

  * Enable some Xlint warning

-- File Changes --

    M apis/cloudsigma/src/main/java/org/jclouds/cloudsigma/domain/SCSIDevice.java (2)
    M apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/AsyncJob.java (4)
    M apis/elasticstack/src/main/java/org/jclouds/elasticstack/domain/SCSIDevice.java (2)
    M core/src/main/java/org/jclouds/rest/AnonymousRestApiMetadata.java (1)
    M core/src/main/java/org/jclouds/rest/internal/BaseRestApiMetadata.java (1)
    M project/pom.xml (9)
    M providers/aws-s3/src/main/java/org/jclouds/aws/s3/AWSS3AsyncClient.java (1)
    M providers/ultradns-ws/src/main/java/org/jclouds/ultradns/ws/handlers/UltraDNSWSErrorHandler.java (1)

-- Patch Links --

https://github.com/jclouds/jclouds/pull/140.patch
https://github.com/jclouds/jclouds/pull/140.diff


Re: [jclouds] Enable some Xlint warning (#140)

Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-pull-requests #196](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests/196/) SUCCESS
This pull request looks good

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/140#issuecomment-23730491

Re: [jclouds] Enable some Xlint warning (#140)

Posted by Andrew Phillips <no...@github.com>.
> @@ -64,8 +64,6 @@ public boolean equals(Object obj) {
>        if (getClass() != obj.getClass())
>           return false;
>        SCSIDevice other = (SCSIDevice) obj;
> -      if (bus != other.bus)
> -         return false;

Ah, I guess because there's no setter or other way to change the value, so it's effectively hard-coded. I suspect that may have been a bug, and that the builder should probably allow `bus` to be set, even if that's never used in the code..?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/140/files#r6173080

Re: [jclouds] Enable some Xlint warning (#140)

Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-java-7-pull-requests #657](https://jclouds.ci.cloudbees.com/job/jclouds-java-7-pull-requests/657/) SUCCESS
This pull request looks good

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/140#issuecomment-23730573

Re: [jclouds] Enable some Xlint warning (#140)

Posted by Andrew Gaul <no...@github.com>.
> @@ -64,8 +64,6 @@ public boolean equals(Object obj) {
>        if (getClass() != obj.getClass())
>           return false;
>        SCSIDevice other = (SCSIDevice) obj;
> -      if (bus != other.bus)
> -         return false;

I believe I changed it to static to satisfy FindBugs.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/140/files#r6173048

Re: [jclouds] Enable some Xlint warning (#140)

Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-pull-requests #195](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests/195/) SUCCESS
This pull request looks good

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/140#issuecomment-23729854

Re: [jclouds] Enable some Xlint warning (#140)

Posted by Andrew Phillips <no...@github.com>.
> @@ -64,8 +64,6 @@ public boolean equals(Object obj) {
>        if (getClass() != obj.getClass())
>           return false;
>        SCSIDevice other = (SCSIDevice) obj;
> -      if (bus != other.bus)
> -         return false;

> Most likely some TODO

Agreed. Do you think it's worth adding? Or simply ignore for now? I'm fine with either...

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/140/files#r6173464

Re: [jclouds] Enable some Xlint warning (#140)

Posted by Andrew Phillips <no...@github.com>.
> @@ -64,8 +64,6 @@ public boolean equals(Object obj) {
>        if (getClass() != obj.getClass())
>           return false;
>        SCSIDevice other = (SCSIDevice) obj;
> -      if (bus != other.bus)
> -         return false;

PS: Tried to find a reference in the CloudSigma docs, but a superficial search didn't turn up anything obviously relevant :-(

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/140/files#r6173098

Re: [jclouds] Enable some Xlint warning (#140)

Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-java-7-pull-requests #656](https://jclouds.ci.cloudbees.com/job/jclouds-java-7-pull-requests/656/) SUCCESS
This pull request looks good

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/140#issuecomment-23730477

Re: [jclouds] Enable some Xlint warning (#140)

Posted by Andrew Phillips <no...@github.com>.
> @@ -64,8 +64,6 @@ public boolean equals(Object obj) {
>        if (getClass() != obj.getClass())
>           return false;
>        SCSIDevice other = (SCSIDevice) obj;
> -      if (bus != other.bus)
> -         return false;

I assume this is being removed because `bus` is static. Should it be static?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/140/files#r6172892

Re: [jclouds] Enable some Xlint warning (#140)

Posted by Andrew Gaul <no...@github.com>.
> @@ -64,8 +64,6 @@ public boolean equals(Object obj) {
>        if (getClass() != obj.getClass())
>           return false;
>        SCSIDevice other = (SCSIDevice) obj;
> -      if (bus != other.bus)
> -         return false;

Most likely some TODO, although I do not have familiarity with compute code.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/140/files#r6173094