diff -r 74139325d305 -r b78e77619152 src/org/sonews/daemon/command/StatCommand.java --- a/src/org/sonews/daemon/command/StatCommand.java Sun Aug 29 18:17:37 2010 +0200 +++ b/src/org/sonews/daemon/command/StatCommand.java Sun Sep 11 15:05:04 2011 +0200 @@ -15,7 +15,6 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - package org.sonews.daemon.command; import java.io.IOException; @@ -28,38 +27,32 @@ * @author Christian Lins * @since sonews/0.5.0 */ -public class StatCommand implements Command -{ +public class StatCommand implements Command { @Override - public String[] getSupportedCommandStrings() - { - return new String[] {"STAT"}; + public String[] getSupportedCommandStrings() { + return new String[]{"STAT"}; } @Override - public boolean hasFinished() - { + public boolean hasFinished() { return true; } @Override - public String impliedCapability() - { + public String impliedCapability() { return null; } @Override - public boolean isStateful() - { + public boolean isStateful() { return false; } // TODO: Method has various exit points => Refactor! @Override public void processLine(NNTPConnection conn, final String line, byte[] raw) - throws IOException, StorageBackendException - { + throws IOException, StorageBackendException { final String[] command = line.split(" "); Article article = null; @@ -94,7 +87,7 @@ } conn.println("223 " + conn.getCurrentChannel().getIndexOf(article) + " " - + article.getMessageID() - + " article retrieved - request text separately"); + + article.getMessageID() + + " article retrieved - request text separately"); } }