mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
Remove DiscoverInfo.Identity(Identity) copy constructor
as there is no need to copy an immutable type.
This commit is contained in:
parent
63a4212f7e
commit
ee699f24dd
1 changed files with 0 additions and 8 deletions
|
@ -338,14 +338,6 @@ public class DiscoverInfo extends IQ implements DiscoverInfoView, TypedCloneable
|
||||||
private final String name;
|
private final String name;
|
||||||
private final String lang; // 'xml:lang;
|
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.
|
* Creates a new identity for an XMPP entity.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue