[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()
|