Try to make sonar happy about generated methods

This commit is contained in:
Kai Zimmermann
2016-01-27 11:56:59 +01:00
parent ffacf8cf68
commit b51113af89
7 changed files with 29 additions and 29 deletions

View File

@@ -233,7 +233,7 @@ public class Action extends BaseEntity implements Comparable<Action> {
* checks if the {@link #forcedTime} is hit by the given * checks if the {@link #forcedTime} is hit by the given
* {@code hitTimeMillis}, by means if the given milliseconds are greater * {@code hitTimeMillis}, by means if the given milliseconds are greater
* than the forcedTime. * than the forcedTime.
* *
* @param hitTimeMillis * @param hitTimeMillis
* the milliseconds, mostly the * the milliseconds, mostly the
* {@link System#currentTimeMillis()} * {@link System#currentTimeMillis()}
@@ -274,7 +274,7 @@ public class Action extends BaseEntity implements Comparable<Action> {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#toString() * @see java.lang.Object#toString()
*/ */
@Override @Override
@@ -284,11 +284,11 @@ public class Action extends BaseEntity implements Comparable<Action> {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#hashCode() * @see java.lang.Object#hashCode()
*/ */
@Override @Override
public int hashCode() { public int hashCode() { // NOSONAR - as this is generated
final int prime = 31; final int prime = 31;
int result = super.hashCode(); int result = super.hashCode();
result = prime * result + ((actionType == null) ? 0 : actionType.hashCode()); result = prime * result + ((actionType == null) ? 0 : actionType.hashCode());
@@ -301,12 +301,12 @@ public class Action extends BaseEntity implements Comparable<Action> {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#equals(java.lang.Object) * @see java.lang.Object#equals(java.lang.Object)
*/ */
@Override @Override
public boolean equals(final Object obj) { // NOSONAR - as this is generated public boolean equals(final Object obj) { // NOSONAR - as this is generated
// code
if (this == obj) { if (this == obj) {
return true; return true;
} }
@@ -384,7 +384,7 @@ public class Action extends BaseEntity implements Comparable<Action> {
/** /**
* The action type for this action relation. * The action type for this action relation.
* *
* *
* *
* *

View File

@@ -71,7 +71,7 @@ public class DistributionSetTag extends Tag {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#hashCode() * @see java.lang.Object#hashCode()
*/ */
@Override @Override
@@ -84,11 +84,11 @@ public class DistributionSetTag extends Tag {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#equals(java.lang.Object) * @see java.lang.Object#equals(java.lang.Object)
*/ */
@Override @Override
public boolean equals(final Object obj) { public boolean equals(final Object obj) { // NOSONAR - as this is generated
if (this == obj) { if (this == obj) {
return true; return true;
} }

View File

@@ -129,11 +129,11 @@ public class ExternalArtifact extends Artifact {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#hashCode() * @see java.lang.Object#hashCode()
*/ */
@Override @Override
public int hashCode() { public int hashCode() { // NOSONAR - as this is generated
final int prime = 31; final int prime = 31;
int result = super.hashCode(); int result = super.hashCode();
result = prime * result + this.getClass().getName().hashCode(); result = prime * result + this.getClass().getName().hashCode();
@@ -142,11 +142,11 @@ public class ExternalArtifact extends Artifact {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#equals(java.lang.Object) * @see java.lang.Object#equals(java.lang.Object)
*/ */
@Override @Override
public boolean equals(final Object obj) { public boolean equals(final Object obj) { // NOSONAR - as this is generated
if (this == obj) { if (this == obj) {
return true; return true;
} }

View File

@@ -92,11 +92,11 @@ public class ExternalArtifactProvider extends NamedEntity {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#hashCode() * @see java.lang.Object#hashCode()
*/ */
@Override @Override
public int hashCode() { public int hashCode() { // NOSONAR - as this is generated
final int prime = 31; final int prime = 31;
int result = super.hashCode(); int result = super.hashCode();
result = prime * result + this.getClass().getName().hashCode(); result = prime * result + this.getClass().getName().hashCode();
@@ -105,11 +105,11 @@ public class ExternalArtifactProvider extends NamedEntity {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#equals(java.lang.Object) * @see java.lang.Object#equals(java.lang.Object)
*/ */
@Override @Override
public boolean equals(final Object obj) { public boolean equals(final Object obj) { // NOSONAR - as this is generated
if (this == obj) { if (this == obj) {
return true; return true;
} }

View File

@@ -75,11 +75,11 @@ public class LocalArtifact extends Artifact {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#hashCode() * @see java.lang.Object#hashCode()
*/ */
@Override @Override
public int hashCode() { public int hashCode() { // NOSONAR - as this is generated
final int prime = 31; final int prime = 31;
int result = super.hashCode(); int result = super.hashCode();
result = prime * result + this.getClass().getName().hashCode(); result = prime * result + this.getClass().getName().hashCode();
@@ -88,11 +88,11 @@ public class LocalArtifact extends Artifact {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#equals(java.lang.Object) * @see java.lang.Object#equals(java.lang.Object)
*/ */
@Override @Override
public boolean equals(final Object obj) { public boolean equals(final Object obj) { // NOSONAR - as this is generated
if (this == obj) { if (this == obj) {
return true; return true;
} }

View File

@@ -257,7 +257,7 @@ public class SoftwareModule extends NamedVersionedEntity {
* @see java.lang.Object#hashCode() * @see java.lang.Object#hashCode()
*/ */
@Override @Override
public int hashCode() { public int hashCode() { // NOSONAR - as this is generated
final int prime = 31; final int prime = 31;
int result = super.hashCode(); int result = super.hashCode();
result = prime * result + this.getClass().getName().hashCode(); result = prime * result + this.getClass().getName().hashCode();
@@ -270,7 +270,7 @@ public class SoftwareModule extends NamedVersionedEntity {
* @see java.lang.Object#equals(java.lang.Object) * @see java.lang.Object#equals(java.lang.Object)
*/ */
@Override @Override
public boolean equals(final Object obj) { public boolean equals(final Object obj) { // NOSONAR - as this is generated
if (this == obj) { if (this == obj) {
return true; return true;
} }

View File

@@ -72,7 +72,7 @@ public class CustomFile implements Serializable {
/** /**
* Initialize details. * Initialize details.
* *
* @param fileName * @param fileName
* uploaded file name * uploaded file name
* @param baseSoftwareModuleName * @param baseSoftwareModuleName
@@ -138,7 +138,7 @@ public class CustomFile implements Serializable {
} }
/** /**
* *
* @return the isValid * @return the isValid
*/ */
public Boolean getIsValid() { public Boolean getIsValid() {
@@ -170,11 +170,11 @@ public class CustomFile implements Serializable {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#hashCode() * @see java.lang.Object#hashCode()
*/ */
@Override @Override
public int hashCode() { public int hashCode() { // NOSONAR - as this is generated
final int prime = 31; final int prime = 31;
int result = 1; int result = 1;
result = prime * result + (fileName == null ? 0 : fileName.hashCode()); result = prime * result + (fileName == null ? 0 : fileName.hashCode());
@@ -183,7 +183,7 @@ public class CustomFile implements Serializable {
/* /*
* (non-Javadoc) * (non-Javadoc)
* *
* @see java.lang.Object#equals(java.lang.Object) * @see java.lang.Object#equals(java.lang.Object)
*/ */
@Override @Override