Author: nextgens
Date: 2008-08-15 10:45:32 +0000 (Fri, 15 Aug 2008)
New Revision: 21891

Modified:
   trunk/plugins/UPnP/org/cybergarage/xml/Node.java
Log:
UPnP: don't need a new object here

Modified: trunk/plugins/UPnP/org/cybergarage/xml/Node.java
===================================================================
--- trunk/plugins/UPnP/org/cybergarage/xml/Node.java    2008-08-15 10:41:57 UTC 
(rev 21890)
+++ trunk/plugins/UPnP/org/cybergarage/xml/Node.java    2008-08-15 10:45:32 UTC 
(rev 21891)
@@ -3,7 +3,7 @@
 *      CyberXML for Java
 *
 *      Copyright (C) Satoshi Konno 2002
-*
+*
 *      File: Element.java
 *
 *      Revision;
@@ -62,7 +62,7 @@
        }

        public Node getParentNode() 
-       {
+       {
                return parentNode;
        }

@@ -98,7 +98,7 @@
        }

        public String getName() 
-       {
+       {
                return name;
        }

@@ -111,7 +111,7 @@
        //      value
        ////////////////////////////////////////////////

-       private String value = new String(); 
+       private String value = "";

        public void setValue(String value) 
        {
@@ -120,11 +120,11 @@

        public void setValue(int value) 
        {
-               setValue(Integer.toString(value));
+               setValue(value);
        }

        public String getValue() 
-       {
+       {
                return value;
        }

@@ -141,7 +141,7 @@
        public Attribute getAttribute(int index) {
                return attrList.getAttribute(index);
        }
-
+
        public Attribute getAttribute(String name) 
        {
                return attrList.getAttribute(name);
@@ -164,9 +164,9 @@
                return attrList.remove(attr);
        }

-       public boolean removeAttribute(String name) {
-               return removeAttribute(getAttribute(name));
-       }
+       public boolean removeAttribute(String name) {
+               return removeAttribute(getAttribute(name));
+       }

        public boolean hasAttributes()
        {
@@ -231,7 +231,7 @@
        public Node getNode(int index) {
                return nodeList.getNode(index);
        }
-
+
        public Node getNode(String name) 
        {
                return nodeList.getNode(name);
@@ -307,7 +307,7 @@
        }

        public Object getUserData() 
-       {
+       {
                return userData;
        }



Reply via email to