1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 01:29:38 +02:00

Add "whitespace after comma" checkstyle rule

This commit is contained in:
Florian Schmaus 2019-05-17 21:56:46 +02:00
parent db5f6f648c
commit f7762c5db7
37 changed files with 59 additions and 58 deletions

View file

@ -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);
}

View file

@ -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) {

View file

@ -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());

View file

@ -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.
*/

View file

@ -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];

View file

@ -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);

View file

@ -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");

View file

@ -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());

View file

@ -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");