diff options
Diffstat (limited to 'src/com/sun/org/apache/xalan/internal/xsltc/compiler/CastExpr.java')
-rw-r--r-- | src/com/sun/org/apache/xalan/internal/xsltc/compiler/CastExpr.java | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/compiler/CastExpr.java b/src/com/sun/org/apache/xalan/internal/xsltc/compiler/CastExpr.java index 07809ef..e6f0b45 100644 --- a/src/com/sun/org/apache/xalan/internal/xsltc/compiler/CastExpr.java +++ b/src/com/sun/org/apache/xalan/internal/xsltc/compiler/CastExpr.java @@ -1,15 +1,15 @@ /* - * 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 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 * - * 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -51,7 +51,7 @@ final class CastExpr extends Expression { /** * Legal conversions between internal types. */ - static private MultiHashtable InternalTypeMap = new MultiHashtable(); + private static final MultiHashtable<Type, Type> InternalTypeMap = new MultiHashtable<>(); static { // Possible type conversions between internal types @@ -118,6 +118,8 @@ final class CastExpr extends Expression { InternalTypeMap.put(Type.Object, Type.String); InternalTypeMap.put(Type.Void, Type.String); + + InternalTypeMap.makeUnmodifiable(); } private boolean _typeTest = false; |