db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/generator/src/java/org/apache/torque/engine/sql SQLScanner.java
Date Fri, 08 Aug 2003 16:54:53 GMT
mpoeschl    2003/08/08 09:54:53

  Modified:    src/generator/src/java/org/apache/torque/engine/sql
                        SQLScanner.java
  Log:
  c is defined as char - remove unecessary casts
  
  Revision  Changes    Path
  1.3       +7 -7      db-torque/src/generator/src/java/org/apache/torque/engine/sql/SQLScanner.java
  
  Index: SQLScanner.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/sql/SQLScanner.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SQLScanner.java	18 Feb 2003 08:05:50 -0000	1.2
  +++ SQLScanner.java	8 Aug 2003 16:54:53 -0000	1.3
  @@ -216,7 +216,7 @@
               char c = (char) chr;
               inNegative = false;
   
  -            if ((char) c == COMMENT_DASH)
  +            if (c == COMMENT_DASH)
               {
                   readChar();
                   if ((char) chr == COMMENT_DASH)
  @@ -232,18 +232,18 @@
   
               if (inCommentDash)
               {
  -                if ((char) c == '\n' || (char) c == '\r')
  +                if (c == '\n' || c == '\r')
                   {
                       inCommentDash = false;
                   }
                   readChar();
               }
  -            else if ((char) c == COMMENT_POUND)
  +            else if (c == COMMENT_POUND)
               {
                   inComment = true;
                   readChar();
               }
  -            else if ((char) c == COMMENT_SLASH)
  +            else if (c == COMMENT_SLASH)
               {
                   readChar();
                   if ((char) chr == COMMENT_STAR)
  @@ -253,7 +253,7 @@
               }
               else if (inComment || inCommentSlashStar)
               {
  -                if ((char) c == '*')
  +                if (c == '*')
                   {
                       readChar();
                       if ((char) chr == COMMENT_SLASH)
  @@ -261,7 +261,7 @@
                           inCommentSlashStar = false;
                       }
                   }
  -                else if ((char) c == '\n' || (char) c == '\r')
  +                else if (c == '\n' || c == '\r')
                   {
                       inComment = false;
                   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message