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:
parent
200f90ffdc
commit
cb18056613
422 changed files with 1404 additions and 1444 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue