Skip to content

Commit

Permalink
RANGER-5061: checkstyle compliance updates - security-admin org.apach…
Browse files Browse the repository at this point in the history
…e.ranger.entity package
  • Loading branch information
pradeepagrawal8184 committed Jan 11, 2025
1 parent 5debc29 commit d2f0e96
Show file tree
Hide file tree
Showing 99 changed files with 1,817 additions and 974 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class XXAccessAudit extends XXAccessAuditBase implements java.io.Serializ

//event duration in ms
@Column(name = "EVENT_DUR_MS")
protected long eventDuration;
protected long eventDuration;
@Column(name = "tags")
protected String tags;

Expand Down Expand Up @@ -82,22 +82,14 @@ public void setTags(String tags) {
this.tags = tags;
}

/**
* This return the bean content in string format
* @return formatedStr
*/
@Override
public String toString() {
String str = super.toString();
str += "sequenceNumber={" + sequenceNumber + "}";
str += "eventCount={" + eventCount + "}";
str += "eventDuration={" + eventDuration + "}";
str += "tags={" + tags + "}";
return str;
public int hashCode() {
return super.hashCode();
}

/**
* Checks for all attributes except referenced db objects
*
* @return true if all attributes match
*/
@Override
Expand All @@ -108,4 +100,19 @@ public boolean equals(Object obj) {
XXAccessAudit other = (XXAccessAudit) obj;
return (this.tags != null || other.tags == null) && (this.tags == null || this.tags.equals(other.tags));
}

/**
* This return the bean content in string format
*
* @return formatedStr
*/
@Override
public String toString() {
String str = super.toString();
str += "sequenceNumber={" + sequenceNumber + "}";
str += "eventCount={" + eventCount + "}";
str += "eventDuration={" + eventDuration + "}";
str += "tags={" + tags + "}";
return str;
}
}
Loading

0 comments on commit d2f0e96

Please sign in to comment.