mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-13 00:21:07 +01:00
Make Smack Java8's javac and javadoc ready
This commit is contained in:
parent
cf2027fce7
commit
dc373f641c
18 changed files with 112 additions and 49 deletions
|
|
@ -110,6 +110,7 @@ public class BookmarkedConference implements SharedBookmark {
|
|||
this.password = password;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if(obj == null || !(obj instanceof BookmarkedConference)) {
|
||||
return false;
|
||||
|
|
@ -118,6 +119,11 @@ public class BookmarkedConference implements SharedBookmark {
|
|||
return conference.getJid().equalsIgnoreCase(jid);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return getJid().hashCode();
|
||||
}
|
||||
|
||||
protected void setShared(boolean isShared) {
|
||||
this.isShared = isShared;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ public class BookmarkedURL implements SharedBookmark {
|
|||
return isRss;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if(!(obj instanceof BookmarkedURL)) {
|
||||
return false;
|
||||
|
|
@ -92,6 +93,11 @@ public class BookmarkedURL implements SharedBookmark {
|
|||
return url.getURL().equalsIgnoreCase(URL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return getURL().hashCode();
|
||||
}
|
||||
|
||||
protected void setShared(boolean shared) {
|
||||
this.isShared = shared;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue