cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r123790 - /cocoon/branches/BRANCH_2_1_X/src/blocks/midi/java/org/apache/cocoon/serialization/XMidiSerializer.java
Date Fri, 31 Dec 2004 13:42:23 GMT
Author: antonio
Date: Fri Dec 31 05:42:22 2004
New Revision: 123790

URL: http://svn.apache.org/viewcvs?view=rev&rev=123790
Log:
Fix typo
Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/midi/java/org/apache/cocoon/serialization/XMidiSerializer.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/midi/java/org/apache/cocoon/serialization/XMidiSerializer.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/midi/java/org/apache/cocoon/serialization/XMidiSerializer.java?view=diff&rev=123790&p1=cocoon/branches/BRANCH_2_1_X/src/blocks/midi/java/org/apache/cocoon/serialization/XMidiSerializer.java&r1=123789&p2=cocoon/branches/BRANCH_2_1_X/src/blocks/midi/java/org/apache/cocoon/serialization/XMidiSerializer.java&r2=123790
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/midi/java/org/apache/cocoon/serialization/XMidiSerializer.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/midi/java/org/apache/cocoon/serialization/XMidiSerializer.java
Fri Dec 31 05:42:22 2004
@@ -33,6 +33,8 @@
  *
  * @author <a href="mailto:mark.leicester@energyintellect.com">Mark Leicester</a>
  * @author <a href="mailto:peter@palserv.com">Peter Loeb</a>
+ * 
+ * @version CVS $Id$
  */
 
 public class XMidiSerializer extends AbstractSerializer {
@@ -367,7 +369,7 @@
                 String typ = buffer.toString();
                 for (int i = 0; i < typ.length(); i++) {
                     if (typ.substring(i, i + 1).compareTo("0")
-                        < 0 | typ.substring(i, i + 1).compareTo("9")
+                        < 0 || typ.substring(i, i + 1).compareTo("9")
                         > 0) {
                         throw new ProcessingException(
                             "Invalid numeric midi format: " + typ);

Mime
View raw message