mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
Add "whitespace after comma" checkstyle rule
This commit is contained in:
parent
db5f6f648c
commit
f7762c5db7
37 changed files with 59 additions and 58 deletions
|
@ -58,7 +58,7 @@ public class EntityUseCases extends SingleUserTestCase
|
|||
|
||||
int count = 0;
|
||||
|
||||
for(Iterator<DiscoverItems.Item> it = items.getItems(); it.hasNext(); it.next(),count++);
|
||||
for(Iterator<DiscoverItems.Item> it = items.getItems(); it.hasNext(); it.next(), count++);
|
||||
|
||||
assertEquals(4, count);
|
||||
}
|
||||
|
|
|
@ -266,7 +266,7 @@ public final class PrivateDataManager extends Manager {
|
|||
}
|
||||
else if (event == XmlPullParser.Event.END_ELEMENT) {
|
||||
// If an empty element, set the value with the empty string.
|
||||
data.setValue(name,"");
|
||||
data.setValue(name, "");
|
||||
}
|
||||
}
|
||||
else if (event == XmlPullParser.Event.END_ELEMENT) {
|
||||
|
|
|
@ -307,7 +307,7 @@ public final class AccountManager extends Manager {
|
|||
}
|
||||
Map<String, String> map = new HashMap<>();
|
||||
map.put("username", connection().getUser().getLocalpart().toString());
|
||||
map.put("password",newPassword);
|
||||
map.put("password", newPassword);
|
||||
Registration reg = new Registration(map);
|
||||
reg.setType(IQ.Type.set);
|
||||
reg.setTo(connection().getXMPPServiceDomain());
|
||||
|
|
|
@ -477,7 +477,7 @@ public final class MultiUserChatManager extends Manager {
|
|||
|
||||
/**
|
||||
* Set a callback invoked by this manager when automatic join on reconnect failed. If failedCallback is not
|
||||
* <code>null</code>,then automatic rejoin get also enabled.
|
||||
* <code>null</code>, then automatic rejoin get also enabled.
|
||||
*
|
||||
* @param failedCallback the callback.
|
||||
*/
|
||||
|
|
|
@ -357,7 +357,7 @@ public final class VCard extends IQ {
|
|||
/**
|
||||
* Set the avatar for the VCard by specifying the url to the image.
|
||||
*
|
||||
* @param avatarURL the url to the image(png,jpeg,gif,bmp)
|
||||
* @param avatarURL the url to the image(png, jpeg, gif, bmp)
|
||||
*/
|
||||
public void setAvatar(URL avatarURL) {
|
||||
byte[] bytes = new byte[0];
|
||||
|
|
|
@ -78,7 +78,7 @@ public class Form {
|
|||
/**
|
||||
* Creates a new Form of a given type from scratch.
|
||||
*
|
||||
* @param type the form's type (e.g. form, submit,cancel,result).
|
||||
* @param type the form's type (e.g. form, submit, cancel, result).
|
||||
*/
|
||||
public Form(DataForm.Type type) {
|
||||
this.dataForm = new DataForm(type);
|
||||
|
|
|
@ -64,7 +64,7 @@ public class DataValidationProvider {
|
|||
);
|
||||
break;
|
||||
case RegexValidateElement.METHOD:
|
||||
dataValidation = new RegexValidateElement(dataType,parser.nextText());
|
||||
dataValidation = new RegexValidateElement(dataType, parser.nextText());
|
||||
break;
|
||||
case ListRange.ELEMENT:
|
||||
Long min = ParserUtils.getLongAttribute(parser, "min");
|
||||
|
|
|
@ -126,7 +126,7 @@ public class DataFormTest {
|
|||
FormField field = new FormField("testField1");
|
||||
df.addField(field);
|
||||
|
||||
ValidateElement dv = new RangeValidateElement("xs:integer","1111", "9999");
|
||||
ValidateElement dv = new RangeValidateElement("xs:integer", "1111", "9999");
|
||||
field.setValidateElement(dv);
|
||||
|
||||
assertNotNull(df.toXML());
|
||||
|
|
|
@ -89,7 +89,7 @@ public class DataValidationHelperTest {
|
|||
public void testCheckConsistencyFormFieldRangeValidateElement() {
|
||||
FormField field = new FormField("var");
|
||||
field.setType(FormField.Type.text_multi);
|
||||
RangeValidateElement element = new RangeValidateElement("xs:integer",null, "99");
|
||||
RangeValidateElement element = new RangeValidateElement("xs:integer", null, "99");
|
||||
try {
|
||||
element.checkConsistency(field);
|
||||
fail("No correct check on consistency");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue