< prev index next >
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/jaxp/JAXPExtensionsProvider.java
Print this page
@@ -1,8 +1,8 @@
/*
* Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
- * @LastModified: Oct 2017
+ * @LastModified: Nov 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
@@ -135,11 +135,11 @@
// XNodeSet object() returns NodeVector and not NodeList
// Explicitly getting NodeList by using nodelist()
if ( argument instanceof XNodeSet ) {
argList.add ( i, ((XNodeSet)argument).nodelist() );
} else if ( argument instanceof XObject ) {
- Object passedArgument = ((XObject)argument).object();
+ Object passedArgument = argument.object();
argList.add ( i, passedArgument );
} else {
argList.add ( i, argument );
}
}
@@ -186,11 +186,11 @@
// XNodeSet object() returns NodeVector and not NodeList
// Explicitly getting NodeList by using nodelist()
if ( argument instanceof XNodeSet ) {
argList.add ( i, ((XNodeSet)argument).nodelist() );
} else if ( argument instanceof XObject ) {
- Object passedArgument = ((XObject)argument).object();
+ Object passedArgument = argument.object();
argList.add ( i, passedArgument );
} else {
argList.add ( i, argument );
}
}
< prev index next >