mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 18:29:45 +02:00
Add ParenPad and NoWhitespaceAfter checkstyle rules
This commit is contained in:
parent
9d0d8088f4
commit
9165e818d9
17 changed files with 76 additions and 60 deletions
|
@ -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());
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue