Checkstyle rules
authordarisk@kaaliyah
Mon, 10 Aug 2009 06:21:58 +0200
changeset 346 864baf8d79ee
parent 345 16f3847a7db7
child 347 0788f198e848
Checkstyle rules
src/com/beem/project/beem/ui/Login.java
src/com/beem/project/beem/ui/SendIM.java
--- a/src/com/beem/project/beem/ui/Login.java	Mon Aug 10 06:08:46 2009 +0200
+++ b/src/com/beem/project/beem/ui/Login.java	Mon Aug 10 06:21:58 2009 +0200
@@ -26,7 +26,7 @@
 import com.beem.project.beem.utils.Status;
 
 /**
- * This class represents an activity which allows the user to connect to an XMPP server with his username/password
+ * This class represents an activity which allows the user to connect to an XMPP server with his username/password.
  * @author dasilvj
  */
 public class Login extends Activity {
@@ -38,16 +38,21 @@
     }
 
     private final Handler mConnectionHandler = new Handler();
-    private ProgressDialog mProgressDialog = null;
+    private ProgressDialog mProgressDialog;
 
-    private boolean mIsConnected = false;
+    private boolean mIsConnected;
     private final ServiceConnection mServConn = new BeemServiceConnection();
-    private IXmppFacade mXmppFacade = null;
+    private IXmppFacade mXmppFacade;
+
+    private SharedPreferences mSettings;
+    private boolean mIsConfigured;
 
-    private SharedPreferences mSettings = null;
-    private boolean mIsConfigured = false;
+    private Button mButtonLogin;
 
-    private Button mButtonLogin = null;
+    /**
+     * Constructor.
+     */
+    public Login() { }
 
     /**
      * Create an about "BEEM" dialog
@@ -124,10 +129,16 @@
 
 	    private final String mErrorMsg;
 
+	    /**
+	     * Constructor.
+	     */
 	    public ErrorRunnable(String errorMsg) {
 		mErrorMsg = errorMsg;
 	    }
 
+	    /**
+	     * @{inheritDoc}
+	     */
 	    @Override
 	    public void run() {
 		mProgressDialog.setMessage(mErrorMsg);
@@ -168,6 +179,9 @@
 
 	private void showToast(final String errorMsg) {
 	    mConnectionHandler.post(new Runnable() {
+		/**
+		 * @{inheritDoc}
+		 */
 		@Override
 		public void run() {
 		    Toast.makeText(Login.this, errorMsg, Toast.LENGTH_LONG).show();
@@ -180,6 +194,9 @@
 	private void dismissProgressDialog() {
 	    mConnectionHandler.post(new Runnable() {
 
+		/**
+		 * @{inheritDoc}
+		 */
 		@Override
 		public void run() {
 		    mProgressDialog.dismiss();
@@ -214,8 +231,16 @@
 	}
     }
 
+    /**
+     * ServiceConnection use to connect to the Beem Service
+     */
     private class BeemServiceConnection implements ServiceConnection {
-	private IXmppConnection mXmppConnection = null;
+	private IXmppConnection mXmppConnection;
+
+	/**
+	 * Constructor.
+	 */
+	public BeemServiceConnection() { }
 
 	@Override
 	public void onServiceConnected(ComponentName name, IBinder service) {
--- a/src/com/beem/project/beem/ui/SendIM.java	Mon Aug 10 06:08:46 2009 +0200
+++ b/src/com/beem/project/beem/ui/SendIM.java	Mon Aug 10 06:21:58 2009 +0200
@@ -261,7 +261,10 @@
     private final class BeemServiceConnection implements ServiceConnection {
 	private BeemRosterListener mBeemRosterListener = new BeemRosterListener();
 
-	private BeemServiceConnection() { }
+	/**
+	 * Constructor.
+	 */
+	public BeemServiceConnection() { }
 
 	@Override
 	public void onServiceConnected(ComponentName name, IBinder service) {
@@ -371,11 +374,11 @@
      * @author darisk
      */
     private class OnChatListener extends IChatManagerListener.Stub {
-	
+
 	/**
 	 * Constructor.
 	 */
-	public OnChatListener() {}
+	public OnChatListener() { }
 
 	/**
 	 * {@inheritDoc}
@@ -395,7 +398,7 @@
 	/**
 	 * Constructor.
 	 */
-	public BeemRosterListener() {}
+	public BeemRosterListener() { }
 
 	@Override
 	public void onEntriesAdded(List<String> addresses) throws RemoteException {
@@ -431,7 +434,7 @@
 	    /**
 	     * Constructor.
 	     */
-	    public RunnableChange() {}
+	    public RunnableChange() { }
 
 	    @Override
 	    public void run() {
@@ -453,11 +456,11 @@
      * @author darisk
      */
     private class OnMessageListener extends IMessageListener.Stub {
-	
+
 	/**
 	 * Constructor.
 	 */
-	public OnMessageListener() {}
+	public OnMessageListener() { }
 
 	/**
 	 * {@inheritDoc}