|
From: <chr...@us...> - 2009-05-11 20:26:55
|
Revision: 5479
http://jnode.svn.sourceforge.net/jnode/?rev=5479&view=rev
Author: chrisboertien
Date: 2009-05-11 20:26:47 +0000 (Mon, 11 May 2009)
Log Message:
-----------
checkstyle fix
Signed-off-by: chrisboertien <chr...@gm...>
Modified Paths:
--------------
trunk/cli/src/commands/org/jnode/command/argument/NumberListArgument.java
trunk/cli/src/commands/org/jnode/command/file/CutCommand.java
trunk/cli/src/commands/org/jnode/command/file/GrepCommand.java
trunk/cli/src/test/org/jnode/test/command/file/all-file-tests.xml
trunk/shell/src/shell/org/jnode/shell/CommandInfo.java
trunk/shell/src/shell/org/jnode/shell/syntax/ArgumentSpecLoader.java
Modified: trunk/cli/src/commands/org/jnode/command/argument/NumberListArgument.java
===================================================================
--- trunk/cli/src/commands/org/jnode/command/argument/NumberListArgument.java 2009-05-11 19:59:41 UTC (rev 5478)
+++ trunk/cli/src/commands/org/jnode/command/argument/NumberListArgument.java 2009-05-11 20:26:47 UTC (rev 5479)
@@ -22,10 +22,9 @@
import java.util.Arrays;
import java.util.Collections;
-import java.util.List;
import org.jnode.command.util.NumberRange;
-import org.jnode.driver.console.CompletionInfo;
+//import org.jnode.driver.console.CompletionInfo;
import org.jnode.shell.CommandLine.Token;
import org.jnode.shell.syntax.CommandSyntaxException;
import org.jnode.shell.syntax.Argument;
@@ -95,7 +94,7 @@
i++;
}
}
- for (int i = 0; i < (ranges.length - 1); i++ ) {
+ for (int i = 0; i < (ranges.length - 1); i++) {
values.add(ranges[i]);
}
return ranges[ranges.length - 1];
@@ -125,7 +124,7 @@
private NumberRange[] parseList(String text) throws CommandSyntaxException {
int delimPos = text.indexOf(listDelim);
if (delimPos == -1) {
- return new NumberRange[] { parseRange(text) };
+ return new NumberRange[] {parseRange(text)};
} else {
String[] rangesText = text.split(listDelim);
NumberRange[] ranges = new NumberRange[rangesText.length];
Modified: trunk/cli/src/commands/org/jnode/command/file/CutCommand.java
===================================================================
--- trunk/cli/src/commands/org/jnode/command/file/CutCommand.java 2009-05-11 19:59:41 UTC (rev 5478)
+++ trunk/cli/src/commands/org/jnode/command/file/CutCommand.java 2009-05-11 20:26:47 UTC (rev 5479)
@@ -96,7 +96,7 @@
registerArguments(argSuppress, argComplement);
}
- public void execute() {
+ public void execute() throws IOException {
err = getError().getPrintWriter();
out = new BufferedWriter(getOutput().getPrintWriter());
parseOptions();
@@ -123,8 +123,6 @@
} else if (mode == Mode.FIELD) {
cutFields(lines);
}
- } catch (IOException e) {
-
} finally {
IOUtils.flush(out);
}
Modified: trunk/cli/src/commands/org/jnode/command/file/GrepCommand.java
===================================================================
--- trunk/cli/src/commands/org/jnode/command/file/GrepCommand.java 2009-05-11 19:59:41 UTC (rev 5478)
+++ trunk/cli/src/commands/org/jnode/command/file/GrepCommand.java 2009-05-11 20:26:47 UTC (rev 5479)
@@ -52,13 +52,10 @@
import java.io.Flushable;
import java.io.Writer;
import java.io.InputStreamReader;
-import java.io.OutputStreamWriter;
import java.util.ArrayDeque;
import java.util.Deque;
/**
- * TODO check performance of prefixing, probably needs some buffering.
- * TODO implement outputting context lines (requires buffering output lines)
* TODO implement Fixed/Basic/Ext matchers
* TODO implement --color (if/when possible)
* @author peda
Modified: trunk/cli/src/test/org/jnode/test/command/file/all-file-tests.xml
===================================================================
--- trunk/cli/src/test/org/jnode/test/command/file/all-file-tests.xml 2009-05-11 19:59:41 UTC (rev 5478)
+++ trunk/cli/src/test/org/jnode/test/command/file/all-file-tests.xml 2009-05-11 20:26:47 UTC (rev 5479)
@@ -2,3 +2,4 @@
<include setName="wc-command-tests.xml"/>
<include setName="cut-command-tests.xml"/>
</testSet>
+
Modified: trunk/shell/src/shell/org/jnode/shell/CommandInfo.java
===================================================================
--- trunk/shell/src/shell/org/jnode/shell/CommandInfo.java 2009-05-11 19:59:41 UTC (rev 5478)
+++ trunk/shell/src/shell/org/jnode/shell/CommandInfo.java 2009-05-11 20:26:47 UTC (rev 5479)
@@ -21,7 +21,6 @@
package org.jnode.shell;
import org.jnode.shell.syntax.ArgumentBundle;
-import org.jnode.shell.syntax.CommandSyntaxException;
import org.jnode.shell.syntax.SyntaxBundle;
/**
Modified: trunk/shell/src/shell/org/jnode/shell/syntax/ArgumentSpecLoader.java
===================================================================
--- trunk/shell/src/shell/org/jnode/shell/syntax/ArgumentSpecLoader.java 2009-05-11 19:59:41 UTC (rev 5478)
+++ trunk/shell/src/shell/org/jnode/shell/syntax/ArgumentSpecLoader.java 2009-05-11 20:26:47 UTC (rev 5479)
@@ -20,9 +20,7 @@
package org.jnode.shell.syntax;
import java.lang.reflect.Constructor;
-import java.util.ArrayList;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|