1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-12 22:11:07 +01:00

Fix minor codestyle issues

This commit is contained in:
Paul Schaub 2017-12-13 23:10:11 +01:00 committed by Florian Schmaus
parent 200f90ffdc
commit cb18056613
422 changed files with 1404 additions and 1444 deletions

View file

@ -43,7 +43,7 @@ public class AMPDeliverCondition implements AMPExtension.Condition {
private final Value value;
/**
* Create new amp deliver condition with value setted to one of defined by XEP-0079.
* Create new amp deliver condition with value set to one of defined by XEP-0079.
* See http://xmpp.org/extensions/xep-0079.html#conditions-def-deliver
* @param value AMPDeliveryCondition.Value instance that will be used as value parameter. Can't be null.
*/
@ -67,7 +67,7 @@ public class AMPDeliverCondition implements AMPExtension.Condition {
* Value for amp deliver condition as defined by XEP-0079.
* See http://xmpp.org/extensions/xep-0079.html#conditions-def-deliver
*/
public static enum Value {
public enum Value {
/**
* The message would be immediately delivered to the intended recipient or routed to the next hop.
*/

View file

@ -48,7 +48,7 @@ public class AMPExpireAtCondition implements AMPExtension.Condition {
private final String value;
/**
* Create new expire-at amp condition with value setted as XEP-0082 formatted date.
* Create new expire-at amp condition with value set as XEP-0082 formatted date.
* @param utcDateTime Date instance of time
* that will be used as value parameter after formatting to XEP-0082 format. Can't be null.
*/

View file

@ -43,7 +43,7 @@ public class AMPMatchResourceCondition implements AMPExtension.Condition {
private final Value value;
/**
* Create new amp match-resource condition with value setted to one of defined by XEP-0079.
* Create new amp match-resource condition with value set to one of defined by XEP-0079.
* See http://xmpp.org/extensions/xep-0079.html#conditions-def-match
* @param value AMPDeliveryCondition.Value instance that will be used as value parameter. Can't be null.
*/
@ -67,7 +67,7 @@ public class AMPMatchResourceCondition implements AMPExtension.Condition {
* match-resource amp condition value as defined by XEP-0079.
* See http://xmpp.org/extensions/xep-0079.html#conditions-def-match
*/
public static enum Value {
public enum Value {
/**
* Destination resource matches any value, effectively ignoring the intended resource.
* Example: "home/laptop" matches "home", "home/desktop" or "work/desktop"

View file

@ -31,7 +31,7 @@ public class AMPExtension implements ExtensionElement {
public static final String NAMESPACE = "http://jabber.org/protocol/amp";
public static final String ELEMENT = "amp";
private CopyOnWriteArrayList<Rule> rules = new CopyOnWriteArrayList<Rule>();
private final CopyOnWriteArrayList<Rule> rules = new CopyOnWriteArrayList<>();
private boolean perHop = false;
private final String from;
@ -225,18 +225,18 @@ public class AMPExtension implements ExtensionElement {
* @see AMPExpireAtCondition
* @see AMPMatchResourceCondition
**/
public static interface Condition {
public interface Condition {
String getName();
String getValue();
static final String ATTRIBUTE_NAME = "condition";
String ATTRIBUTE_NAME = "condition";
}
/**
* amp action attribute.
* See http://xmpp.org/extensions/xep-0079.html#actions-def
**/
public static enum Action {
public enum Action {
/**
* The "alert" action triggers a reply <message/> stanza to the sending entity.
* This <message/> stanza MUST contain the element <amp status='alert'/>,
@ -272,7 +272,7 @@ public class AMPExtension implements ExtensionElement {
/**
* amp notification status as defined by XEP-0079.
*/
public static enum Status {
public enum Status {
alert,
error,
notify