[TINDER-68] Provide utility method that returns a bare JID instance Created: 23/Feb/13  Updated: 23/Feb/13  Resolved: 23/Feb/13

Status: Resolved
Project: Tinder
Components: None
Affects versions: None
Fix versions: 1.3.0

Type: Bug Priority: Major
Reporter: Guus der Kinderen Assignee: Guus der Kinderen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified


 Description   

The JID class has a toBareJID() method that returns a String-based value. No variant exists that returns a JID instance. This leads to workaround code like the following:

new JID(new JID(value).toBareJID())

A method should be provided that returns a JID instance representing a bare JID



 Comments   
Comment by Guus der Kinderen [ 23/Feb/13 ]

Apart from the existing method public String toBareJID(), the JID class now has a new method with this signature:

public JID asBareJID()
Generated at Tue May 07 19:47:31 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100252-rev:a5c24cba75cd244ceb6b43e06c415bbf51cad181.