< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Mode.java

Print this page

        

*** 1,8 **** /* * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. ! * @LastModified: Oct 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. --- 1,8 ---- /* * Copyright (c) 2015, 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.
*** 227,242 **** } return templates; } private int partition(List<Template> templates, int p, int r) { ! final Template x = (Template)templates.get(p); int i = p - 1; int j = r + 1; while (true) { ! while (x.compareTo((Template)templates.get(--j)) > 0); ! while (x.compareTo((Template)templates.get(++i)) < 0); if (i < j) { templates.set(j, templates.set(i, templates.get(j))); } else { return j; --- 227,242 ---- } return templates; } private int partition(List<Template> templates, int p, int r) { ! final Template x = templates.get(p); int i = p - 1; int j = r + 1; while (true) { ! while (x.compareTo(templates.get(--j)) > 0); ! while (x.compareTo(templates.get(++i)) < 0); if (i < j) { templates.set(j, templates.set(i, templates.get(j))); } else { return j;
*** 364,374 **** } else { boolean inserted = false; for (int i = 0; i < patterns.size(); i++) { final LocationPathPattern lppToCompare = ! (LocationPathPattern)patterns.get(i); if (pattern.noSmallerThan(lppToCompare)) { inserted = true; patterns.add(i, pattern); break; --- 364,374 ---- } else { boolean inserted = false; for (int i = 0; i < patterns.size(); i++) { final LocationPathPattern lppToCompare = ! patterns.get(i); if (pattern.noSmallerThan(lppToCompare)) { inserted = true; patterns.add(i, pattern); break;
*** 1134,1144 **** } final boolean[] isAttribute = new boolean[types.length]; final boolean[] isNamespace = new boolean[types.length]; for (int i = 0; i < names.size(); i++) { ! final String name = (String)names.get(i); isAttribute[i+DTM.NTYPES] = isAttributeName(name); isNamespace[i+DTM.NTYPES] = isNamespaceName(name); } // Compile all templates - regardless of pattern type --- 1134,1144 ---- } final boolean[] isAttribute = new boolean[types.length]; final boolean[] isNamespace = new boolean[types.length]; for (int i = 0; i < names.size(); i++) { ! final String name = names.get(i); isAttribute[i+DTM.NTYPES] = isAttributeName(name); isNamespace[i+DTM.NTYPES] = isNamespaceName(name); } // Compile all templates - regardless of pattern type
< prev index next >