1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 17:19:39 +02:00

Add ParenPad and NoWhitespaceAfter checkstyle rules

This commit is contained in:
Florian Schmaus 2016-11-29 12:01:41 +01:00
parent 9d0d8088f4
commit 9165e818d9
17 changed files with 76 additions and 60 deletions

View file

@ -165,7 +165,7 @@ public final class QueueDetails implements ExtensionElement {
eventType = parser.next();
while ((eventType != XmlPullParser.END_TAG)
|| (! "user".equals(parser.getName())))
|| (!"user".equals(parser.getName())))
{
if ("position".equals(parser.getName())) {
position = Integer.parseInt(parser.nextText());
@ -180,7 +180,7 @@ public final class QueueDetails implements ExtensionElement {
throw new SmackException(e);
}
}
else if( parser.getName().equals( "waitTime" ) ) {
else if(parser.getName().equals("waitTime")) {
Date wait;
try {
wait = dateFormat.parse(parser.nextText());

View file

@ -469,7 +469,7 @@ public class Workgroup {
}
private void fireInvitationEvent(WorkgroupInvitation invitation) {
for (WorkgroupInvitationListener listener : invitationListeners ){
for (WorkgroupInvitationListener listener : invitationListeners) {
// CHECKSTYLE:OFF
listener.invitationReceived(invitation);
// CHECKSTYLE:ON