Skip to content

Commit

Permalink
Fixed about 200 style warns.
Browse files Browse the repository at this point in the history
  • Loading branch information
Acarus committed Sep 28, 2016
1 parent 1bc379f commit e9f06cb
Show file tree
Hide file tree
Showing 10 changed files with 468 additions and 206 deletions.

Large diffs are not rendered by default.

Expand Up @@ -40,7 +40,7 @@ protected String getColumnFamilyName() {
return CassandraModelConstants.EP_BY_ACCESS_TOKEN_COLUMN_FAMILY_NAME; return CassandraModelConstants.EP_BY_ACCESS_TOKEN_COLUMN_FAMILY_NAME;
} }


public ByteBuffer findEPIdByAccessToken(String accessToken) { public ByteBuffer findEpIdByAccessToken(String accessToken) {
LOG.debug("Try to find endpoint key hash by access token {}", accessToken); LOG.debug("Try to find endpoint key hash by access token {}", accessToken);
ByteBuffer endpointKeyHash = null; ByteBuffer endpointKeyHash = null;
CassandraEPByAccessToken result = findById(accessToken); CassandraEPByAccessToken result = findById(accessToken);
Expand Down
Expand Up @@ -50,7 +50,8 @@ public final class CassandraEndpointNotification implements EndpointNotification
private Integer seqNum; private Integer seqNum;
@Column(name = CassandraModelConstants.ET_NF_ID_PROPERTY) @Column(name = CassandraModelConstants.ET_NF_ID_PROPERTY)
private String id; private String id;
@Column(name = CassandraModelConstants.ET_NF_NOTIFICATION_TYPE_PROPERTY, codec = NotificationTypeCodec.class) @Column(name = CassandraModelConstants.ET_NF_NOTIFICATION_TYPE_PROPERTY,
codec = NotificationTypeCodec.class)
private NotificationTypeDto type; private NotificationTypeDto type;
@Column(name = CassandraModelConstants.ET_NF_APPLICATION_ID_PROPERTY) @Column(name = CassandraModelConstants.ET_NF_APPLICATION_ID_PROPERTY)
private String applicationId; private String applicationId;
Expand Down Expand Up @@ -201,26 +202,62 @@ public void setTopicId(String topicId) {
} }


@Override @Override
public boolean equals(Object o) { public boolean equals(Object object) {
if (this == o) return true; if (this == object) {
if (o == null || getClass() != o.getClass()) return false; return true;
}

if (object == null || getClass() != object.getClass()) {
return false;
}


CassandraEndpointNotification that = (CassandraEndpointNotification) o; CassandraEndpointNotification that = (CassandraEndpointNotification) object;


if (nfVersion != that.nfVersion) return false; if (nfVersion != that.nfVersion) {
if (applicationId != null ? !applicationId.equals(that.applicationId) : that.applicationId != null)
return false; return false;
if (body != null ? !body.equals(that.body) : that.body != null) return false; }
if (endpointKeyHash != null ? !endpointKeyHash.equals(that.endpointKeyHash) : that.endpointKeyHash != null)
if (applicationId != null
? !applicationId.equals(that.applicationId)
: that.applicationId != null) {
return false; return false;
if (expiredAt != null ? !expiredAt.equals(that.expiredAt) : that.expiredAt != null) }

if (body != null ? !body.equals(that.body) : that.body != null) {
return false; return false;
if (id != null ? !id.equals(that.id) : that.id != null) return false; }
if (lastModifyTime != null ? !lastModifyTime.equals(that.lastModifyTime) : that.lastModifyTime != null)
if (endpointKeyHash != null
? !endpointKeyHash.equals(that.endpointKeyHash)
: that.endpointKeyHash != null) {
return false; return false;
if (schemaId != null ? !schemaId.equals(that.schemaId) : that.schemaId != null) return false; }
if (seqNum != null ? !seqNum.equals(that.seqNum) : that.seqNum != null) return false;
if (type != that.type) return false; if (expiredAt != null ? !expiredAt.equals(that.expiredAt) : that.expiredAt != null) {
return false;
}

if (id != null ? !id.equals(that.id) : that.id != null) {
return false;
}

if (lastModifyTime != null
? !lastModifyTime.equals(that.lastModifyTime)
: that.lastModifyTime != null) {
return false;
}

if (schemaId != null ? !schemaId.equals(that.schemaId) : that.schemaId != null) {
return false;
}

if (seqNum != null ? !seqNum.equals(that.seqNum) : that.seqNum != null) {
return false;
}

if (type != that.type) {
return false;
}


return true; return true;
} }
Expand All @@ -242,18 +279,18 @@ public int hashCode() {


@Override @Override
public String toString() { public String toString() {
return "CassandraEndpointNotification{" + return "CassandraEndpointNotification{"
"endpointKeyHash=" + endpointKeyHash + + "endpointKeyHash=" + endpointKeyHash
", seqNum=" + seqNum + + ", seqNum=" + seqNum
", id='" + id + '\'' + + ", id='" + id + '\''
", type=" + type + + ", type=" + type
", applicationId='" + applicationId + '\'' + + ", applicationId='" + applicationId + '\''
", schemaId='" + schemaId + '\'' + + ", schemaId='" + schemaId + '\''
", nfVersion=" + nfVersion + + ", nfVersion=" + nfVersion
", lastModifyTime=" + lastModifyTime + + ", lastModifyTime=" + lastModifyTime
", body=" + body + + ", body=" + body
", expiredAt=" + expiredAt + + ", expiredAt=" + expiredAt
'}'; + '}';
} }


@Override @Override
Expand Down
Expand Up @@ -375,42 +375,151 @@ public void setVersion(Long version) {
} }


@Override @Override
public boolean equals(Object o) { public boolean equals(Object object) {
if (this == o) return true; if (this == object) {
if (o == null || getClass() != o.getClass()) return false; return true;

}
CassandraEndpointProfile that = (CassandraEndpointProfile) o;

if (object == null || getClass() != object.getClass()) {
if (sequenceNumber != that.sequenceNumber) return false; return false;
if (profileVersion != that.profileVersion) return false; }
if (serverProfileVersion != that.serverProfileVersion) return false;
if (configurationVersion != that.configurationVersion) return false; CassandraEndpointProfile that = (CassandraEndpointProfile) object;
if (notificationVersion != that.notificationVersion) return false;
if (systemNfVersion != that.systemNfVersion) return false; if (sequenceNumber != that.sequenceNumber) {
if (userNfVersion != that.userNfVersion) return false; return false;
if (logSchemaVersion != that.logSchemaVersion) return false; }
if (endpointKeyHash != null ? !endpointKeyHash.equals(that.endpointKeyHash) : that.endpointKeyHash != null) return false;
if (id != null ? !id.equals(that.id) : that.id != null) return false; if (profileVersion != that.profileVersion) {
if (endpointProfileKey != null ? !endpointProfileKey.equals(that.endpointProfileKey) : that.endpointProfileKey != null) return false;
}

if (serverProfileVersion != that.serverProfileVersion) {
return false;
}

if (configurationVersion != that.configurationVersion) {
return false;
}

if (notificationVersion != that.notificationVersion) {
return false;
}

if (systemNfVersion != that.systemNfVersion) {
return false;
}

if (userNfVersion != that.userNfVersion) {
return false;
}

if (logSchemaVersion != that.logSchemaVersion) {
return false;
}

if (endpointKeyHash != null
? !endpointKeyHash.equals(that.endpointKeyHash)
: that.endpointKeyHash != null) {
return false;
}
if (id != null ? !id.equals(that.id) : that.id != null) {
return false;
}

if (endpointProfileKey != null
? !endpointProfileKey.equals(that.endpointProfileKey)
: that.endpointProfileKey != null) {
return false;
}

if (applicationId != null
? !applicationId.equals(that.applicationId)
: that.applicationId != null) {
return false; return false;
if (applicationId != null ? !applicationId.equals(that.applicationId) : that.applicationId != null) return false; }
if (endpointUserId != null ? !endpointUserId.equals(that.endpointUserId) : that.endpointUserId != null) return false;
if (accessToken != null ? !accessToken.equals(that.accessToken) : that.accessToken != null) return false; if (endpointUserId != null
if (groupStates != null ? !groupStates.equals(that.groupStates) : that.groupStates != null) return false; ? !endpointUserId.equals(that.endpointUserId)
if (profile != null ? !profile.equals(that.profile) : that.profile != null) return false; : that.endpointUserId != null) {
if (profileHash != null ? !profileHash.equals(that.profileHash) : that.profileHash != null) return false; return false;
if (configurationHash != null ? !configurationHash.equals(that.configurationHash) : that.configurationHash != null) return false; }
if (userConfigurationHash != null ? !userConfigurationHash.equals(that.userConfigurationHash) : that.userConfigurationHash != null)
if (accessToken != null
? !accessToken.equals(that.accessToken)
: that.accessToken != null) {
return false;
}

if (groupStates != null
? !groupStates.equals(that.groupStates)
: that.groupStates != null) {
return false;
}

if (profile != null
? !profile.equals(that.profile)
: that.profile != null) {
return false;
}

if (profileHash != null
? !profileHash.equals(that.profileHash)
: that.profileHash != null) {
return false;
}

if (configurationHash != null
? !configurationHash.equals(that.configurationHash)
: that.configurationHash != null) {
return false;
}

if (userConfigurationHash != null
? !userConfigurationHash.equals(that.userConfigurationHash)
: that.userConfigurationHash != null) {
return false;
}

if (subscriptions != null
? !subscriptions.equals(that.subscriptions)
: that.subscriptions != null) {
return false;
}

if (topicHash != null
? !topicHash.equals(that.topicHash)
: that.topicHash != null) {
return false; return false;
if (subscriptions != null ? !subscriptions.equals(that.subscriptions) : that.subscriptions != null) return false; }
if (topicHash != null ? !topicHash.equals(that.topicHash) : that.topicHash != null) return false;
if (ecfVersionStates != null ? !ecfVersionStates.equals(that.ecfVersionStates) : that.ecfVersionStates != null) return false; if (ecfVersionStates != null
if (serverHash != null ? !serverHash.equals(that.serverHash) : that.serverHash != null) return false; ? !ecfVersionStates.equals(that.ecfVersionStates)
if (sdkToken != null ? !sdkToken.equals(that.sdkToken) : that.sdkToken != null) return false; : that.ecfVersionStates != null) {
if (useConfigurationRawSchema != null ? !useConfigurationRawSchema.equals(that.useConfigurationRawSchema) : that.useConfigurationRawSchema != null) {
return false; return false;
} }
return serverProfile != null ? serverProfile.equals(that.serverProfile) : that.serverProfile == null;
if (serverHash != null
? !serverHash.equals(that.serverHash)
: that.serverHash != null) {
return false;
}

if (sdkToken != null
? !sdkToken.equals(that.sdkToken)
: that.sdkToken != null) {
return false;
}

if (useConfigurationRawSchema != null
? !useConfigurationRawSchema.equals(that.useConfigurationRawSchema)
: that.useConfigurationRawSchema != null) {
return false;
}

return serverProfile != null
? serverProfile.equals(that.serverProfile)
: that.serverProfile == null;


} }


Expand All @@ -429,7 +538,8 @@ public int hashCode() {
result = 31 * result + profileVersion; result = 31 * result + profileVersion;
result = 31 * result + serverProfileVersion; result = 31 * result + serverProfileVersion;
result = 31 * result + (configurationHash != null ? configurationHash.hashCode() : 0); result = 31 * result + (configurationHash != null ? configurationHash.hashCode() : 0);
result = 31 * result + (userConfigurationHash != null ? userConfigurationHash.hashCode() : 0); result = 31 * result
+ (userConfigurationHash != null ? userConfigurationHash.hashCode() : 0);
result = 31 * result + configurationVersion; result = 31 * result + configurationVersion;
result = 31 * result + notificationVersion; result = 31 * result + notificationVersion;
result = 31 * result + (subscriptions != null ? subscriptions.hashCode() : 0); result = 31 * result + (subscriptions != null ? subscriptions.hashCode() : 0);
Expand All @@ -440,42 +550,43 @@ public int hashCode() {
result = 31 * result + (ecfVersionStates != null ? ecfVersionStates.hashCode() : 0); result = 31 * result + (ecfVersionStates != null ? ecfVersionStates.hashCode() : 0);
result = 31 * result + (serverHash != null ? serverHash.hashCode() : 0); result = 31 * result + (serverHash != null ? serverHash.hashCode() : 0);
result = 31 * result + (sdkToken != null ? sdkToken.hashCode() : 0); result = 31 * result + (sdkToken != null ? sdkToken.hashCode() : 0);
result = 31 * result + (useConfigurationRawSchema != null ? useConfigurationRawSchema.hashCode() : 0); result = 31 * result
+ (useConfigurationRawSchema != null ? useConfigurationRawSchema.hashCode() : 0);
result = 31 * result + (serverProfile != null ? serverProfile.hashCode() : 0); result = 31 * result + (serverProfile != null ? serverProfile.hashCode() : 0);
return result; return result;
} }


@Override @Override
public String toString() { public String toString() {
return "CassandraEndpointProfile{" + return "CassandraEndpointProfile{"
"endpointKeyHash=" + endpointKeyHash + + "endpointKeyHash=" + endpointKeyHash
", id='" + id + '\'' + + ", id='" + id + '\''
", endpointProfileKey=" + endpointProfileKey + + ", endpointProfileKey=" + endpointProfileKey
", applicationId='" + applicationId + '\'' + + ", applicationId='" + applicationId + '\''
", endpointUserId='" + endpointUserId + '\'' + + ", endpointUserId='" + endpointUserId + '\''
", accessToken='" + accessToken + '\'' + + ", accessToken='" + accessToken + '\''
", groupStates=" + groupStates + + ", groupStates=" + groupStates
", sequenceNumber=" + sequenceNumber + + ", sequenceNumber=" + sequenceNumber
", profile='" + profile + '\'' + + ", profile='" + profile + '\''
", profileHash=" + profileHash + + ", profileHash=" + profileHash
", profileVersion=" + profileVersion + + ", profileVersion=" + profileVersion
", serverProfileVersion=" + serverProfileVersion + + ", serverProfileVersion=" + serverProfileVersion
", configurationHash=" + configurationHash + + ", configurationHash=" + configurationHash
", userConfigurationHash=" + userConfigurationHash + + ", userConfigurationHash=" + userConfigurationHash
", configurationVersion=" + configurationVersion + + ", configurationVersion=" + configurationVersion
", notificationVersion=" + notificationVersion + + ", notificationVersion=" + notificationVersion
", subscriptions=" + subscriptions + + ", subscriptions=" + subscriptions
", topicHash=" + topicHash + + ", topicHash=" + topicHash
", simpleTopicHash=" + simpleTopicHash + + ", simpleTopicHash=" + simpleTopicHash
", systemNfVersion=" + systemNfVersion + + ", systemNfVersion=" + systemNfVersion
", userNfVersion=" + userNfVersion + + ", userNfVersion=" + userNfVersion
", logSchemaVersion=" + logSchemaVersion + + ", logSchemaVersion=" + logSchemaVersion
", ecfVersionStates=" + ecfVersionStates + + ", ecfVersionStates=" + ecfVersionStates
", serverHash='" + serverHash + '\'' + + ", serverHash='" + serverHash + '\''
", sdkToken='" + sdkToken + '\'' + + ", sdkToken='" + sdkToken + '\''
", useRawSchema=" + useConfigurationRawSchema + + ", useRawSchema=" + useConfigurationRawSchema
", serverProfile='" + serverProfile + '\'' + + ", serverProfile='" + serverProfile + '\''
'}'; + '}';
} }


@Override @Override
Expand Down

0 comments on commit e9f06cb

Please sign in to comment.