Code Review
/
clamp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix Checkstyle issues
[clamp.git]
/
src
/
main
/
java
/
org
/
onap
/
clamp
/
clds
/
model
/
sdc
/
SdcResource.java
diff --git
a/src/main/java/org/onap/clamp/clds/model/sdc/SdcResource.java
b/src/main/java/org/onap/clamp/clds/model/sdc/SdcResource.java
index
2474da0
..
515e77d
100644
(file)
--- a/
src/main/java/org/onap/clamp/clds/model/sdc/SdcResource.java
+++ b/
src/main/java/org/onap/clamp/clds/model/sdc/SdcResource.java
@@
-126,31
+126,38
@@
public class SdcResource implements Comparable<SdcResource> {
@Override
public boolean equals(Object obj) {
@Override
public boolean equals(Object obj) {
- if (this == obj)
+ if (this == obj)
{
return true;
return true;
- if (obj == null)
+ }
+ if (obj == null) {
return false;
return false;
- if (getClass() != obj.getClass())
+ }
+ if (getClass() != obj.getClass()) {
return false;
return false;
+ }
SdcResource other = (SdcResource) obj;
if (resourceInstanceName == null) {
SdcResource other = (SdcResource) obj;
if (resourceInstanceName == null) {
- if (other.resourceInstanceName != null)
+ if (other.resourceInstanceName != null)
{
return false;
return false;
- } else if (!resourceInstanceName.equals(other.resourceInstanceName))
+ }
+ } else if (!resourceInstanceName.equals(other.resourceInstanceName)) {
return false;
return false;
+ }
if (resourceVersion == null) {
if (resourceVersion == null) {
- if (other.resourceVersion != null)
+ if (other.resourceVersion != null)
{
return false;
return false;
- } else if (!resourceVersion.equals(other.resourceVersion))
+ }
+ } else if (!resourceVersion.equals(other.resourceVersion)) {
return false;
return false;
+ }
return true;
}
/**
return true;
}
/**
- * Convert version String into a BigDecimal
+ * Convert version String into a BigDecimal
.
*
*
- * @param versionText
- * @return
+ * @param versionText
version
+ * @return
version in BigDecimal
*/
private BigDecimal convertVersion(String versionText) {
BigDecimal rtn = BigDecimal.valueOf(0.0);
*/
private BigDecimal convertVersion(String versionText) {
BigDecimal rtn = BigDecimal.valueOf(0.0);