1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-15 09:31:08 +01:00

Enable LeftCurly checkstyle check

This commit is contained in:
Florian Schmaus 2018-04-06 10:21:46 +02:00
parent 5a841ff0a8
commit 9b5dafe541
93 changed files with 549 additions and 1087 deletions

View file

@ -60,8 +60,7 @@ public final class BookmarkManager {
* exist it is created.
* @throws IllegalArgumentException when the connection is null.
*/
public static synchronized BookmarkManager getBookmarkManager(XMPPConnection connection)
{
public static synchronized BookmarkManager getBookmarkManager(XMPPConnection connection) {
BookmarkManager manager = bookmarkManagerMap.get(connection);
if (manager == null) {
manager = new BookmarkManager(connection);
@ -114,8 +113,7 @@ public final class BookmarkManager {
* @throws InterruptedException
*/
public void addBookmarkedConference(String name, EntityBareJid jid, boolean isAutoJoin,
Resourcepart nickname, String password) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException
{
Resourcepart nickname, String password) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
retrieveBookmarks();
BookmarkedConference bookmark
= new BookmarkedConference(name, jid, isAutoJoin, nickname, password);

View file

@ -40,8 +40,7 @@ public class BookmarkedConference implements SharedBookmark {
}
protected BookmarkedConference(String name, EntityBareJid jid, boolean autoJoin, Resourcepart nickname,
String password)
{
String password) {
this.name = name;
this.jid = jid;
this.autoJoin = autoJoin;

View file

@ -232,13 +232,11 @@ public class Bookmarks implements PrivateData {
}
}
else if (eventType == XmlPullParser.START_TAG &&
"conference".equals(parser.getName()))
{
"conference".equals(parser.getName())) {
final BookmarkedConference conference = getConferenceStorage(parser);
storage.addBookmarkedConference(conference);
}
else if (eventType == XmlPullParser.END_TAG && "storage".equals(parser.getName()))
{
else if (eventType == XmlPullParser.END_TAG && "storage".equals(parser.getName())) {
done = true;
}
}