1.1 --- a/src/org/sonews/daemon/command/NewGroupsCommand.java Sun Aug 29 17:28:58 2010 +0200
1.2 +++ b/src/org/sonews/daemon/command/NewGroupsCommand.java Sun Sep 11 15:05:04 2011 +0200
1.3 @@ -31,48 +31,44 @@
1.4 public class NewGroupsCommand implements Command
1.5 {
1.6
1.7 - @Override
1.8 - public String[] getSupportedCommandStrings()
1.9 - {
1.10 - return new String[]{"NEWGROUPS"};
1.11 - }
1.12 + @Override
1.13 + public String[] getSupportedCommandStrings()
1.14 + {
1.15 + return new String[] {"NEWGROUPS"};
1.16 + }
1.17
1.18 - @Override
1.19 - public boolean hasFinished()
1.20 - {
1.21 - return true;
1.22 - }
1.23 + @Override
1.24 + public boolean hasFinished()
1.25 + {
1.26 + return true;
1.27 + }
1.28
1.29 - @Override
1.30 - public String impliedCapability()
1.31 - {
1.32 - return null;
1.33 - }
1.34 + @Override
1.35 + public String impliedCapability()
1.36 + {
1.37 + return null;
1.38 + }
1.39
1.40 - @Override
1.41 - public boolean isStateful()
1.42 - {
1.43 - return false;
1.44 - }
1.45 + @Override
1.46 + public boolean isStateful()
1.47 + {
1.48 + return false;
1.49 + }
1.50
1.51 - @Override
1.52 - public void processLine(NNTPConnection conn, final String line, byte[] raw)
1.53 - throws IOException, StorageBackendException
1.54 - {
1.55 - final String[] command = line.split(" ");
1.56 + @Override
1.57 + public void processLine(NNTPConnection conn, final String line, byte[] raw)
1.58 + throws IOException, StorageBackendException
1.59 + {
1.60 + final String[] command = line.split(" ");
1.61
1.62 - if(command.length == 3)
1.63 - {
1.64 - conn.println("231 list of new newsgroups follows");
1.65 + if (command.length == 3) {
1.66 + conn.println("231 list of new newsgroups follows");
1.67
1.68 - // Currently we do not store a group's creation date;
1.69 - // so we return an empty list which is a valid response
1.70 - conn.println(".");
1.71 - }
1.72 - else
1.73 - {
1.74 - conn.println("500 invalid command usage");
1.75 - }
1.76 - }
1.77 -
1.78 + // Currently we do not store a group's creation date;
1.79 + // so we return an empty list which is a valid response
1.80 + conn.println(".");
1.81 + } else {
1.82 + conn.println("500 invalid command usage");
1.83 + }
1.84 + }
1.85 }