From 007f79149ee3f2066259ec885b4a79b52f98994f Mon Sep 17 00:00:00 2001 From: jruesga Date: Fri, 12 Oct 2012 02:23:35 +0200 Subject: CleanUp --- src/com/cyanogenmod/explorer/commands/ExecExecutable.java | 2 +- src/com/cyanogenmod/explorer/commands/shell/AsyncResultProgram.java | 4 ++-- .../explorer/commands/shell/AsyncResultProgramListener.java | 2 +- src/com/cyanogenmod/explorer/commands/shell/LinkCommand.java | 2 +- src/com/cyanogenmod/explorer/console/shell/ShellConsole.java | 2 +- src/com/cyanogenmod/explorer/ui/dialogs/ActionsDialog.java | 4 ++-- src/com/cyanogenmod/explorer/ui/dialogs/FsoPropertiesDialog.java | 2 +- src/com/cyanogenmod/explorer/util/StorageHelper.java | 4 ++-- .../com/cyanogenmod/explorer/commands/shell/ExecCommandTest.java | 6 +++--- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/com/cyanogenmod/explorer/commands/ExecExecutable.java b/src/com/cyanogenmod/explorer/commands/ExecExecutable.java index d743ace6..17450ba1 100644 --- a/src/com/cyanogenmod/explorer/commands/ExecExecutable.java +++ b/src/com/cyanogenmod/explorer/commands/ExecExecutable.java @@ -23,7 +23,7 @@ public interface ExecExecutable extends AsyncResultExecutable { /** * Method that returns the exit code of the executed program - * + * * @return int The exit code */ public int getExitCode(); diff --git a/src/com/cyanogenmod/explorer/commands/shell/AsyncResultProgram.java b/src/com/cyanogenmod/explorer/commands/shell/AsyncResultProgram.java index 480f7f14..0e496146 100644 --- a/src/com/cyanogenmod/explorer/commands/shell/AsyncResultProgram.java +++ b/src/com/cyanogenmod/explorer/commands/shell/AsyncResultProgram.java @@ -38,7 +38,7 @@ public abstract class AsyncResultProgram /** * @hide */ - static final Byte STDERR = new Byte((byte)1); + static final Byte STDERR = new Byte((byte)1); private final AsyncResultListener mAsyncResultListener; private AsyncResultProgramThread mWorkerThread; @@ -178,7 +178,7 @@ public abstract class AsyncResultProgram this.mSync.notify(); } } - + /** * Method that parse the error result of a program invocation. * diff --git a/src/com/cyanogenmod/explorer/commands/shell/AsyncResultProgramListener.java b/src/com/cyanogenmod/explorer/commands/shell/AsyncResultProgramListener.java index dc57cfc9..2e0d3659 100644 --- a/src/com/cyanogenmod/explorer/commands/shell/AsyncResultProgramListener.java +++ b/src/com/cyanogenmod/explorer/commands/shell/AsyncResultProgramListener.java @@ -40,7 +40,7 @@ public interface AsyncResultProgramListener { * @param partialIn A partial standard input buffer (incremental buffer) */ void onParsePartialResult(String partialIn); - + /** * Method invoked when a parse of new error results are needed. * diff --git a/src/com/cyanogenmod/explorer/commands/shell/LinkCommand.java b/src/com/cyanogenmod/explorer/commands/shell/LinkCommand.java index 09b29a06..cfd1742a 100644 --- a/src/com/cyanogenmod/explorer/commands/shell/LinkCommand.java +++ b/src/com/cyanogenmod/explorer/commands/shell/LinkCommand.java @@ -72,7 +72,7 @@ public class LinkCommand extends SyncResultProgram implements LinkExecutable { @Override public void checkExitCode(int exitCode) throws InsufficientPermissionsException, CommandNotFoundException, ExecutionException { - // Not raise insufficient permissions if the link is in + // Not raise insufficient permissions if the link is in if (exitCode != 0) { throw new ExecutionException("exitcode != 0"); //$NON-NLS-1$ } diff --git a/src/com/cyanogenmod/explorer/console/shell/ShellConsole.java b/src/com/cyanogenmod/explorer/console/shell/ShellConsole.java index 8e4b7e2f..37faeb75 100644 --- a/src/com/cyanogenmod/explorer/console/shell/ShellConsole.java +++ b/src/com/cyanogenmod/explorer/console/shell/ShellConsole.java @@ -724,7 +724,7 @@ public abstract class ShellConsole extends Console { if (!ShellConsole.this.mCancelled) { ShellConsole.this.mSbErr.append((char)r); sb.append((char)r); - + //Notify asynchronous partial data if (ShellConsole.this.mStarted && ShellConsole.this.mActiveCommand != null && diff --git a/src/com/cyanogenmod/explorer/ui/dialogs/ActionsDialog.java b/src/com/cyanogenmod/explorer/ui/dialogs/ActionsDialog.java index c370b153..058a3f68 100644 --- a/src/com/cyanogenmod/explorer/ui/dialogs/ActionsDialog.java +++ b/src/com/cyanogenmod/explorer/ui/dialogs/ActionsDialog.java @@ -229,7 +229,7 @@ public class ActionsDialog implements OnItemClickListener, OnItemLongClickListen case R.id.mnu_actions_send: ActionsPolicy.sendFileSystemObject(this.mContext, this.mFso); break; - + // Paste selection case R.id.mnu_actions_paste_selection: @@ -485,7 +485,7 @@ public class ActionsDialog implements OnItemClickListener, OnItemLongClickListen /** * Method that creates a {@link LinkedResource} for the list of object to the * destination directory - * + * * @param items The list of the source items * @param directory The destination directory */ diff --git a/src/com/cyanogenmod/explorer/ui/dialogs/FsoPropertiesDialog.java b/src/com/cyanogenmod/explorer/ui/dialogs/FsoPropertiesDialog.java index 0d72df60..9f4752fc 100644 --- a/src/com/cyanogenmod/explorer/ui/dialogs/FsoPropertiesDialog.java +++ b/src/com/cyanogenmod/explorer/ui/dialogs/FsoPropertiesDialog.java @@ -365,7 +365,7 @@ public class FsoPropertiesDialog if (this.mFso instanceof Symlink && ((Symlink) this.mFso).getLinkRef() != null) { this.mFolderUsageExecutable = CommandHelper.getFolderUsage( - this.mContext, + this.mContext, ((Symlink) this.mFso).getLinkRef().getFullPath(), this, null); } else { this.mFolderUsageExecutable = diff --git a/src/com/cyanogenmod/explorer/util/StorageHelper.java b/src/com/cyanogenmod/explorer/util/StorageHelper.java index b15203ed..5c3aa753 100644 --- a/src/com/cyanogenmod/explorer/util/StorageHelper.java +++ b/src/com/cyanogenmod/explorer/util/StorageHelper.java @@ -36,7 +36,7 @@ public final class StorageHelper { * Method that returns the storage volumes defined in the system. This method uses * reflection to retrieve the method because CM10 has a {@link Context} * as first parameter, that AOSP hasn't. - * + * * @param ctx The current context * @return StorageVolume[] The storage volumes defined in the system */ @@ -99,7 +99,7 @@ public final class StorageHelper { /** * Method that returns if the path is in a volume storage - * + * * @param path The path * @return boolean If the path is in a volume storage */ diff --git a/tests/src/com/cyanogenmod/explorer/commands/shell/ExecCommandTest.java b/tests/src/com/cyanogenmod/explorer/commands/shell/ExecCommandTest.java index 518630ab..5a9d6290 100644 --- a/tests/src/com/cyanogenmod/explorer/commands/shell/ExecCommandTest.java +++ b/tests/src/com/cyanogenmod/explorer/commands/shell/ExecCommandTest.java @@ -51,11 +51,11 @@ public class ExecCommandTest extends AbstractConsoleTest { } /** - * Method that performs a test over known search results. + * Method that performs a test over known executable program. * * @throws Exception If test failed */ - public void testFindWithPartialResult() throws Exception { + public void testExecWithPartialResult() throws Exception { try { // Create the test program FileWriter fw = new FileWriter(new File(EXEC_CMD)); @@ -84,7 +84,7 @@ public class ExecCommandTest extends AbstractConsoleTest { ExecCommandTest.this.mSync.wait(15000L); } assertTrue("no new partial data", this.mNewPartialData); //$NON-NLS-1$ - + } finally { try { CommandHelper.deleteFile(getContext(), EXEC_CMD, getConsole()); -- cgit v1.2.3