cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/sitemap/patterns PatternTranslator.java
Date Sun, 27 Feb 2000 14:57:59 GMT
pier        00/02/27 06:57:59

  Modified:    src/org/apache/cocoon/sitemap/patterns Tag: xml-cocoon2
                        PatternTranslator.java
  Log:
  [Cocoon 2.0] Fixed wrong exception throwing.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.6   +2 -2      xml-cocoon/src/org/apache/cocoon/sitemap/patterns/Attic/PatternTranslator.java
  
  Index: PatternTranslator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/sitemap/patterns/Attic/PatternTranslator.java,v
  retrieving revision 1.1.2.5
  retrieving revision 1.1.2.6
  diff -u -r1.1.2.5 -r1.1.2.6
  --- PatternTranslator.java	2000/02/27 12:56:21	1.1.2.5
  +++ PatternTranslator.java	2000/02/27 14:57:59	1.1.2.6
  @@ -19,7 +19,7 @@
    * 
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
  - * @version CVS $Revision: 1.1.2.5 $ $Date: 2000/02/27 12:56:21 $
  + * @version CVS $Revision: 1.1.2.6 $ $Date: 2000/02/27 14:57:59 $
    */
   public class PatternTranslator extends PatternMatcher {
   
  @@ -69,7 +69,7 @@
           if (this.identityTranslation) return(data);
           if ((this.targetPattern==null) || (super.sourcePattern==null))
               throw new IllegalStateException("Null internals");
  -        if (!super.match(data)) throw new IllegalArgumentException("No match");
  +        if (!super.match(data)) return(null);
           
           char x[]=data.toCharArray();
           return(this.translatePattern(x,super.sourcePattern,this.targetPattern));
  
  
  

Mime
View raw message