mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Remove clone() from DiscoverInfo.Identity
there is no need to clone immutable types.
This commit is contained in:
parent
63ba524758
commit
63a4212f7e
1 changed files with 1 additions and 6 deletions
|
@ -330,7 +330,7 @@ public class DiscoverInfo extends IQ implements DiscoverInfoView, TypedCloneable
|
|||
* attributes.
|
||||
*
|
||||
*/
|
||||
public static final class Identity implements Comparable<Identity>, TypedCloneable<Identity> {
|
||||
public static final class Identity implements Comparable<Identity> {
|
||||
|
||||
private final String category;
|
||||
private final String type;
|
||||
|
@ -512,11 +512,6 @@ public class DiscoverInfo extends IQ implements DiscoverInfoView, TypedCloneable
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity clone() {
|
||||
return new Identity(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return toXML().toString();
|
||||
|
|
Loading…
Reference in a new issue