1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 03:27:59 +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.
*