Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
0edf099b
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0edf099b
编写于
10月 30, 2017
作者:
J
joehw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8181155: Fix lint warnings in JAXP repo: fallthrough and static
Reviewed-by: lancea, rriggs
上级
3c30db5b
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
57 addition
and
33 deletion
+57
-33
src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/Utility.java
...s/com/sun/org/apache/bcel/internal/classfile/Utility.java
+3
-2
src/java.xml/share/classes/com/sun/org/apache/bcel/internal/util/BCELFactory.java
...es/com/sun/org/apache/bcel/internal/util/BCELFactory.java
+3
-2
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Message.java
...sun/org/apache/xalan/internal/xsltc/compiler/Message.java
+3
-2
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Step.java
...om/sun/org/apache/xalan/internal/xsltc/compiler/Step.java
+1
-0
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Whitespace.java
.../org/apache/xalan/internal/xsltc/compiler/Whitespace.java
+1
-0
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/XPathLexer.java
.../org/apache/xalan/internal/xsltc/compiler/XPathLexer.java
+3
-0
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/XPathParser.java
...org/apache/xalan/internal/xsltc/compiler/XPathParser.java
+6
-6
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/dom/SAXImpl.java
.../com/sun/org/apache/xalan/internal/xsltc/dom/SAXImpl.java
+3
-0
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/runtime/output/TransletOutputHandlerFactory.java
...al/xsltc/runtime/output/TransletOutputHandlerFactory.java
+3
-2
src/java.xml/share/classes/com/sun/org/apache/xerces/internal/dom/DeferredDocumentTypeImpl.java
.../apache/xerces/internal/dom/DeferredDocumentTypeImpl.java
+3
-3
src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/traversers/XSDElementTraverser.java
...rces/internal/impl/xs/traversers/XSDElementTraverser.java
+3
-3
src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/traversers/XSDHandler.java
...apache/xerces/internal/impl/xs/traversers/XSDHandler.java
+1
-0
src/java.xml/share/classes/com/sun/org/apache/xerces/internal/parsers/AbstractDOMParser.java
...org/apache/xerces/internal/parsers/AbstractDOMParser.java
+4
-0
src/java.xml/share/classes/com/sun/org/apache/xml/internal/dtm/ref/DTMDocumentImpl.java
.../sun/org/apache/xml/internal/dtm/ref/DTMDocumentImpl.java
+3
-2
src/java.xml/share/classes/com/sun/org/apache/xml/internal/dtm/ref/dom2dtm/DOM2DTM.java
.../sun/org/apache/xml/internal/dtm/ref/dom2dtm/DOM2DTM.java
+1
-0
src/java.xml/share/classes/com/sun/org/apache/xml/internal/serialize/BaseMarkupSerializer.java
...g/apache/xml/internal/serialize/BaseMarkupSerializer.java
+1
-0
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/FilterExprWalker.java
.../sun/org/apache/xpath/internal/axes/FilterExprWalker.java
+1
-0
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/MatchPatternIterator.java
.../org/apache/xpath/internal/axes/MatchPatternIterator.java
+3
-3
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/WalkerFactory.java
...com/sun/org/apache/xpath/internal/axes/WalkerFactory.java
+5
-3
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/compiler/Lexer.java
...ses/com/sun/org/apache/xpath/internal/compiler/Lexer.java
+1
-0
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/patterns/ContextMatchStepPattern.java
...ache/xpath/internal/patterns/ContextMatchStepPattern.java
+3
-3
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/patterns/StepPattern.java
...m/sun/org/apache/xpath/internal/patterns/StepPattern.java
+1
-1
src/java.xml/share/classes/org/xml/sax/helpers/ParserAdapter.java
....xml/share/classes/org/xml/sax/helpers/ParserAdapter.java
+1
-1
未找到文件。
src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/Utility.java
浏览文件 @
0edf099b
/*
*
reserved comment block
*
DO NOT REMOVE OR ALTER!
*
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*
@LastModified: Oct 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -181,6 +181,7 @@ public abstract class Utility {
* @throws IOException if a failure from reading from the bytes argument
* occurs
*/
@SuppressWarnings
(
"fallthrough"
)
// by design for case Const.INSTANCEOF
public
static
String
codeToString
(
final
ByteSequence
bytes
,
final
ConstantPool
constant_pool
,
final
boolean
verbose
)
throws
IOException
{
final
short
opcode
=
(
short
)
bytes
.
readUnsignedByte
();
...
...
src/java.xml/share/classes/com/sun/org/apache/bcel/internal/util/BCELFactory.java
浏览文件 @
0edf099b
/*
*
reserved comment block
*
DO NOT REMOVE OR ALTER!
*
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*
@LastModified: Oct 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -175,6 +175,7 @@ class BCELFactory extends EmptyVisitor {
@Override
@SuppressWarnings
(
"fallthrough"
)
// by design for case Const.ANEWARRAY
public
void
visitAllocationInstruction
(
final
AllocationInstruction
i
)
{
Type
type
;
if
(
i
instanceof
CPInstruction
)
{
...
...
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Message.java
浏览文件 @
0edf099b
/*
*
reserved comment block
*
DO NOT REMOVE OR ALTER!
*
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*
@LastModified: Oct 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -54,6 +54,7 @@ final class Message extends Instruction {
return
Type
.
Void
;
}
@SuppressWarnings
(
"fallthrough"
)
// at default
public
void
translate
(
ClassGenerator
classGen
,
MethodGenerator
methodGen
)
{
final
ConstantPoolGen
cpg
=
classGen
.
getConstantPool
();
final
InstructionList
il
=
methodGen
.
getInstructionList
();
...
...
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Step.java
浏览文件 @
0edf099b
...
...
@@ -232,6 +232,7 @@ final class Step extends RelativeLocationPath {
translateStep
(
classGen
,
methodGen
,
hasPredicates
()
?
_predicates
.
size
()
-
1
:
-
1
);
}
@SuppressWarnings
(
"fallthrough"
)
// at case NodeTest.ANODE and NodeTest.ELEMENT
private
void
translateStep
(
ClassGenerator
classGen
,
MethodGenerator
methodGen
,
int
predicateIndex
)
{
...
...
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Whitespace.java
浏览文件 @
0edf099b
...
...
@@ -191,6 +191,7 @@ final class Whitespace extends TopLevelElement {
* Scans through the rules vector and looks for a rule of higher
* priority that contradicts the current rule.
*/
@SuppressWarnings
(
"fallthrough"
)
// case RULE_NAMESPACE
private
static
WhitespaceRule
findContradictingRule
(
List
<
WhitespaceRule
>
rules
,
WhitespaceRule
rule
)
{
for
(
WhitespaceRule
currentRule
:
rules
)
{
...
...
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/XPathLexer.java
浏览文件 @
0edf099b
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* @LastModified: Oct 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -73,6 +74,7 @@ class XPathLexer implements com.sun.java_cup.internal.runtime.Scanner {
* name instead of a keyword (Jira-1912). Look two tokens behind
* to desambiguate expressions like "* and *" or "and * and".
*/
@SuppressWarnings
(
"fallthrough"
)
Symbol
disambiguateOperator
(
int
ss
)
throws
Exception
{
switch
(
last
)
{
case
sym
.
STAR
:
...
...
@@ -745,6 +747,7 @@ class XPathLexer implements com.sun.java_cup.internal.runtime.Scanner {
":13,-1:2,184:10,-1:3,76,184,76:3,-1:4,184:6,64,-1:2,76,-1:6,184:5,-1:3,184:"
+
"4,232,184:8,-1:2,184:10,-1:3,76,184,76:3"
);
@SuppressWarnings
(
"fallthrough"
)
// at case 18 and -1
public
com
.
sun
.
java_cup
.
internal
.
runtime
.
Symbol
next_token
()
throws
java
.
io
.
IOException
,
Exception
...
...
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/XPathParser.java
浏览文件 @
0edf099b
...
...
@@ -1591,13 +1591,13 @@ class parser_actions {
RESULT
=
new
CurrentCall
(
fname
);
}
else
if
(
fname
==
parser
.
getQNameIgnoreDefaultNs
(
"number"
))
{
RESULT
=
new
NumberCall
(
fname
,
p
arser
.
EmptyArgs
);
RESULT
=
new
NumberCall
(
fname
,
XPathP
arser
.
EmptyArgs
);
}
else
if
(
fname
==
parser
.
getQNameIgnoreDefaultNs
(
"string"
))
{
RESULT
=
new
StringCall
(
fname
,
p
arser
.
EmptyArgs
);
RESULT
=
new
StringCall
(
fname
,
XPathP
arser
.
EmptyArgs
);
}
else
if
(
fname
==
parser
.
getQNameIgnoreDefaultNs
(
"concat"
))
{
RESULT
=
new
ConcatCall
(
fname
,
p
arser
.
EmptyArgs
);
RESULT
=
new
ConcatCall
(
fname
,
XPathP
arser
.
EmptyArgs
);
}
else
if
(
fname
==
parser
.
getQNameIgnoreDefaultNs
(
"true"
))
{
RESULT
=
new
BooleanExpr
(
true
);
...
...
@@ -1609,10 +1609,10 @@ class parser_actions {
RESULT
=
new
NameCall
(
fname
);
}
else
if
(
fname
==
parser
.
getQNameIgnoreDefaultNs
(
"generate-id"
))
{
RESULT
=
new
GenerateIdCall
(
fname
,
p
arser
.
EmptyArgs
);
RESULT
=
new
GenerateIdCall
(
fname
,
XPathP
arser
.
EmptyArgs
);
}
else
if
(
fname
==
parser
.
getQNameIgnoreDefaultNs
(
"string-length"
))
{
RESULT
=
new
StringLengthCall
(
fname
,
p
arser
.
EmptyArgs
);
RESULT
=
new
StringLengthCall
(
fname
,
XPathP
arser
.
EmptyArgs
);
}
else
if
(
fname
==
parser
.
getQNameIgnoreDefaultNs
(
"position"
))
{
RESULT
=
new
PositionCall
(
fname
);
...
...
@@ -1627,7 +1627,7 @@ class parser_actions {
RESULT
=
new
NamespaceUriCall
(
fname
);
}
else
{
RESULT
=
new
FunctionCall
(
fname
,
p
arser
.
EmptyArgs
);
RESULT
=
new
FunctionCall
(
fname
,
XPathP
arser
.
EmptyArgs
);
}
parser_result
=
new
Symbol
(
16
/*FunctionCall*/
,
(
parser_stack
.
get
(
parser_top
-
2
)).
left
,
(
parser_stack
.
get
(
parser_top
-
0
)).
right
,
RESULT
);
...
...
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/dom/SAXImpl.java
浏览文件 @
0edf099b
/*
* 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
...
...
@@ -1278,11 +1279,13 @@ public final class SAXImpl extends SAX2DTM2
// For "attribute::p:*", the principal node kind is
// attribute
m_baseIterator
=
getAxisIterator
(
axis
);
break
;
}
case
Axis
.
NAMESPACE
:
{
// This covers "namespace::p:*". It is syntactically
// correct, though it doesn't make much sense.
m_baseIterator
=
getAxisIterator
(
axis
);
break
;
}
default
:
{
// In all other cases, the principal node kind is
...
...
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/runtime/output/TransletOutputHandlerFactory.java
浏览文件 @
0edf099b
/*
*
reserved comment block
*
DO NOT REMOVE OR ALTER!
*
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*
@LastModified: Oct 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -145,6 +145,7 @@ public class TransletOutputHandlerFactory {
_indentNumber
=
value
;
}
@SuppressWarnings
(
"fallthrough"
)
// intentional at case STAX, SAX
public
SerializationHandler
getSerializationHandler
()
throws
IOException
,
ParserConfigurationException
{
...
...
src/java.xml/share/classes/com/sun/org/apache/xerces/internal/dom/DeferredDocumentTypeImpl.java
浏览文件 @
0edf099b
/*
*
reserved comment block
*
DO NOT REMOVE OR ALTER!
*
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*
@LastModified: Oct 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -161,8 +161,8 @@ public class DeferredDocumentTypeImpl
if
(((
DocumentImpl
)
getOwnerDocument
()).
allowGrammarAccess
){
insertBefore
(
node
,
last
);
last
=
node
;
break
;
}
break
;
}
// NOTE: Should never get here! -Ac
...
...
src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/traversers/XSDElementTraverser.java
浏览文件 @
0edf099b
/*
*
reserved comment block
*
DO NOT REMOVE OR ALTER!
*
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*
@LastModified: Oct 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -439,7 +439,7 @@ class XSDElementTraverser extends XSDAbstractTraverser {
fSchemaHandler
.
checkForDuplicateNames
(
(
schemaDoc
.
fTargetNamespace
==
null
)
?
","
+
DOMUtil
.
getAttrValue
(
child
,
SchemaSymbols
.
ATT_NAME
)
:
schemaDoc
.
fTargetNamespace
+
","
+
DOMUtil
.
getAttrValue
(
child
,
SchemaSymbols
.
ATT_NAME
),
fSchema
Handler
.
ATTRIBUTE_TYPE
,
fSchemaHandler
.
getIDRegistry
(),
fSchemaHandler
.
getIDRegistry_sub
(),
XSD
Handler
.
ATTRIBUTE_TYPE
,
fSchemaHandler
.
getIDRegistry
(),
fSchemaHandler
.
getIDRegistry_sub
(),
child
,
schemaDoc
);
}
}
else
if
(
childName
.
equals
(
SchemaSymbols
.
ELT_KEYREF
))
{
...
...
src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/traversers/XSDHandler.java
浏览文件 @
0edf099b
...
...
@@ -3025,6 +3025,7 @@ public class XSDHandler {
return
newComponents
;
}
@SuppressWarnings
(
"fallthrough"
)
private
void
expandRelatedComponents
(
XSObject
component
,
List
<
XSObject
>
componentList
,
Map
<
String
,
List
<
String
>>
dependencies
)
{
short
componentType
=
component
.
getType
();
switch
(
componentType
)
{
...
...
src/java.xml/share/classes/com/sun/org/apache/xerces/internal/parsers/AbstractDOMParser.java
浏览文件 @
0edf099b
...
...
@@ -600,6 +600,7 @@ public class AbstractDOMParser extends AbstractXMLDocumentParser {
*
* @throws XNIException Thrown by application to signal an error.
*/
@SuppressWarnings
(
"fallthrough"
)
// by design at case LSParserFilter.FILTER_SKIP
public
void
comment
(
XMLString
text
,
Augmentations
augs
)
throws
XNIException
{
if
(
fInDTD
)
{
if
(
fInternalSubset
!=
null
&&
!
fInDTDExternalSubset
)
{
...
...
@@ -673,6 +674,7 @@ public class AbstractDOMParser extends AbstractXMLDocumentParser {
*
* @throws XNIException Thrown by handler to signal an error.
*/
@SuppressWarnings
(
"fallthrough"
)
// by design at case LSParserFilter.FILTER_REJECT
public
void
processingInstruction
(
String
target
,
XMLString
data
,
Augmentations
augs
)
throws
XNIException
{
...
...
@@ -1416,6 +1418,7 @@ public class AbstractDOMParser extends AbstractXMLDocumentParser {
*
* @throws XNIException Thrown by handler to signal an error.
*/
@SuppressWarnings
(
"fallthrough"
)
// by design at case LSParserFilter.FILTER_REJECT
public
void
endCDATA
(
Augmentations
augs
)
throws
XNIException
{
fInCDATASection
=
false
;
...
...
@@ -2596,6 +2599,7 @@ public class AbstractDOMParser extends AbstractXMLDocumentParser {
* or removed fFistChunk must be set to true, otherwise some data can be lost.
*
*/
@SuppressWarnings
(
"fallthrough"
)
// by design at case LSParserFilter.FILTER_REJECT
protected
void
setCharacterData
(
boolean
sawChars
){
// handle character data
...
...
src/java.xml/share/classes/com/sun/org/apache/xml/internal/dtm/ref/DTMDocumentImpl.java
浏览文件 @
0edf099b
/*
*
reserved comment block
*
DO NOT REMOVE OR ALTER!
*
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*
@LastModified: Oct 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -1697,6 +1697,7 @@ implements DTM, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler
* @return String Value of this node, or null if not
* meaningful for this node type.
*/
@SuppressWarnings
(
"fallthrough"
)
public
String
getNodeValue
(
int
nodeHandle
)
{
nodes
.
readSlot
(
nodeHandle
,
gotslot
);
...
...
src/java.xml/share/classes/com/sun/org/apache/xml/internal/dtm/ref/dom2dtm/DOM2DTM.java
浏览文件 @
0edf099b
...
...
@@ -1651,6 +1651,7 @@ public class DOM2DTM extends DTMDefaultBaseIterators
* @param node Node whose subtree is to be walked, gathering the
* contents of all Text or CDATASection nodes.
*/
@SuppressWarnings
(
"fallthrough"
)
protected
static
void
dispatchNodeData
(
Node
node
,
org
.
xml
.
sax
.
ContentHandler
ch
,
int
depth
)
...
...
src/java.xml/share/classes/com/sun/org/apache/xml/internal/serialize/BaseMarkupSerializer.java
浏览文件 @
0edf099b
...
...
@@ -1020,6 +1020,7 @@ public abstract class BaseMarkupSerializer
* @throws IOException An I/O exception occured while
* serializing
*/
@SuppressWarnings
(
"fallthrough"
)
// by design at case Node.DOCUMENT_FRAGMENT_NODE
protected
void
serializeNode
(
Node
node
)
throws
IOException
{
...
...
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/FilterExprWalker.java
浏览文件 @
0edf099b
...
...
@@ -62,6 +62,7 @@ public class FilterExprWalker extends AxesWalker
*
* @throws javax.xml.transform.TransformerException
*/
@SuppressWarnings
(
"fallthrough"
)
public
void
init
(
Compiler
compiler
,
int
opPos
,
int
stepType
)
throws
javax
.
xml
.
transform
.
TransformerException
{
...
...
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/MatchPatternIterator.java
浏览文件 @
0edf099b
/*
*
reserved comment block
*
DO NOT REMOVE OR ALTER!
*
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*
@LastModified: Oct 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -299,7 +299,7 @@ public class MatchPatternIterator extends LocPathIterator
System
.
out
.
println
(
", "
+
m_cdtm
.
getNodeName
(
n
));
// if(m_cdtm.getNodeName(n).equals("near-east"))
System
.
out
.
println
(
"pattern: "
+
m_pattern
.
toString
());
m_pattern
.
debugWhatToShow
(
m_pattern
.
getWhatToShow
());
NodeTest
.
debugWhatToShow
(
m_pattern
.
getWhatToShow
());
}
XObject
score
=
m_pattern
.
execute
(
xctxt
);
...
...
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/WalkerFactory.java
浏览文件 @
0edf099b
/*
*
reserved comment block
*
DO NOT REMOVE OR ALTER!
*
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*
@LastModified: Oct 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -554,6 +554,7 @@ public class WalkerFactory
*
* @throws javax.xml.transform.TransformerException
*/
@SuppressWarnings
(
"fallthrough"
)
// by design at case OpCodes.FROM_DESCENDANTS
private
static
boolean
isOptimizableForDescendantIterator
(
Compiler
compiler
,
int
stepOpCodePos
,
int
stepIndex
)
throws
javax
.
xml
.
transform
.
TransformerException
...
...
@@ -1102,7 +1103,7 @@ public class WalkerFactory
System
.
out
.
print
(
", predAxis: "
+
Axis
.
getNames
(
ai
.
getAxis
()));
System
.
out
.
print
(
", what: "
);
System
.
out
.
print
(
" "
);
ai
.
debugWhatToShow
(
ai
.
getWhatToShow
());
NodeTest
.
debugWhatToShow
(
ai
.
getWhatToShow
());
}
int
argLen
=
compiler
.
getFirstPredicateOpPos
(
opPos
);
...
...
@@ -1621,6 +1622,7 @@ public class WalkerFactory
*
* @throws javax.xml.transform.TransformerException
*/
@SuppressWarnings
(
"fallthrough"
)
// by design at case OpCodes.FROM_ROOT
private
static
boolean
isNaturalDocOrder
(
Compiler
compiler
,
int
stepOpCodePos
,
int
stepIndex
,
int
analysis
)
throws
javax
.
xml
.
transform
.
TransformerException
...
...
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/compiler/Lexer.java
浏览文件 @
0edf099b
...
...
@@ -106,6 +106,7 @@ class Lexer
*
* @throws javax.xml.transform.TransformerException
*/
@SuppressWarnings
(
"fallthrough"
)
// on purpose at case '-', '(' and default
void
tokenize
(
String
pat
,
List
<
String
>
targetStrings
)
throws
javax
.
xml
.
transform
.
TransformerException
{
...
...
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/patterns/ContextMatchStepPattern.java
浏览文件 @
0edf099b
/*
*
reserved comment block
*
DO NOT REMOVE OR ALTER!
*
Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*
@LastModified: Oct 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
...
...
@@ -65,7 +65,7 @@ public class ContextMatchStepPattern extends StepPattern
if
(
xctxt
.
getIteratorRoot
()
==
xctxt
.
getCurrentNode
())
return
getStaticScore
();
else
return
this
.
SCORE_NONE
;
return
NodeTest
.
SCORE_NONE
;
}
/**
...
...
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/patterns/StepPattern.java
浏览文件 @
0edf099b
...
...
@@ -116,7 +116,7 @@ public class StepPattern extends NodeTest implements SubContextList, ExpressionO
m_targetString
=
PsuedoNames
.
PSEUDONAME_ROOT
;
break
;
case
DTMFilter
.
SHOW_ELEMENT
:
if
(
this
.
WILD
==
m_name
)
if
(
WILD
.
equals
(
m_name
)
)
m_targetString
=
PsuedoNames
.
PSEUDONAME_ANY
;
else
m_targetString
=
m_name
;
...
...
src/java.xml/share/classes/org/xml/sax/helpers/ParserAdapter.java
浏览文件 @
0edf099b
...
...
@@ -586,7 +586,7 @@ public class ParserAdapter implements XMLReader, DocumentHandler
// note funky case: localname can be null
// when declaring the default prefix, and
// yet the uri isn't null.
atts
.
addAttribute
(
ns
Support
.
XMLNS
,
prefix
,
atts
.
addAttribute
(
Namespace
Support
.
XMLNS
,
prefix
,
attQName
.
intern
(),
type
,
value
);
else
atts
.
addAttribute
(
""
,
""
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录