You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/12/30 15:28:19 UTC

[commons-beanutils] branch master updated: Javadoc and dead space.

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-beanutils.git


The following commit(s) were added to refs/heads/master by this push:
     new ce86362  Javadoc and dead space.
ce86362 is described below

commit ce86362525ac6f7b507c487b6e61caa06bdda551
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Dec 30 10:28:14 2020 -0500

    Javadoc and dead space.
---
 .../beanutils2/converters/BooleanConverter.java    | 30 ++++++----------------
 1 file changed, 8 insertions(+), 22 deletions(-)

diff --git a/src/main/java/org/apache/commons/beanutils2/converters/BooleanConverter.java b/src/main/java/org/apache/commons/beanutils2/converters/BooleanConverter.java
index 110b797..01d1b69 100644
--- a/src/main/java/org/apache/commons/beanutils2/converters/BooleanConverter.java
+++ b/src/main/java/org/apache/commons/beanutils2/converters/BooleanConverter.java
@@ -45,12 +45,8 @@ package org.apache.commons.beanutils2.converters;
  */
 public final class BooleanConverter extends AbstractConverter {
 
-
-
-
-
     /**
-     * Create a {@link org.apache.commons.beanutils2.Converter} that will throw a
+     * Constructs a {@link org.apache.commons.beanutils2.Converter} that will throw a
      * {@link org.apache.commons.beanutils2.ConversionException}
      * if a conversion error occurs, ie the string value being converted is
      * not one of the known true strings, nor one of the known false strings.
@@ -60,7 +56,7 @@ public final class BooleanConverter extends AbstractConverter {
 
 
     /**
-     * Create a {@link org.apache.commons.beanutils2.Converter} that will return the specified default value
+     * Constructs a {@link org.apache.commons.beanutils2.Converter} that will return the specified default value
      * if a conversion error occurs, ie the string value being converted is
      * not one of the known true strings, nor one of the known false strings.
      *
@@ -76,7 +72,7 @@ public final class BooleanConverter extends AbstractConverter {
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils2.Converter} that will throw a
+     * Constructs a {@link org.apache.commons.beanutils2.Converter} that will throw a
      * {@link org.apache.commons.beanutils2.ConversionException}
      * if a conversion error occurs, ie the string value being converted is
      * not one of the known true strings, nor one of the known false strings.
@@ -99,7 +95,7 @@ public final class BooleanConverter extends AbstractConverter {
     }
 
     /**
-     * Create a {@link org.apache.commons.beanutils2.Converter} that will return
+     * Constructs a {@link org.apache.commons.beanutils2.Converter} that will return
      * the specified default value if a conversion error occurs.
      * <p>
      * The provided string arrays are copied, so that changes to the elements
@@ -128,15 +124,6 @@ public final class BooleanConverter extends AbstractConverter {
         this.falseStrings = copyStrings(falseStrings);
     }
 
-
-
-
-
-
-
-
-
-
     /**
      * The set of strings that are known to map to Boolean.TRUE.
      */
@@ -147,10 +134,8 @@ public final class BooleanConverter extends AbstractConverter {
      */
     private String[] falseStrings = {"false", "no", "n", "off", "0"};
 
-
-
     /**
-     * Return the default type this {@code Converter} handles.
+     * Gets the default type this {@code Converter} handles.
      *
      * @return The default type this {@code Converter} handles.
      * @since 1.8.0
@@ -161,7 +146,7 @@ public final class BooleanConverter extends AbstractConverter {
     }
 
     /**
-     * Convert the specified input object into an output object of the
+     * Converts the specified input object into an output object of the
      * specified type.
      *
      * @param <T> Target type of the conversion.
@@ -207,12 +192,13 @@ public final class BooleanConverter extends AbstractConverter {
     }
 
     /**
-     * This method creates a copy of the provided array, and ensures that
+     * Copies the provided array, and ensures that
      * all the strings in the newly created array contain only lower-case
      * letters.
      * <p>
      * Using this method to copy string arrays means that changes to the
      * src array do not modify the dst array.
+     * </p>
      */
     private static String[] copyStrings(final String[] src) {
         final String[] dst = new String[src.length];