mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +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
|
* @param fallbackMessageBody fallback message body
|
||||||
* @return builder with set body and added fallback element
|
* @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);
|
return addFallbackIndication(messageBuilder).setBody(fallbackMessageBody);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ public final class FallbackIndicationManager extends Manager {
|
||||||
* @param messageBuilder message builder
|
* @param messageBuilder message builder
|
||||||
* @return message builder with added fallback element
|
* @return message builder with added fallback element
|
||||||
*/
|
*/
|
||||||
public MessageBuilder addFallbackIndication(MessageBuilder messageBuilder) {
|
public static MessageBuilder addFallbackIndication(MessageBuilder messageBuilder) {
|
||||||
return messageBuilder.addExtension(new FallbackIndicationElement());
|
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 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
|
* @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()
|
FasteningElement fasteningElement = FasteningElement.builder()
|
||||||
.setOriginId(retractedMessageId)
|
.setOriginId(retractedMessageId)
|
||||||
.addWrappedPayload(new RetractElement())
|
.addWrappedPayload(new RetractElement())
|
||||||
|
|
Loading…
Reference in a new issue