Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix warnings/javadocs in sal-distributed-datastore
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
identifiers
/
ShardIdentifier.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/identifiers/ShardIdentifier.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/identifiers/ShardIdentifier.java
index fc3aa592f97ce44063149d449e320073d330c8ed..e8824fbe11b1378774b644310d3878414b17d5a5 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/identifiers/ShardIdentifier.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/identifiers/ShardIdentifier.java
@@
-43,15
+43,15
@@
public class ShardIdentifier {
}
@Override
}
@Override
- public boolean equals(Object o) {
- if (this == o) {
+ public boolean equals(Object o
bj
) {
+ if (this == o
bj
) {
return true;
}
return true;
}
- if (o
== null || getClass() != o
.getClass()) {
+ if (o
bj == null || getClass() != obj
.getClass()) {
return false;
}
return false;
}
- ShardIdentifier that = (ShardIdentifier) o;
+ ShardIdentifier that = (ShardIdentifier) o
bj
;
if (!memberName.equals(that.memberName)) {
return false;
if (!memberName.equals(that.memberName)) {
return false;
@@
-97,26
+97,26
@@
public class ShardIdentifier {
private MemberName memberName;
private String type;
private MemberName memberName;
private String type;
- public ShardIdentifier build(){
+ public ShardIdentifier build()
{
return new ShardIdentifier(shardName, memberName, type);
}
return new ShardIdentifier(shardName, memberName, type);
}
- public Builder shardName(String
shardName)
{
- this.shardName =
s
hardName;
+ public Builder shardName(String
newShardName)
{
+ this.shardName =
newS
hardName;
return this;
}
return this;
}
- public Builder memberName(MemberName
memberName)
{
- this.memberName =
m
emberName;
+ public Builder memberName(MemberName
newMemberName)
{
+ this.memberName =
newM
emberName;
return this;
}
return this;
}
- public Builder type(String
type)
{
- this.type =
t
ype;
+ public Builder type(String
newType)
{
+ this.type =
newT
ype;
return this;
}
return this;
}
- public Builder fromShardIdString(String shardId){
+ public Builder fromShardIdString(String shardId)
{
Matcher matcher = PATTERN.matcher(shardId);
if (matcher.matches()) {
Matcher matcher = PATTERN.matcher(shardId);
if (matcher.matches()) {