diff options
Diffstat (limited to 'src/com/sun/org/apache/xalan/internal/xsltc/compiler/UnsupportedElement.java')
-rw-r--r-- | src/com/sun/org/apache/xalan/internal/xsltc/compiler/UnsupportedElement.java | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/compiler/UnsupportedElement.java b/src/com/sun/org/apache/xalan/internal/xsltc/compiler/UnsupportedElement.java index 1f9e26c..e4c8e21 100644 --- a/src/com/sun/org/apache/xalan/internal/xsltc/compiler/UnsupportedElement.java +++ b/src/com/sun/org/apache/xalan/internal/xsltc/compiler/UnsupportedElement.java @@ -1,13 +1,13 @@ /* - * reserved comment block - * DO NOT REMOVE OR ALTER! + * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. */ /* - * Copyright 2001-2004 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * 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. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * @@ -23,19 +23,18 @@ package com.sun.org.apache.xalan.internal.xsltc.compiler; -import java.util.Vector; - import com.sun.org.apache.bcel.internal.generic.ConstantPoolGen; import com.sun.org.apache.bcel.internal.generic.INVOKESTATIC; import com.sun.org.apache.bcel.internal.generic.InstructionList; import com.sun.org.apache.bcel.internal.generic.PUSH; - import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator; import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg; import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator; import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type; import com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError; import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Util; +import java.util.List; +import java.util.Vector; /** * @author Morten Jorgensen @@ -83,11 +82,11 @@ final class UnsupportedElement extends SyntaxTreeNode { */ private void processFallbacks(Parser parser) { - Vector children = getContents(); + List<SyntaxTreeNode> children = getContents(); if (children != null) { final int count = children.size(); for (int i = 0; i < count; i++) { - SyntaxTreeNode child = (SyntaxTreeNode)children.elementAt(i); + SyntaxTreeNode child = children.get(i); if (child instanceof Fallback) { Fallback fallback = (Fallback)child; fallback.activate(); |