commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang Entities.java
Date Sat, 26 Jul 2003 00:32:19 GMT
ggregory    2003/07/25 17:32:19

  Modified:    lang/src/java/org/apache/commons/lang Entities.java
  Log:
  Severity	Description	Resource	In Folder	Location	Creation Time
  	Unnecessary cast to type int for expression of type char	Entities.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang
line 643	July 23, 2003 11:22:37 AM
  	Unnecessary cast to type int for expression of type char. It is already compatible with
the argument type int	Entities.java	Apache Jakarta Commons/lang/src/java/org/apache/commons/lang
line 642	July 23, 2003 11:22:37 AM
  
  Revision  Changes    Path
  1.11      +3 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/Entities.java
  
  Index: Entities.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/Entities.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Entities.java	14 Jul 2003 22:21:11 -0000	1.10
  +++ Entities.java	26 Jul 2003 00:32:19 -0000	1.11
  @@ -639,8 +639,8 @@
               char ch = str.charAt(i);
               String entityName = this.entityName(ch);
               if (entityName == null) {
  -                if (((int) ch) > 0x7F) {
  -                    int intValue = ((int) ch);
  +                if (ch > 0x7F) {
  +                    int intValue = ch;
                       buf.append("&#");
                       buf.append(intValue);
                       buf.append(';');
  
  
  

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


Mime
View raw message