This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git


The following commit(s) were added to refs/heads/master by this push:
     new d58a732f Package private class does not need to make its methods public
d58a732f is described below

commit d58a732f96d0396edcee53a086e9ff6e28ae2184
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue May 24 10:54:45 2022 -0400

    Package private class does not need to make its methods public
---
 .../configuration2/beanutils/XMLBeanDeclaration.java   | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/configuration2/beanutils/XMLBeanDeclaration.java
 
b/src/main/java/org/apache/commons/configuration2/beanutils/XMLBeanDeclaration.java
index 610a991f..797376fa 100644
--- 
a/src/main/java/org/apache/commons/configuration2/beanutils/XMLBeanDeclaration.java
+++ 
b/src/main/java/org/apache/commons/configuration2/beanutils/XMLBeanDeclaration.java
@@ -511,7 +511,7 @@ public class XMLBeanDeclaration implements BeanDeclaration {
          * @param nd the node
          * @param hndlr the handler
          */
-        public NodeData(final T nd, final NodeHandler<T> hndlr) {
+        NodeData(final T nd, final NodeHandler<T> hndlr) {
             node = nd;
             handler = hndlr;
         }
@@ -521,7 +521,7 @@ public class XMLBeanDeclaration implements BeanDeclaration {
          *
          * @return the node name
          */
-        public String nodeName() {
+        String nodeName() {
             return handler.nodeName(node);
         }
 
@@ -533,7 +533,7 @@ public class XMLBeanDeclaration implements BeanDeclaration {
          * @param config the configuration
          * @return the escaped node name
          */
-        public String escapedNodeName(final HierarchicalConfiguration<?> 
config) {
+        String escapedNodeName(final HierarchicalConfiguration<?> config) {
             return config.getExpressionEngine().nodeKey(node, 
StringUtils.EMPTY, handler);
         }
 
@@ -542,7 +542,7 @@ public class XMLBeanDeclaration implements BeanDeclaration {
          *
          * @return a list with the children
          */
-        public List<NodeData<T>> getChildren() {
+        List<NodeData<T>> getChildren() {
             return wrapInNodeData(handler.getChildren(node));
         }
 
@@ -553,7 +553,7 @@ public class XMLBeanDeclaration implements BeanDeclaration {
          * @param name the name of the desired child nodes
          * @return a list with the children with this name
          */
-        public List<NodeData<T>> getChildren(final String name) {
+        List<NodeData<T>> getChildren(final String name) {
             return wrapInNodeData(handler.getChildren(node, name));
         }
 
@@ -562,7 +562,7 @@ public class XMLBeanDeclaration implements BeanDeclaration {
          *
          * @return the attribute names of this node
          */
-        public Set<String> getAttributes() {
+        Set<String> getAttributes() {
             return handler.getAttributes(node);
         }
 
@@ -572,7 +572,7 @@ public class XMLBeanDeclaration implements BeanDeclaration {
          * @param key the key of the attribute
          * @return the value of this attribute
          */
-        public Object getAttribute(final String key) {
+        Object getAttribute(final String key) {
             return handler.getAttributeValue(node, key);
         }
 
@@ -582,7 +582,7 @@ public class XMLBeanDeclaration implements BeanDeclaration {
          * @param config the configuration
          * @return a flag whether this node is the configuration's root node
          */
-        public boolean matchesConfigRootNode(final 
HierarchicalConfiguration<?> config) {
+        boolean matchesConfigRootNode(final HierarchicalConfiguration<?> 
config) {
             return 
config.getNodeModel().getNodeHandler().getRootNode().equals(node);
         }
 
@@ -592,7 +592,7 @@ public class XMLBeanDeclaration implements BeanDeclaration {
          * @param nodes the list with nodes
          * @return the wrapped nodes
          */
-        private List<NodeData<T>> wrapInNodeData(final List<T> nodes) {
+        List<NodeData<T>> wrapInNodeData(final List<T> nodes) {
             final List<NodeData<T>> result = new ArrayList<>(nodes.size());
             for (final T node : nodes) {
                 result.add(new NodeData<>(node, handler));

Reply via email to