axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/message MessageElement.java
Date Fri, 10 Jan 2003 02:19:57 GMT
gdaniels    2003/01/09 18:19:57

  Modified:    java/src/org/apache/axis/message MessageElement.java
  Log:
  Remove redundant casts / useless assignment
  
  Revision  Changes    Path
  1.141     +3 -3      xml-axis/java/src/org/apache/axis/message/MessageElement.java
  
  Index: MessageElement.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/MessageElement.java,v
  retrieving revision 1.140
  retrieving revision 1.141
  diff -u -r1.140 -r1.141
  --- MessageElement.java	20 Dec 2002 17:28:22 -0000	1.140
  +++ MessageElement.java	10 Jan 2003 02:19:57 -0000	1.141
  @@ -767,7 +767,7 @@
           if (textRep != null) {
               boolean oldPretty = context.getPretty();
               context.setPretty(false);
  -            context.writeSafeString(((Text)textRep).getData());
  +            context.writeSafeString(textRep.getData());
               context.setPretty(oldPretty);
               return;
           }
  @@ -924,7 +924,7 @@
       public SOAPElement addTextNode(String s) throws SOAPException {
           org.apache.axis.message.Text text = new org.apache.axis.message.Text(s);
           try {
  -            addChild((MessageElement)text);
  +            addChild(text);
               return this;
           } catch (ClassCastException e) {
               throw new SOAPException(e);
  @@ -1005,7 +1005,7 @@
       }
   
       public boolean removeNamespaceDeclaration(String prefix) {
  -        AttributesImpl attributes = makeAttributesEditable();
  +        makeAttributesEditable();
           boolean removed = false;
   
           for (int i = 0; namespaces != null && i < namespaces.size() &&
!removed; i++) {
  
  
  

Mime
View raw message