< prev index next >
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/SyntaxTreeNode.java
Print this page
@@ -1,7 +1,8 @@
/*
- * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
+ * @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.
@@ -854,11 +855,11 @@
* Returns this element's last child
* @return The child node.
*/
protected final SyntaxTreeNode lastChild() {
if (_contents.isEmpty()) return null;
- return (SyntaxTreeNode)_contents.get(_contents.size() - 1);
+ return _contents.get(_contents.size() - 1);
}
/**
* Displays the contents of this syntax tree node (to stdout).
* This method is intended for debugging _only_, and should be overridden
< prev index next >