mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 12:32:06 +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()
|
||||
throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException, PubSubException.NotALeafNodeException {
|
||||
getOrCreateMetadataNode().publish(new PayloadItem<>(new MetadataExtension(null)));
|
||||
getOrCreateMetadataNode().publish(new PayloadItem<>(new MetadataExtension()));
|
||||
}
|
||||
|
||||
@SuppressWarnings("UnnecessaryAnonymousClass")
|
||||
|
|
|
@ -44,6 +44,13 @@ public class MetadataExtension implements ExtensionElement {
|
|||
private final List<MetadataInfo> infos;
|
||||
private final List<MetadataPointer> pointers;
|
||||
|
||||
/**
|
||||
* Empty constructor.
|
||||
*/
|
||||
public MetadataExtension() {
|
||||
this(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Metadata Extension constructor.
|
||||
*
|
||||
|
|
|
@ -118,7 +118,7 @@ public class MetadataExtensionTest {
|
|||
|
||||
@Test
|
||||
public void checkEmptyMetadataExtensionParse() {
|
||||
MetadataExtension metadataExtension = new MetadataExtension(null);
|
||||
MetadataExtension metadataExtension = new MetadataExtension();
|
||||
assertEquals(emptyMetadataExtensionExample, metadataExtension.toXML().toString());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue