mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-14 15:01:07 +01:00
's;^\s+$;;' on all source files
And add checkstyle test for lines containing only whitespace characters.
This commit is contained in:
parent
05c97c494b
commit
0fde39fa45
193 changed files with 1066 additions and 1062 deletions
|
|
@ -44,7 +44,7 @@ public class PrivacyList {
|
|||
private final String listName;
|
||||
/** Holds the list of {@link PrivacyItem} */
|
||||
private final List<PrivacyItem> items;
|
||||
|
||||
|
||||
protected PrivacyList(boolean isActiveList, boolean isDefaultList,
|
||||
String listName, List<PrivacyItem> privacyItems) {
|
||||
super();
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ public class PrivacyListManager extends Manager {
|
|||
private Privacy getPrivacyWithListNames() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
// The request of the list is an empty privacy message
|
||||
Privacy request = new Privacy();
|
||||
|
||||
|
||||
// Send the package to the server and get the answer
|
||||
return getRequest(request);
|
||||
}
|
||||
|
|
@ -371,10 +371,10 @@ public class PrivacyListManager extends Manager {
|
|||
// The request of the list is an privacy message with an empty list
|
||||
Privacy request = new Privacy();
|
||||
request.setPrivacyList(listName, new ArrayList<PrivacyItem>());
|
||||
|
||||
|
||||
// Send the package to the server and get the answer
|
||||
Privacy privacyAnswer = getRequest(request);
|
||||
|
||||
|
||||
return privacyAnswer.getPrivacyList(listName);
|
||||
}
|
||||
|
||||
|
|
@ -427,7 +427,7 @@ public class PrivacyListManager extends Manager {
|
|||
// The request of the list is an privacy message with an empty list
|
||||
Privacy request = new Privacy();
|
||||
request.setActiveName(listName);
|
||||
|
||||
|
||||
// Send the package to the server
|
||||
setRequest(request);
|
||||
}
|
||||
|
|
@ -443,7 +443,7 @@ public class PrivacyListManager extends Manager {
|
|||
// The request of the list is an privacy message with an empty list
|
||||
Privacy request = new Privacy();
|
||||
request.setDeclineActiveList(true);
|
||||
|
||||
|
||||
// Send the package to the server
|
||||
setRequest(request);
|
||||
}
|
||||
|
|
@ -461,7 +461,7 @@ public class PrivacyListManager extends Manager {
|
|||
// The request of the list is an privacy message with an empty list
|
||||
Privacy request = new Privacy();
|
||||
request.setDefaultName(listName);
|
||||
|
||||
|
||||
// Send the package to the server
|
||||
setRequest(request);
|
||||
}
|
||||
|
|
@ -477,7 +477,7 @@ public class PrivacyListManager extends Manager {
|
|||
// The request of the list is an privacy message with an empty list
|
||||
Privacy request = new Privacy();
|
||||
request.setDeclineDefaultList(true);
|
||||
|
||||
|
||||
// Send the package to the server
|
||||
setRequest(request);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ public class Privacy extends IQ {
|
|||
buf.append("<default name=\"").escape(getDefaultName()).append("\"/>");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Add the list with their privacy items
|
||||
for (Map.Entry<String, List<PrivacyItem>> entry : this.getItemLists().entrySet()) {
|
||||
String listName = entry.getKey();
|
||||
|
|
@ -326,5 +326,5 @@ public class Privacy extends IQ {
|
|||
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ public class PrivacyProvider extends IQProvider<Privacy> {
|
|||
|
||||
return privacy;
|
||||
}
|
||||
|
||||
|
||||
// Parse the list complex type
|
||||
private static void parseList(XmlPullParser parser, Privacy privacy) throws XmlPullParserException, IOException, SmackException {
|
||||
boolean done = false;
|
||||
|
|
@ -96,7 +96,7 @@ public class PrivacyProvider extends IQProvider<Privacy> {
|
|||
|
||||
privacy.setPrivacyList(listName, items);
|
||||
}
|
||||
|
||||
|
||||
// Parse the list complex type
|
||||
private static PrivacyItem parseItem(XmlPullParser parser) throws XmlPullParserException, IOException, SmackException {
|
||||
// Retrieves the required attributes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue