Skip to content

Commit 151e64f

Browse files
RANGER-5061: checkstyle compliance updates - security-admin org.apache.ranger.entity package
1 parent 5b9c39e commit 151e64f

File tree

99 files changed

+1817
-974
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1817
-974
lines changed

security-admin/src/main/java/org/apache/ranger/entity/XXAccessAudit.java

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class XXAccessAudit extends XXAccessAuditBase implements java.io.Serializ
4040

4141
//event duration in ms
4242
@Column(name = "EVENT_DUR_MS")
43-
protected long eventDuration;
43+
protected long eventDuration;
4444
@Column(name = "tags")
4545
protected String tags;
4646

@@ -82,22 +82,14 @@ public void setTags(String tags) {
8282
this.tags = tags;
8383
}
8484

85-
/**
86-
* This return the bean content in string format
87-
* @return formatedStr
88-
*/
8985
@Override
90-
public String toString() {
91-
String str = super.toString();
92-
str += "sequenceNumber={" + sequenceNumber + "}";
93-
str += "eventCount={" + eventCount + "}";
94-
str += "eventDuration={" + eventDuration + "}";
95-
str += "tags={" + tags + "}";
96-
return str;
86+
public int hashCode() {
87+
return super.hashCode();
9788
}
9889

9990
/**
10091
* Checks for all attributes except referenced db objects
92+
*
10193
* @return true if all attributes match
10294
*/
10395
@Override
@@ -108,4 +100,19 @@ public boolean equals(Object obj) {
108100
XXAccessAudit other = (XXAccessAudit) obj;
109101
return (this.tags != null || other.tags == null) && (this.tags == null || this.tags.equals(other.tags));
110102
}
103+
104+
/**
105+
* This return the bean content in string format
106+
*
107+
* @return formatedStr
108+
*/
109+
@Override
110+
public String toString() {
111+
String str = super.toString();
112+
str += "sequenceNumber={" + sequenceNumber + "}";
113+
str += "eventCount={" + eventCount + "}";
114+
str += "eventDuration={" + eventDuration + "}";
115+
str += "tags={" + tags + "}";
116+
return str;
117+
}
111118
}

0 commit comments

Comments
 (0)