You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/02/21 17:53:14 UTC

cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/ant ComputeArchiveDocumentId.java

gregor      2004/02/21 08:53:14

  Modified:    src/java/org/apache/lenya/lucene/html HTMLParser.java
               src/java/org/apache/lenya/cms/ant
                        ComputeArchiveDocumentId.java
  Log:
  unnecessary ; according to eclipse
  
  Revision  Changes    Path
  1.13      +1 -25     cocoon-lenya/src/java/org/apache/lenya/lucene/html/HTMLParser.java
  
  Index: HTMLParser.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/lucene/html/HTMLParser.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- HTMLParser.java	2 Feb 2004 02:50:38 -0000	1.12
  +++ HTMLParser.java	21 Feb 2004 16:53:14 -0000	1.13
  @@ -93,7 +93,6 @@
       private Token jj_lastpos;
       private int jj_la;
       public boolean lookingAhead = false;
  -    private boolean jj_semLA;
       private int jj_gen;
       final private int[] jj_la1 = new int[13];
       final private int[] jj_la1_0 = {
  @@ -245,8 +244,6 @@
                       break;
                   }
   
  -                //System.out.println("HTMLParser().getSummary(): Current length: "+summary.length());
  -                //System.out.println("HTMLParser().getSummary(): wait(10)");
                   wait(10);
   
                   elapsedMillis = elapsedMillis + 10;
  @@ -265,7 +262,6 @@
           String tit = getTitle();
   
           if (sum.startsWith(tit)) {
  -            //return sum.substring(tit.length());
               return sum;
           } else {
               return sum;
  @@ -292,7 +288,6 @@
       }
   
       void addToSummary(String text) {
  -        //System.out.println("HTMLParser.addToSummary(): Current length: "+summary.length()+" ("+text+")");
           if (summary.length() < SUMMARY_LENGTH) {
               summary.append(text);
   
  @@ -305,7 +300,6 @@
       }
   
       void addToTitle(String text) {
  -        //System.out.println("HTMLParser.addToTitle(): Current length: "+title.length()+" ("+text+")");
           title.append(text);
       }
   
  @@ -315,7 +309,6 @@
           }
   
           if (inTitle) {
  -            //title.append(text);
               addToTitle(text);
           } else {
               addToSummary(text);
  @@ -342,7 +335,6 @@
   
           if (!afterSpace) {
               if (inTitle) {
  -                //title.append(" ");
                   addToTitle(" ");
               } else {
                   addToSummary(" ");
  @@ -374,7 +366,6 @@
               case Entity:
               case Space:
               case Punct:
  -                ;
   
                   break;
   
  @@ -466,7 +457,6 @@
           while (true) {
               switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
               case ArgName:
  -                ;
   
                   break;
   
  @@ -496,14 +486,12 @@
   
                   default:
                       jj_la1[3] = jj_gen;
  -                    ;
                   }
   
                   break;
   
               default:
                   jj_la1[4] = jj_gen;
  -                ;
               }
           }
   
  @@ -612,7 +600,6 @@
               case ArgValue:
               case ArgQuote1:
               case ArgQuote2:
  -                ;
   
                   break;
   
  @@ -669,7 +656,6 @@
               while (true) {
                   switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
                   case CommentText1:
  -                    ;
   
                       break;
   
  @@ -692,7 +678,6 @@
               while (true) {
                   switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
                   case CommentText2:
  -                    ;
   
                       break;
   
  @@ -1110,13 +1095,4 @@
           int arg;
           JJCalls next;
       }
  -
  -    //    void handleException(Exception e) {
  -    //      System.out.println(e.toString());  // print the error message
  -    //      System.out.println("Skipping...");
  -    //      Token t;
  -    //      do {
  -    //        t = getNextToken();
  -    //      } while (t.kind != TagEnd);
  -    //    }
   }
  
  
  
  1.3       +2 -2      cocoon-lenya/src/java/org/apache/lenya/cms/ant/ComputeArchiveDocumentId.java
  
  Index: ComputeArchiveDocumentId.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/ant/ComputeArchiveDocumentId.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ComputeArchiveDocumentId.java	28 Aug 2003 14:08:12 -0000	1.2
  +++ ComputeArchiveDocumentId.java	21 Feb 2004 16:53:14 -0000	1.3
  @@ -87,7 +87,7 @@
   		for (int i = 0; i < l-1; i++) {
   			st.nextToken();
   		}
  -		secdocumentid = "/" + st.nextToken();;
  +		secdocumentid = "/" + st.nextToken();
   		return secdocumentid;
   	}
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org