--- old/src/java.xml/share/classes/com/sun/java_cup/internal/runtime/lr_parser.java 2017-11-06 22:18:05.140008423 -0800 +++ new/src/java.xml/share/classes/com/sun/java_cup/internal/runtime/lr_parser.java 2017-11-06 22:18:04.655961213 -0800 @@ -946,7 +946,7 @@ if (debug) debug_message("# Pop stack by one, state was # " + (stack.peek()).parse_state); - left_pos = ((Symbol)stack.pop()).left; + left_pos = stack.pop().left; tos--; /* if we have hit bottom, we fail */ --- old/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/lib/ExsltDatetime.java 2017-11-06 22:18:06.496140693 -0800 +++ new/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/lib/ExsltDatetime.java 2017-11-06 22:18:06.005092799 -0800 @@ -1,6 +1,6 @@ /* - * reserved comment block - * DO NOT REMOVE OR ALTER! + * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. + * @LastModified: Nov 2017 */ /* * Licensed to the Apache Software Foundation (ASF) under one or more @@ -616,7 +616,7 @@ public static boolean leapYear() { Calendar cal = Calendar.getInstance(); - int yr = (int)cal.get(Calendar.YEAR); + int yr = cal.get(Calendar.YEAR); return (yr % 400 == 0 || (yr % 100 != 0 && yr % 4 == 0)); } --- old/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/AttributeSet.java 2017-11-06 22:18:07.840271792 -0800 +++ new/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/AttributeSet.java 2017-11-06 22:18:07.369225848 -0800 @@ -1,6 +1,6 @@ /* * Copyright (c) 2015, 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 @@ -115,7 +115,7 @@ final List contents = getContents(); final int count = contents.size(); for (int i=0; i attributes = elements(); while (attributes.hasNext()) { - SyntaxTreeNode element = (SyntaxTreeNode)attributes.next(); + SyntaxTreeNode element = attributes.next(); if (element instanceof XslAttribute) { final XslAttribute attribute = (XslAttribute)element; attribute.translate(classGen, methodGen); --- old/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/BinOpExpr.java 2017-11-06 22:18:09.085393234 -0800 +++ new/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/BinOpExpr.java 2017-11-06 22:18:08.630348851 -0800 @@ -1,6 +1,6 @@ /* * Copyright (c) 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 @@ -83,11 +83,11 @@ new MethodType(Type.Void, tleft, tright)); if (ptype != null) { - final Type arg1 = (Type) ptype.argsType().get(0); + final Type arg1 = ptype.argsType().get(0); if (!arg1.identicalTo(tleft)) { _left = new CastExpr(_left, arg1); } - final Type arg2 = (Type) ptype.argsType().get(1); + final Type arg2 = ptype.argsType().get(1); if (!arg2.identicalTo(tright)) { _right = new CastExpr(_right, arg1); } --- old/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/FilterExpr.java 2017-11-06 22:18:10.349516529 -0800 +++ new/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/FilterExpr.java 2017-11-06 22:18:09.885471268 -0800 @@ -1,6 +1,6 @@ /* * Copyright (c) 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 @@ -75,7 +75,7 @@ if (_predicates != null) { final int n = _predicates.size(); for (int i = 0; i < n; i++) { - final Expression exp = (Expression)_predicates.get(i); + final Expression exp = _predicates.get(i); exp.setParser(parser); exp.setParent(this); } --- old/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/FunctionAvailableCall.java 2017-11-06 22:18:11.612639727 -0800 +++ new/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/FunctionAvailableCall.java 2017-11-06 22:18:11.146594271 -0800 @@ -1,6 +1,6 @@ /* * Copyright (c) 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 @@ -53,7 +53,7 @@ */ public FunctionAvailableCall(QName fname, List arguments) { super(fname, arguments); - _arg = (Expression)arguments.get(0); + _arg = arguments.get(0); _type = null; if (_arg instanceof LiteralExpr) { --- old/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/FunctionCall.java 2017-11-06 22:18:12.894764778 -0800 +++ new/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/FunctionCall.java 2017-11-06 22:18:12.428719323 -0800 @@ -1,6 +1,6 @@ /* * Copyright (c) 2015, 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 @@ -443,7 +443,7 @@ if (ptype != null) { for (int i = 0; i < n; i++) { - final Type argType = (Type) ptype.argsType().get(i); + final Type argType = ptype.argsType().get(i); final Expression exp = _arguments.get(i); if (!argType.identicalTo(exp.getType())) { try { @@ -557,7 +557,7 @@ hasThisArgument = true; Expression firstArg = _arguments.get(0); - Type firstArgType = (Type)firstArg.typeCheck(stable); + Type firstArgType = firstArg.typeCheck(stable); if (_namespace_format == NAMESPACE_FORMAT_CLASS && firstArgType instanceof ObjectType @@ -608,7 +608,7 @@ _type = null; // reset internal type for (int j, i = 0; i < nMethods; i++) { // Check if all paramteters to this method can be converted - final Method method = (Method)methods.get(i); + final Method method = methods.get(i); final Class[] paramTypes = method.getParameterTypes(); int currMethodDistance = 0; --- old/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/LogicalExpr.java 2017-11-06 22:18:14.167888951 -0800 +++ new/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/LogicalExpr.java 2017-11-06 22:18:13.707844081 -0800 @@ -1,6 +1,6 @@ /* * Copyright (c) 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 @@ -137,11 +137,11 @@ // Yes, the operation is supported if (haveType != null) { // Check if left-hand side operand must be type casted - Type arg1 = (Type)haveType.argsType().get(0); + Type arg1 = haveType.argsType().get(0); if (!arg1.identicalTo(tleft)) _left = new CastExpr(_left, arg1); // Check if right-hand side operand must be type casted - Type arg2 = (Type) haveType.argsType().get(1); + Type arg2 = haveType.argsType().get(1); if (!arg2.identicalTo(tright)) _right = new CastExpr(_right, arg1); // Return the result type for the operator we will use --- old/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Message.java 2017-11-06 22:18:15.446013612 -0800 +++ new/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Message.java 2017-11-06 22:18:14.995969717 -0800 @@ -1,6 +1,6 @@ /* * Copyright (c) 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 @@ -67,7 +67,7 @@ il.append(new PUSH(cpg, "")); break; case 1: - SyntaxTreeNode child = (SyntaxTreeNode) elementAt(0); + SyntaxTreeNode child = elementAt(0); if (child instanceof Text) { il.append(new PUSH(cpg, ((Text) child).getText())); break; --- old/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Mode.java 2017-11-06 22:18:16.713137200 -0800 +++ new/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Mode.java 2017-11-06 22:18:16.249091940 -0800 @@ -1,6 +1,6 @@ /* * Copyright (c) 2015, 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 @@ -229,12 +229,12 @@ } private int partition(List