mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-13 00:21:07 +01:00
Lint fixes: Remove dead code, etc.
- make method static when possible - remove never thrown Exception declarations - other fixes
This commit is contained in:
parent
83b84c5bd3
commit
c6594aec2f
18 changed files with 48 additions and 65 deletions
|
|
@ -66,11 +66,12 @@ public class BookmarkManager {
|
|||
BookmarkManager manager = bookmarkManagerMap.get(connection);
|
||||
if (manager == null) {
|
||||
manager = new BookmarkManager(connection);
|
||||
bookmarkManagerMap.put(connection, manager);
|
||||
}
|
||||
return manager;
|
||||
}
|
||||
|
||||
private PrivateDataManager privateDataManager;
|
||||
private final PrivateDataManager privateDataManager;
|
||||
private Bookmarks bookmarks;
|
||||
private final Object bookmarkLock = new Object();
|
||||
|
||||
|
|
@ -80,9 +81,8 @@ public class BookmarkManager {
|
|||
*
|
||||
* @param connection the connection for persisting and retrieving bookmarks.
|
||||
*/
|
||||
private BookmarkManager(XMPPConnection connection) throws XMPPException, SmackException {
|
||||
private BookmarkManager(XMPPConnection connection) {
|
||||
privateDataManager = PrivateDataManager.getInstanceFor(connection);
|
||||
bookmarkManagerMap.put(connection, this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue