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

Add FinalClass checkstyle check

And mark affected classes final.
This commit is contained in:
Florian Schmaus 2015-04-06 10:45:12 +02:00
parent 5ae1fbd25a
commit b4694ec152
72 changed files with 80 additions and 79 deletions

View file

@ -47,7 +47,7 @@ import org.jivesoftware.smackx.disco.ServiceDiscoveryManager;
*
* @author Georg Lukas
*/
public class CarbonManager extends Manager {
public final class CarbonManager extends Manager {
private static Map<XMPPConnection, CarbonManager> INSTANCES = new WeakHashMap<XMPPConnection, CarbonManager>();

View file

@ -131,7 +131,7 @@ public class CarbonExtension implements ExtensionElement {
* Stanza(/Packet) extension indicating that a message may not be carbon-copied. Adding this
* extension to any message will disallow that message from being copied.
*/
public static class Private implements ExtensionElement {
public static final class Private implements ExtensionElement {
public static final Private INSTANCE = new Private();
public static final String ELEMENT = "private";

View file

@ -27,7 +27,7 @@ import org.jivesoftware.smack.packet.ExtensionElement;
public class ClientStateIndication {
public static final String NAMESPACE = "urn:xmpp:csi:0";
public static class Active extends FullStreamElement {
public static final class Active extends FullStreamElement {
public static final Active INSTANCE = new Active();
public static final String ELEMENT = "active";
@ -50,7 +50,7 @@ public class ClientStateIndication {
}
}
public static class Inactive extends FullStreamElement {
public static final class Inactive extends FullStreamElement {
public static final Inactive INSTANCE = new Inactive();
public static final String ELEMENT = "inactive";
@ -73,7 +73,7 @@ public class ClientStateIndication {
}
}
public static class Feature implements ExtensionElement {
public static final class Feature implements ExtensionElement {
public static final Feature INSTANCE = new Feature();
public static final String ELEMENT = "csi";