1.1 --- a/src/org/sonews/daemon/command/GroupCommand.java Sun Aug 29 17:43:58 2010 +0200
1.2 +++ b/src/org/sonews/daemon/command/GroupCommand.java Sun Aug 29 18:17:37 2010 +0200
1.3 @@ -48,55 +48,48 @@
1.4 public class GroupCommand implements Command
1.5 {
1.6
1.7 - @Override
1.8 - public String[] getSupportedCommandStrings()
1.9 - {
1.10 - return new String[]{"GROUP"};
1.11 - }
1.12 + @Override
1.13 + public String[] getSupportedCommandStrings()
1.14 + {
1.15 + return new String[] {"GROUP"};
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 true;
1.44 - }
1.45 -
1.46 - @Override
1.47 - public void processLine(NNTPConnection conn, final String line, byte[] raw)
1.48 - throws IOException, StorageBackendException
1.49 - {
1.50 - final String[] command = line.split(" ");
1.51 + @Override
1.52 + public boolean isStateful()
1.53 + {
1.54 + return true;
1.55 + }
1.56
1.57 - Channel group;
1.58 - if(command.length >= 2)
1.59 - {
1.60 - group = Channel.getByName(command[1]);
1.61 - if(group == null || group.isDeleted())
1.62 - {
1.63 - conn.println("411 no such news group");
1.64 - }
1.65 - else
1.66 - {
1.67 - conn.setCurrentGroup(group);
1.68 - conn.println("211 " + group.getPostingsCount() + " " + group.getFirstArticleNumber()
1.69 - + " " + group.getLastArticleNumber() + " " + group.getName() + " group selected");
1.70 - }
1.71 - }
1.72 - else
1.73 - {
1.74 - conn.println("500 no group name given");
1.75 - }
1.76 - }
1.77 + @Override
1.78 + public void processLine(NNTPConnection conn, final String line, byte[] raw)
1.79 + throws IOException, StorageBackendException
1.80 + {
1.81 + final String[] command = line.split(" ");
1.82
1.83 + Channel group;
1.84 + if (command.length >= 2) {
1.85 + group = Channel.getByName(command[1]);
1.86 + if (group == null || group.isDeleted()) {
1.87 + conn.println("411 no such news group");
1.88 + } else {
1.89 + conn.setCurrentGroup(group);
1.90 + conn.println("211 " + group.getPostingsCount() + " " + group.getFirstArticleNumber()
1.91 + + " " + group.getLastArticleNumber() + " " + group.getName() + " group selected");
1.92 + }
1.93 + } else {
1.94 + conn.println("500 no group name given");
1.95 + }
1.96 + }
1.97 }