Skip to content

Commit 249dc37

Browse files
author
Andrey Turbanov
committedAug 17, 2023
8314321: Remove unused field jdk.internal.util.xml.impl.Attrs.mAttrIdx
Reviewed-by: alanb, vtewari, bpb
1 parent b78f5a1 commit 249dc37

File tree

1 file changed

+3
-7
lines changed
  • src/java.base/share/classes/jdk/internal/util/xml/impl

1 file changed

+3
-7
lines changed
 

‎src/java.base/share/classes/jdk/internal/util/xml/impl/Attrs.java

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -41,16 +41,12 @@ public class Attrs implements Attributes {
4141
* Number of attributes in the attributes string array.
4242
*/
4343
private char mLength;
44-
/**
45-
* current index
46-
*/
47-
private char mAttrIdx = 0;
4844

4945
/**
5046
* Constructor.
5147
*/
5248
public Attrs() {
53-
// The default number of attributies capacity is 8.
49+
// The default number of attributes capacity is 8.
5450
mItems = new String[(8 << 3)];
5551
}
5652

@@ -136,7 +132,7 @@ public String getQName(int index) {
136132
*
137133
* <p>If the parser has not read a declaration for the attribute, or if the
138134
* parser does not report attribute types, then it must return the value
139-
* "CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3,
135+
* "CDATA" as stated in the XML 1.0 Recommendation (clause 3.3.3,
140136
* "Attribute-Value Normalization").</p>
141137
*
142138
* <p>For an enumerated attribute that is not a notation, the parser will

0 commit comments

Comments
 (0)
Please sign in to comment.