mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-15 09:31:08 +01:00
Fix minor codestyle issues
This commit is contained in:
parent
200f90ffdc
commit
cb18056613
422 changed files with 1404 additions and 1444 deletions
|
|
@ -45,7 +45,7 @@ import org.jxmpp.jid.parts.Resourcepart;
|
|||
* @author Alexander Wenckus
|
||||
*/
|
||||
public final class BookmarkManager {
|
||||
private static final Map<XMPPConnection, BookmarkManager> bookmarkManagerMap = new WeakHashMap<XMPPConnection, BookmarkManager>();
|
||||
private static final Map<XMPPConnection, BookmarkManager> bookmarkManagerMap = new WeakHashMap<>();
|
||||
|
||||
static {
|
||||
PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks",
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import org.jxmpp.jid.EntityBareJid;
|
|||
import org.jxmpp.jid.parts.Resourcepart;
|
||||
|
||||
/**
|
||||
* Respresents a Conference Room bookmarked on the server using XEP-0048 Bookmark Storage XEP.
|
||||
* Represents a Conference Room bookmarked on the server using XEP-0048 Bookmark Storage XEP.
|
||||
*
|
||||
* @author Derek DeMoro
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
package org.jivesoftware.smackx.bookmarks;
|
||||
|
||||
/**
|
||||
* Respresents one instance of a URL defined using XEP-0048 Bookmark Storage XEP.
|
||||
* Represents one instance of a URL defined using XEP-0048 Bookmark Storage XEP.
|
||||
*
|
||||
* @author Derek DeMoro
|
||||
*/
|
||||
|
|
@ -41,9 +41,9 @@ public class BookmarkedURL implements SharedBookmark {
|
|||
|
||||
/**
|
||||
* Returns the name representing the URL (eg. Jive Software). This can be used in as a label, or
|
||||
* identifer in applications.
|
||||
* identifier in applications.
|
||||
*
|
||||
* @return the name reprenting the URL.
|
||||
* @return the name representing the URL.
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
|
|
|
|||
|
|
@ -68,15 +68,15 @@ public class Bookmarks implements PrivateData {
|
|||
public static final String NAMESPACE = "storage:bookmarks";
|
||||
public static final String ELEMENT = "storage";
|
||||
|
||||
private List<BookmarkedURL> bookmarkedURLS;
|
||||
private List<BookmarkedConference> bookmarkedConferences;
|
||||
private final List<BookmarkedURL> bookmarkedURLS;
|
||||
private final List<BookmarkedConference> bookmarkedConferences;
|
||||
|
||||
/**
|
||||
* Required Empty Constructor to use Bookmarks.
|
||||
*/
|
||||
public Bookmarks() {
|
||||
bookmarkedURLS = new ArrayList<BookmarkedURL>();
|
||||
bookmarkedConferences = new ArrayList<BookmarkedConference>();
|
||||
bookmarkedURLS = new ArrayList<>();
|
||||
bookmarkedConferences = new ArrayList<>();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -280,7 +280,7 @@ public class Bookmarks implements PrivateData {
|
|||
|
||||
BookmarkedConference conf = new BookmarkedConference(jid);
|
||||
conf.setName(name);
|
||||
conf.setAutoJoin(Boolean.valueOf(autojoin).booleanValue());
|
||||
conf.setAutoJoin(Boolean.valueOf(autojoin));
|
||||
|
||||
// Check for nickname
|
||||
boolean done = false;
|
||||
|
|
|
|||
|
|
@ -29,5 +29,5 @@ public interface SharedBookmark {
|
|||
*
|
||||
* @return returns true if this bookmark is shared.
|
||||
*/
|
||||
public boolean isShared();
|
||||
boolean isShared();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue