mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
[experimental] Delcare methods as static when possible
This commit is contained in:
parent
f3207e8c27
commit
1c0bdfae40
2 changed files with 3 additions and 3 deletions
|
@ -139,7 +139,7 @@ public final class FallbackIndicationManager extends Manager {
|
|||
* @param fallbackMessageBody fallback message body
|
||||
* @return builder with set body and added fallback element
|
||||
*/
|
||||
public MessageBuilder addFallbackIndicationWithBody(MessageBuilder messageBuilder, String fallbackMessageBody) {
|
||||
public static MessageBuilder addFallbackIndicationWithBody(MessageBuilder messageBuilder, String fallbackMessageBody) {
|
||||
return addFallbackIndication(messageBuilder).setBody(fallbackMessageBody);
|
||||
}
|
||||
|
||||
|
@ -149,7 +149,7 @@ public final class FallbackIndicationManager extends Manager {
|
|||
* @param messageBuilder message builder
|
||||
* @return message builder with added fallback element
|
||||
*/
|
||||
public MessageBuilder addFallbackIndication(MessageBuilder messageBuilder) {
|
||||
public static MessageBuilder addFallbackIndication(MessageBuilder messageBuilder) {
|
||||
return messageBuilder.addExtension(new FallbackIndicationElement());
|
||||
}
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ public final class MessageRetractionManager extends Manager {
|
|||
* @param retractedMessageId {@link OriginIdElement OriginID} of the message that the user wants to retract
|
||||
* @param carrierMessageBuilder message used to transmit the message retraction to the recipient
|
||||
*/
|
||||
public void addRetractionElementToMessage(OriginIdElement retractedMessageId, MessageBuilder carrierMessageBuilder) {
|
||||
public static void addRetractionElementToMessage(OriginIdElement retractedMessageId, MessageBuilder carrierMessageBuilder) {
|
||||
FasteningElement fasteningElement = FasteningElement.builder()
|
||||
.setOriginId(retractedMessageId)
|
||||
.addWrappedPayload(new RetractElement())
|
||||
|
|
Loading…
Reference in a new issue