# HG changeset patch # User Da Risk # Date 1293994365 -3600 # Node ID 5fed871bb54f2cf7bf5d282bbc1d6dfdb7e03898 # Parent 0d604b75d5ae772e2ade7a636f26e4a608cb0c8a Checkstyle diff -r 0d604b75d5ae -r 5fed871bb54f src/com/beem/project/beem/service/Contact.java --- a/src/com/beem/project/beem/service/Contact.java Sun Jan 02 19:25:34 2011 +0100 +++ b/src/com/beem/project/beem/service/Contact.java Sun Jan 02 19:52:45 2011 +0100 @@ -105,28 +105,6 @@ } /** - * Make an xmpp uri for a spcific jid. - * - * @param jid the jid to represent as an uri - * @return an uri representing this jid. - */ - public static Uri makeXmppUri(String jid) { - StringBuilder build = new StringBuilder("xmpp:"); - String name = StringUtils.parseName(jid); - build.append(name); - if (!"".equals(name)) - build.append('@'); - build.append(StringUtils.parseServer(jid)); - String resource = StringUtils.parseResource(jid); - if (!"".equals(resource)) { - build.append('/'); - build.append(resource); - } - Uri u = Uri.parse(build.toString()); - return u; - } - - /** * Constructor. * @param jid JID of the contact */ @@ -162,6 +140,28 @@ } /** + * Make an xmpp uri for a spcific jid. + * + * @param jid the jid to represent as an uri + * @return an uri representing this jid. + */ + public static Uri makeXmppUri(String jid) { + StringBuilder build = new StringBuilder("xmpp:"); + String name = StringUtils.parseName(jid); + build.append(name); + if (!"".equals(name)) + build.append('@'); + build.append(StringUtils.parseServer(jid)); + String resource = StringUtils.parseResource(jid); + if (!"".equals(resource)) { + build.append('/'); + build.append(resource); + } + Uri u = Uri.parse(build.toString()); + return u; + } + + /** * {@inheritDoc} */ @Override diff -r 0d604b75d5ae -r 5fed871bb54f src/com/beem/project/beem/ui/Subscription.java --- a/src/com/beem/project/beem/ui/Subscription.java Sun Jan 02 19:25:34 2011 +0100 +++ b/src/com/beem/project/beem/ui/Subscription.java Sun Jan 02 19:52:45 2011 +0100 @@ -135,6 +135,11 @@ this.unregisterReceiver(mReceiver); } + /** + * Send the presence stanza. + * + * @param p presence stanza + */ private void sendPresence(Presence p) { PresenceAdapter preAdapt = new PresenceAdapter(p); try {