1.1 --- a/src/org/sonews/daemon/command/StatCommand.java Sun Aug 29 18:17:37 2010 +0200
1.2 +++ b/src/org/sonews/daemon/command/StatCommand.java Sun Oct 16 20:55:46 2011 +0200
1.3 @@ -15,7 +15,6 @@
1.4 * You should have received a copy of the GNU General Public License
1.5 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1.6 */
1.7 -
1.8 package org.sonews.daemon.command;
1.9
1.10 import java.io.IOException;
1.11 @@ -28,38 +27,32 @@
1.12 * @author Christian Lins
1.13 * @since sonews/0.5.0
1.14 */
1.15 -public class StatCommand implements Command
1.16 -{
1.17 +public class StatCommand implements Command {
1.18
1.19 @Override
1.20 - public String[] getSupportedCommandStrings()
1.21 - {
1.22 - return new String[] {"STAT"};
1.23 + public String[] getSupportedCommandStrings() {
1.24 + return new String[]{"STAT"};
1.25 }
1.26
1.27 @Override
1.28 - public boolean hasFinished()
1.29 - {
1.30 + public boolean hasFinished() {
1.31 return true;
1.32 }
1.33
1.34 @Override
1.35 - public String impliedCapability()
1.36 - {
1.37 + public String impliedCapability() {
1.38 return null;
1.39 }
1.40
1.41 @Override
1.42 - public boolean isStateful()
1.43 - {
1.44 + public boolean isStateful() {
1.45 return false;
1.46 }
1.47
1.48 // TODO: Method has various exit points => Refactor!
1.49 @Override
1.50 public void processLine(NNTPConnection conn, final String line, byte[] raw)
1.51 - throws IOException, StorageBackendException
1.52 - {
1.53 + throws IOException, StorageBackendException {
1.54 final String[] command = line.split(" ");
1.55
1.56 Article article = null;
1.57 @@ -94,7 +87,7 @@
1.58 }
1.59
1.60 conn.println("223 " + conn.getCurrentChannel().getIndexOf(article) + " "
1.61 - + article.getMessageID()
1.62 - + " article retrieved - request text separately");
1.63 + + article.getMessageID()
1.64 + + " article retrieved - request text separately");
1.65 }
1.66 }