1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Remove DiscoverInfo.Identity(Identity) copy constructor

as there is no need to copy an immutable type.
This commit is contained in:
Florian Schmaus 2019-10-30 08:24:13 +01:00
parent 63a4212f7e
commit ee699f24dd

View file

@ -338,14 +338,6 @@ public class DiscoverInfo extends IQ implements DiscoverInfoView, TypedCloneable
private final String name;
private final String lang; // 'xml:lang;
public Identity(Identity identity) {
this.category = identity.category;
this.type = identity.type;
this.key = identity.type;
this.name = identity.name;
this.lang = identity.lang;
}
/**
* Creates a new identity for an XMPP entity.
*