Checkstyle
authorDa Risk <darisk972@gmail.com>
Wed, 30 Sep 2009 00:19:49 +0200
changeset 420 ecddfb6c0e2a
parent 419 88e1a96ee8da
child 421 c566f7fd7df1
child 422 1385ea631852
Checkstyle
src/com/beem/project/beem/BeemService.java
src/com/beem/project/beem/service/BeemChatManager.java
src/com/beem/project/beem/service/aidl/IChatManager.aidl
src/com/beem/project/beem/ui/SendIM.java
--- a/src/com/beem/project/beem/BeemService.java	Wed Sep 30 00:15:45 2009 +0200
+++ b/src/com/beem/project/beem/BeemService.java	Wed Sep 30 00:19:49 2009 +0200
@@ -98,13 +98,13 @@
 	Log.e("BEEMSERVICE", "ONBIND()");
 	return mBind;
     }
-    
+
     @Override
     public boolean onUnbind(Intent intent) {
 	Log.e("BEEMSERVICE", "ONUNBIND()");
 	if (!mConnection.getAdaptee().isConnected()) {
 	    this.stopSelf();
-	}	    
+	}
 	return true;
     }
 
@@ -116,7 +116,7 @@
 
 	super.onCreate();
 	mSettings = PreferenceManager.getDefaultSharedPreferences(this);
-	String tmpJid = mSettings.getString("settings_key_account_username", ""); 
+	String tmpJid = mSettings.getString("settings_key_account_username", "");
 	mLogin = StringUtils.parseName(tmpJid);
 	mPassword = mSettings.getString("settings_key_account_password", "");
 	mPort = DEFAULT_XMPP_PORT;
@@ -174,7 +174,7 @@
     }
 
     /**
-     * Delete a notification
+     * Delete a notification.
      * @param id the id of the notification
      */
     public void deleteNotification(int id) {
--- a/src/com/beem/project/beem/service/BeemChatManager.java	Wed Sep 30 00:15:45 2009 +0200
+++ b/src/com/beem/project/beem/service/BeemChatManager.java	Wed Sep 30 00:19:49 2009 +0200
@@ -228,7 +228,7 @@
 
     @Override
     public void deleteChatNotification(IChat chat) {
-	mService.deleteNotification(chat.hashCode());	
+	mService.deleteNotification(chat.hashCode());
     }
 
     /**
--- a/src/com/beem/project/beem/service/aidl/IChatManager.aidl	Wed Sep 30 00:15:45 2009 +0200
+++ b/src/com/beem/project/beem/service/aidl/IChatManager.aidl	Wed Sep 30 00:19:49 2009 +0200
@@ -28,7 +28,7 @@
 	void destroyChat(in IChat chat);
 	
         /**
-	 * @param chat the chat
+	 * @param chat the chat.
          */
 	void deleteChatNotification(in IChat chat);
 
--- a/src/com/beem/project/beem/ui/SendIM.java	Wed Sep 30 00:15:45 2009 +0200
+++ b/src/com/beem/project/beem/ui/SendIM.java	Wed Sep 30 00:19:49 2009 +0200
@@ -28,7 +28,6 @@
 import android.widget.ImageView;
 import android.widget.ScrollView;
 import android.widget.TextView;
-import android.app.NotificationManager;
 
 import com.beem.project.beem.BeemService;
 import com.beem.project.beem.R;
@@ -52,6 +51,11 @@
 public class SendIM extends Activity implements OnClickListener, OnKeyListener {
 
     private static final String TAG = "SEND_IM";
+    private static final Intent SERVICE_INTENT = new Intent();
+    static {
+	SERVICE_INTENT.setComponent(new ComponentName("com.beem.project.beem", "com.beem.project.beem.BeemService"));
+    }
+
     private IRoster mRoster;
     private EditText mToSend;
     private SendIMDialogSmiley mSmyDialog;
@@ -74,10 +78,6 @@
     private TextView mStatusText;
     private BeemBroadcastReceiver mReceiver;
 
-    private static final Intent SERVICE_INTENT = new Intent();
-    static {
-	SERVICE_INTENT.setComponent(new ComponentName("com.beem.project.beem", "com.beem.project.beem.BeemService"));
-    }
 
     /**
      * Constructor.