From 249dc37426d6eb5b70a387317b6780b643ce4c06 Mon Sep 17 00:00:00 2001 From: Andrey Turbanov Date: Thu, 17 Aug 2023 07:13:38 +0000 Subject: [PATCH] 8314321: Remove unused field jdk.internal.util.xml.impl.Attrs.mAttrIdx Reviewed-by: alanb, vtewari, bpb --- .../classes/jdk/internal/util/xml/impl/Attrs.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/java.base/share/classes/jdk/internal/util/xml/impl/Attrs.java b/src/java.base/share/classes/jdk/internal/util/xml/impl/Attrs.java index 55fc7e165f4..15cbf1c6dce 100644 --- a/src/java.base/share/classes/jdk/internal/util/xml/impl/Attrs.java +++ b/src/java.base/share/classes/jdk/internal/util/xml/impl/Attrs.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -41,16 +41,12 @@ public class Attrs implements Attributes { * Number of attributes in the attributes string array. */ private char mLength; - /** - * current index - */ - private char mAttrIdx = 0; /** * Constructor. */ public Attrs() { - // The default number of attributies capacity is 8. + // The default number of attributes capacity is 8. mItems = new String[(8 << 3)]; } @@ -136,7 +132,7 @@ public class Attrs implements Attributes { * *

If the parser has not read a declaration for the attribute, or if the * parser does not report attribute types, then it must return the value - * "CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3, + * "CDATA" as stated in the XML 1.0 Recommendation (clause 3.3.3, * "Attribute-Value Normalization").

* *

For an enumerated attribute that is not a notation, the parser will