Sonar issues fixed

Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
This commit is contained in:
Dominic Schabel
2019-05-23 19:48:34 +02:00
parent e5c4b7ff2e
commit c88e7bb06e
5 changed files with 9 additions and 9 deletions

View File

@@ -63,8 +63,8 @@ public final class DsMetadataCompositeKey implements Serializable {
}
@Override
public boolean equals(final Object obj) { // NOSONAR - as this is generated
// code
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}

View File

@@ -79,8 +79,8 @@ public final class SwMetadataCompositeKey implements Serializable {
}
@Override
public boolean equals(final Object obj) { // NOSONAR - as this is generated
// code
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}

View File

@@ -35,7 +35,7 @@ public enum SortDirection {
public static SortDirection getByName(final String name) {
try {
return valueOf(name.toUpperCase());
} catch (final IllegalArgumentException ex) {// NOSONAR
} catch (final IllegalArgumentException ex) {
throw new SortParameterUnsupportedDirectionException();
}
}

View File

@@ -26,7 +26,7 @@ public final class HeaderAuthentication {
}
@Override
public int hashCode() {// NOSONAR - as this is generated
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((controllerId == null) ? 0 : controllerId.hashCode());
@@ -35,7 +35,7 @@ public final class HeaderAuthentication {
}
@Override
public boolean equals(final Object obj) {// NOSONAR - as this is generated
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}

View File

@@ -61,7 +61,7 @@ public class SoftwareModuleIdName implements Serializable {
}
@Override
public int hashCode() {// NOSONAR - as this is generated
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + (id == null ? 0 : id.hashCode());
@@ -69,7 +69,7 @@ public class SoftwareModuleIdName implements Serializable {
}
@Override
public boolean equals(final Object obj) {// NOSONAR - as this is generated
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}