mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-27 06:22:07 +01:00
Fix minor issues
This commit is contained in:
parent
0f5297c957
commit
1b9fae8e52
3 changed files with 9 additions and 2 deletions
|
@ -484,7 +484,7 @@ public final class UserAvatarManager extends Manager {
|
||||||
*/
|
*/
|
||||||
public void unpublishAvatar()
|
public void unpublishAvatar()
|
||||||
throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException, PubSubException.NotALeafNodeException {
|
throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException, PubSubException.NotALeafNodeException {
|
||||||
getOrCreateMetadataNode().publish(new PayloadItem<>(new MetadataExtension(null)));
|
getOrCreateMetadataNode().publish(new PayloadItem<>(new MetadataExtension()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnnecessaryAnonymousClass")
|
@SuppressWarnings("UnnecessaryAnonymousClass")
|
||||||
|
|
|
@ -44,6 +44,13 @@ public class MetadataExtension implements ExtensionElement {
|
||||||
private final List<MetadataInfo> infos;
|
private final List<MetadataInfo> infos;
|
||||||
private final List<MetadataPointer> pointers;
|
private final List<MetadataPointer> pointers;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Empty constructor.
|
||||||
|
*/
|
||||||
|
public MetadataExtension() {
|
||||||
|
this(null);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Metadata Extension constructor.
|
* Metadata Extension constructor.
|
||||||
*
|
*
|
||||||
|
|
|
@ -118,7 +118,7 @@ public class MetadataExtensionTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void checkEmptyMetadataExtensionParse() {
|
public void checkEmptyMetadataExtensionParse() {
|
||||||
MetadataExtension metadataExtension = new MetadataExtension(null);
|
MetadataExtension metadataExtension = new MetadataExtension();
|
||||||
assertEquals(emptyMetadataExtensionExample, metadataExtension.toXML().toString());
|
assertEquals(emptyMetadataExtensionExample, metadataExtension.toXML().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue