diff options
Diffstat (limited to 'libjava/classpath/javax/xml')
5 files changed, 43 insertions, 51 deletions
diff --git a/libjava/classpath/javax/xml/datatype/DatatypeFactory.java b/libjava/classpath/javax/xml/datatype/DatatypeFactory.java index 3f3a224799e..98a5690e873 100644 --- a/libjava/classpath/javax/xml/datatype/DatatypeFactory.java +++ b/libjava/classpath/javax/xml/datatype/DatatypeFactory.java @@ -91,7 +91,7 @@ public abstract class DatatypeFactory /** * Returns a new duration. - * @param durationInMilliseconds the duration in milliseconds + * @param durationInMilliSeconds the duration in milliseconds */ public abstract Duration newDuration(long durationInMilliSeconds); @@ -231,10 +231,6 @@ public abstract class DatatypeFactory * @param isPositive whether the duration is positive * @param years the number of years * @param months the number of months - * @param days the number of days - * @param hours the number of hours - * @param minutes th number of minutes - * @param seconds the number of seconds */ public Duration newDurationYearMonth(boolean isPositive, BigInteger years, @@ -254,10 +250,6 @@ public abstract class DatatypeFactory * @param isPositive whether the duration is positive * @param years the number of years * @param months the number of months - * @param days the number of days - * @param hours the number of hours - * @param minutes th number of minutes - * @param seconds the number of seconds */ public Duration newDurationYearMonth(boolean isPositive, int years, diff --git a/libjava/classpath/javax/xml/namespace/QName.java b/libjava/classpath/javax/xml/namespace/QName.java index c1ec4519d7a..7b8b194c33c 100644 --- a/libjava/classpath/javax/xml/namespace/QName.java +++ b/libjava/classpath/javax/xml/namespace/QName.java @@ -1,40 +1,40 @@ -/* - * QName.java - * Copyright (C) 2004 The Free Software Foundation - * - * This file is part of GNU JAXP, a library. - * - * GNU JAXP is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * GNU JAXP is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Linking this library statically or dynamically with other modules is - * making a combined work based on this library. Thus, the terms and - * conditions of the GNU General Public License cover the whole - * combination. - * - * As a special exception, the copyright holders of this library give you - * permission to link this library with independent modules to produce an - * executable, regardless of the license terms of these independent - * modules, and to copy and distribute the resulting executable under - * terms of your choice, provided that you also meet, for each linked - * independent module, the terms and conditions of the license of that - * module. An independent module is a module which is not derived from - * or based on this library. If you modify this library, you may extend - * this exception to your version of the library, but you are not - * obliged to do so. If you do not wish to do so, delete this - * exception statement from your version. - */ +/* QName.java - An XML qualified name. + Copyright (C) 2004 Free Software Foundation, Inc. + +This file is part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; see the file COPYING. If not, write to the +Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + package javax.xml.namespace; @@ -80,13 +80,13 @@ public class QName this.prefix = prefix; StringBuffer buf = new StringBuffer(); - if (namespaceURI != null && namespaceURI.length() > 0) + if (namespaceURI.length() > 0) { buf.append('{'); buf.append(namespaceURI); buf.append('}'); } - if (prefix != null && prefix.length() > 0) + if (prefix.length() > 0) { buf.append(prefix); buf.append(':'); diff --git a/libjava/classpath/javax/xml/parsers/DocumentBuilder.java b/libjava/classpath/javax/xml/parsers/DocumentBuilder.java index 56c55a3e320..a574c98d410 100644 --- a/libjava/classpath/javax/xml/parsers/DocumentBuilder.java +++ b/libjava/classpath/javax/xml/parsers/DocumentBuilder.java @@ -132,7 +132,7 @@ public abstract class DocumentBuilder /** * Parse the specified input source and return a DOM Document. - * @param is the input source + * @param source the input source * @exception IllegalArgumentException if the input source is null */ public abstract Document parse(InputSource source) diff --git a/libjava/classpath/javax/xml/parsers/SAXParser.java b/libjava/classpath/javax/xml/parsers/SAXParser.java index 1a6b1558da6..d38c6579e25 100644 --- a/libjava/classpath/javax/xml/parsers/SAXParser.java +++ b/libjava/classpath/javax/xml/parsers/SAXParser.java @@ -254,7 +254,7 @@ public abstract class SAXParser /** * Parse the specified input source, reporting SAX2 events to the * given handler. - * @param f an XML file + * @param is an XML file * @param dh the SAX2 handler * @exception IllegalArgumentException if the input source is null */ diff --git a/libjava/classpath/javax/xml/transform/Source.java b/libjava/classpath/javax/xml/transform/Source.java index d6edb036b03..2143b4ec459 100644 --- a/libjava/classpath/javax/xml/transform/Source.java +++ b/libjava/classpath/javax/xml/transform/Source.java @@ -48,7 +48,7 @@ public interface Source /** * Sets the XML system ID for this source. * This can be used to resolve external entities in the source. - * @param systemID the system ID URI + * @param systemId the system ID URI */ public void setSystemId(String systemId); |