# HG changeset patch # User darisk@kaaliyah # Date 1249878118 -7200 # Node ID 864baf8d79eec8d557888d04caa965eb2007da96 # Parent 16f3847a7db7511f2c8c5aeaacac1abf45f34cf4 Checkstyle rules diff -r 16f3847a7db7 -r 864baf8d79ee src/com/beem/project/beem/ui/Login.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) { diff -r 16f3847a7db7 -r 864baf8d79ee src/com/beem/project/beem/ui/SendIM.java --- 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 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}