You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by da...@apache.org on 2002/07/27 10:16:25 UTC

cvs commit: jakarta-james/src/java/org/apache/james/nntpserver NNTPHandler.java

danny       2002/07/27 01:16:25

  Modified:    src/java/org/apache/james/nntpserver NNTPHandler.java
  Log:
  assert is a reserved word, renamed asserrt() to check()
  
  Revision  Changes    Path
  1.12      +3 -3      jakarta-james/src/java/org/apache/james/nntpserver/NNTPHandler.java
  
  Index: NNTPHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/nntpserver/NNTPHandler.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- NNTPHandler.java	18 Jan 2002 02:48:36 -0000	1.11
  +++ NNTPHandler.java	27 Jul 2002 08:16:25 -0000	1.12
  @@ -315,7 +315,7 @@
               if ( param.equalsIgnoreCase("NEWSGROUPS") )
                   output = LISTGroup.Factory.NEWSGROUPS(writer);
               else
  -                assert(param,param.equalsIgnoreCase("ACTIVE"));
  +                check(param,param.equalsIgnoreCase("ACTIVE"));
               if ( tok.hasMoreTokens() )
                   wildmat = tok.nextToken();
           }
  @@ -325,13 +325,13 @@
               output.show((NNTPGroup)iter.next());
           writer.println(".");
       }
  -    private void assert(String id,boolean b) {
  +    private void check(String id,boolean b) {
           if ( b == false )
               throw new RuntimeException(id);
       }
       private void doIHAVE(String id) {
           // see section 9.3.2.1
  -        assert(id,id.startsWith("<") && id.endsWith(">"));
  +        check(id,id.startsWith("<") && id.endsWith(">"));
           NNTPArticle article = repo.getArticleFromID(id);
           if ( article != null )
               writer.println("435 article not wanted - do not send it");
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>