You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@commons.apache.org by gg...@apache.org on 2024/08/15 00:03:25 UTC
svn commit: r1087217 [23/44] - in /websites/production/commons/content/proper/commons-cli: ./ apidocs/ apidocs/org/apache/commons/cli/ apidocs/org/apache/commons/cli/class-use/ apidocs/src-html/org/apache/commons/cli/ jacoco/ jacoco/org.apache.commons....
Modified: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/CommandLine.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/CommandLine.java.html (original)
+++ websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/CommandLine.java.html Thu Aug 15 00:03:23 2024
@@ -44,23 +44,23 @@ public class CommandLine implements Seri
*
* @since 1.4
*/
-<span class="fc" id="L47"> public static final class Builder {</span>
+<span class="nc" id="L47"> public static final class Builder {</span>
/**
* Prints an Option to {@link System#out}.
*/
-<span class="fc" id="L52"> static final Consumer<Option> DEPRECATED_HANDLER = o -> System.out.println(o.toDeprecatedString());</span>
+<span class="nc" id="L52"> static final Consumer<Option> DEPRECATED_HANDLER = o -> System.out.println(o.toDeprecatedString());</span>
/** The unrecognized options/arguments */
-<span class="fc" id="L55"> private final List<String> args = new LinkedList<>();</span>
+<span class="nc" id="L55"> private final List<String> args = new LinkedList<>();</span>
/** The processed options */
-<span class="fc" id="L58"> private final List<Option> options = new ArrayList<>();</span>
+<span class="nc" id="L58"> private final List<Option> options = new ArrayList<>();</span>
/**
* Deprecated Option handler.
*/
-<span class="fc" id="L63"> private Consumer<Option> deprecatedHandler = DEPRECATED_HANDLER;</span>
+<span class="nc" id="L63"> private Consumer<Option> deprecatedHandler = DEPRECATED_HANDLER;</span>
/**
* Adds left-over unrecognized option/argument.
@@ -70,10 +70,10 @@ public class CommandLine implements Seri
* @return this Builder instance for method chaining.
*/
public Builder addArg(final String arg) {
-<span class="fc bfc" id="L73" title="All 2 branches covered."> if (arg != null) {</span>
-<span class="fc" id="L74"> args.add(arg);</span>
+<span class="nc bnc" id="L73" title="All 2 branches missed."> if (arg != null) {</span>
+<span class="nc" id="L74"> args.add(arg);</span>
}
-<span class="fc" id="L76"> return this;</span>
+<span class="nc" id="L76"> return this;</span>
}
/**
@@ -84,10 +84,10 @@ public class CommandLine implements Seri
* @return this Builder instance for method chaining.
*/
public Builder addOption(final Option opt) {
-<span class="fc bfc" id="L87" title="All 2 branches covered."> if (opt != null) {</span>
-<span class="fc" id="L88"> options.add(opt);</span>
+<span class="nc bnc" id="L87" title="All 2 branches missed."> if (opt != null) {</span>
+<span class="nc" id="L88"> options.add(opt);</span>
}
-<span class="fc" id="L90"> return this;</span>
+<span class="nc" id="L90"> return this;</span>
}
/**
@@ -96,7 +96,7 @@ public class CommandLine implements Seri
* @return the new instance.
*/
public CommandLine build() {
-<span class="fc" id="L99"> return new CommandLine(args, options, deprecatedHandler);</span>
+<span class="nc" id="L99"> return new CommandLine(args, options, deprecatedHandler);</span>
}
/**
@@ -107,8 +107,8 @@ public class CommandLine implements Seri
* @since 1.7.0
*/
public Builder setDeprecatedHandler(final Consumer<Option> deprecatedHandler) {
-<span class="fc" id="L110"> this.deprecatedHandler = deprecatedHandler;</span>
-<span class="fc" id="L111"> return this;</span>
+<span class="nc" id="L110"> this.deprecatedHandler = deprecatedHandler;</span>
+<span class="nc" id="L111"> return this;</span>
}
}
@@ -122,7 +122,7 @@ public class CommandLine implements Seri
* @since 1.7.0
*/
public static Builder builder() {
-<span class="fc" id="L125"> return new Builder();</span>
+<span class="nc" id="L125"> return new Builder();</span>
}
/** The unrecognized options/arguments */
@@ -143,17 +143,17 @@ public class CommandLine implements Seri
* Creates a command line.
*/
protected CommandLine() {
-<span class="fc" id="L146"> this(new LinkedList<>(), new ArrayList<>(), Builder.DEPRECATED_HANDLER);</span>
-<span class="fc" id="L147"> }</span>
+<span class="nc" id="L146"> this(new LinkedList<>(), new ArrayList<>(), Builder.DEPRECATED_HANDLER);</span>
+<span class="nc" id="L147"> }</span>
/**
* Creates a command line.
*/
-<span class="fc" id="L152"> private CommandLine(final List<String> args, final List<Option> options, final Consumer<Option> deprecatedHandler) {</span>
-<span class="fc" id="L153"> this.args = Objects.requireNonNull(args, "args");</span>
-<span class="fc" id="L154"> this.options = Objects.requireNonNull(options, "options");</span>
-<span class="fc" id="L155"> this.deprecatedHandler = deprecatedHandler;</span>
-<span class="fc" id="L156"> }</span>
+<span class="nc" id="L152"> private CommandLine(final List<String> args, final List<Option> options, final Consumer<Option> deprecatedHandler) {</span>
+<span class="nc" id="L153"> this.args = Objects.requireNonNull(args, "args");</span>
+<span class="nc" id="L154"> this.options = Objects.requireNonNull(options, "options");</span>
+<span class="nc" id="L155"> this.deprecatedHandler = deprecatedHandler;</span>
+<span class="nc" id="L156"> }</span>
/**
* Adds left-over unrecognized option/argument.
@@ -161,10 +161,10 @@ public class CommandLine implements Seri
* @param arg the unrecognized option/argument.
*/
protected void addArg(final String arg) {
-<span class="fc bfc" id="L164" title="All 2 branches covered."> if (arg != null) {</span>
-<span class="fc" id="L165"> args.add(arg);</span>
+<span class="nc bnc" id="L164" title="All 2 branches missed."> if (arg != null) {</span>
+<span class="nc" id="L165"> args.add(arg);</span>
}
-<span class="fc" id="L167"> }</span>
+<span class="nc" id="L167"> }</span>
/**
* Adds an option to the command line. The values of the option are stored.
@@ -172,13 +172,13 @@ public class CommandLine implements Seri
* @param opt the processed option.
*/
protected void addOption(final Option opt) {
-<span class="fc bfc" id="L175" title="All 2 branches covered."> if (opt != null) {</span>
-<span class="fc" id="L176"> options.add(opt);</span>
+<span class="nc bnc" id="L175" title="All 2 branches missed."> if (opt != null) {</span>
+<span class="nc" id="L176"> options.add(opt);</span>
}
-<span class="fc" id="L178"> }</span>
+<span class="nc" id="L178"> }</span>
private <T> T get(final Supplier<T> supplier) {
-<span class="fc bfc" id="L181" title="All 2 branches covered."> return supplier == null ? null : supplier.get();</span>
+<span class="nc bnc" id="L181" title="All 2 branches missed."> return supplier == null ? null : supplier.get();</span>
}
/**
@@ -187,7 +187,7 @@ public class CommandLine implements Seri
* @return remaining items passed in but not parsed as a {@code List}.
*/
public List<String> getArgList() {
-<span class="fc" id="L190"> return args;</span>
+<span class="nc" id="L190"> return args;</span>
}
/**
@@ -196,7 +196,7 @@ public class CommandLine implements Seri
* @return remaining items passed in but not parsed as an array.
*/
public String[] getArgs() {
-<span class="fc" id="L199"> return args.toArray(Util.EMPTY_STRING_ARRAY);</span>
+<span class="nc" id="L199"> return args.toArray(Util.EMPTY_STRING_ARRAY);</span>
}
/**
@@ -208,7 +208,7 @@ public class CommandLine implements Seri
*/
@Deprecated
public Object getOptionObject(final char opt) {
-<span class="fc" id="L211"> return getOptionObject(String.valueOf(opt));</span>
+<span class="nc" id="L211"> return getOptionObject(String.valueOf(opt));</span>
}
/**
@@ -221,10 +221,10 @@ public class CommandLine implements Seri
@Deprecated
public Object getOptionObject(final String opt) {
try {
-<span class="fc" id="L224"> return getParsedOptionValue(opt);</span>
-<span class="fc" id="L225"> } catch (final ParseException pe) {</span>
-<span class="fc" id="L226"> System.err.println("Exception found converting " + opt + " to desired type: " + pe.getMessage());</span>
-<span class="fc" id="L227"> return null;</span>
+<span class="nc" id="L224"> return getParsedOptionValue(opt);</span>
+<span class="nc" id="L225"> } catch (final ParseException pe) {</span>
+<span class="nc" id="L226"> System.err.println("Exception found converting " + opt + " to desired type: " + pe.getMessage());</span>
+<span class="nc" id="L227"> return null;</span>
}
}
@@ -240,13 +240,13 @@ public class CommandLine implements Seri
* @since 1.5.0
*/
public Properties getOptionProperties(final Option option) {
-<span class="fc" id="L243"> final Properties props = new Properties();</span>
-<span class="fc bfc" id="L244" title="All 2 branches covered."> for (final Option processedOption : options) {</span>
-<span class="fc bfc" id="L245" title="All 2 branches covered."> if (processedOption.equals(option)) {</span>
-<span class="fc" id="L246"> processPropertiesFromValues(props, processedOption.getValuesList());</span>
+<span class="nc" id="L243"> final Properties props = new Properties();</span>
+<span class="nc bnc" id="L244" title="All 2 branches missed."> for (final Option processedOption : options) {</span>
+<span class="nc bnc" id="L245" title="All 2 branches missed."> if (processedOption.equals(option)) {</span>
+<span class="nc" id="L246"> processPropertiesFromValues(props, processedOption.getValuesList());</span>
}
-<span class="fc" id="L248"> }</span>
-<span class="fc" id="L249"> return props;</span>
+ }
+<span class="nc" id="L249"> return props;</span>
}
/**
@@ -260,13 +260,13 @@ public class CommandLine implements Seri
* @since 1.2
*/
public Properties getOptionProperties(final String opt) {
-<span class="fc" id="L263"> final Properties props = new Properties();</span>
-<span class="fc bfc" id="L264" title="All 2 branches covered."> for (final Option option : options) {</span>
-<span class="fc bfc" id="L265" title="All 4 branches covered."> if (opt.equals(option.getOpt()) || opt.equals(option.getLongOpt())) {</span>
-<span class="fc" id="L266"> processPropertiesFromValues(props, option.getValuesList());</span>
+<span class="nc" id="L263"> final Properties props = new Properties();</span>
+<span class="nc bnc" id="L264" title="All 2 branches missed."> for (final Option option : options) {</span>
+<span class="nc bnc" id="L265" title="All 4 branches missed."> if (opt.equals(option.getOpt()) || opt.equals(option.getLongOpt())) {</span>
+<span class="nc" id="L266"> processPropertiesFromValues(props, option.getValuesList());</span>
}
-<span class="fc" id="L268"> }</span>
-<span class="fc" id="L269"> return props;</span>
+ }
+<span class="nc" id="L269"> return props;</span>
}
/**
@@ -275,7 +275,7 @@ public class CommandLine implements Seri
* @return an array of the processed {@link Option}s.
*/
public Option[] getOptions() {
-<span class="fc" id="L278"> return options.toArray(Option.EMPTY_ARRAY);</span>
+<span class="nc" id="L278"> return options.toArray(Option.EMPTY_ARRAY);</span>
}
/**
@@ -285,7 +285,7 @@ public class CommandLine implements Seri
* @return Value of the argument if option is set, and has an argument, otherwise null.
*/
public String getOptionValue(final char opt) {
-<span class="fc" id="L288"> return getOptionValue(String.valueOf(opt));</span>
+<span class="nc" id="L288"> return getOptionValue(String.valueOf(opt));</span>
}
/**
@@ -296,7 +296,7 @@ public class CommandLine implements Seri
* @return Value of the argument if option is set, and has an argument, otherwise {@code defaultValue}.
*/
public String getOptionValue(final char opt, final String defaultValue) {
-<span class="fc" id="L299"> return getOptionValue(String.valueOf(opt), () -> defaultValue);</span>
+<span class="nc" id="L299"> return getOptionValue(String.valueOf(opt), () -> defaultValue);</span>
}
/**
@@ -308,54 +308,92 @@ public class CommandLine implements Seri
* @since 1.7.0
*/
public String getOptionValue(final char opt, final Supplier<String> defaultValue) {
-<span class="fc" id="L311"> return getOptionValue(String.valueOf(opt), defaultValue);</span>
+<span class="nc" id="L311"> return getOptionValue(String.valueOf(opt), defaultValue);</span>
}
/**
* Gets the first argument, if any, of this option.
*
- * @param option the name of the option.
+ * @param option the option.
* @return Value of the argument if option is set, and has an argument, otherwise null.
* @since 1.5.0
*/
public String getOptionValue(final Option option) {
-<span class="fc" id="L322"> final String[] values = getOptionValues(option);</span>
-<span class="fc bfc" id="L323" title="All 2 branches covered."> return values == null ? null : values[0];</span>
+<span class="nc" id="L322"> final String[] values = getOptionValues(option);</span>
+<span class="nc bnc" id="L323" title="All 2 branches missed."> return values == null ? null : values[0];</span>
}
/**
* Gets the first argument, if any, of an option.
*
- * @param option name of the option.
+ * @param option the option.
* @param defaultValue is the default value to be returned if the option is not specified.
* @return Value of the argument if option is set, and has an argument, otherwise {@code defaultValue}.
* @since 1.5.0
*/
public String getOptionValue(final Option option, final String defaultValue) {
-<span class="fc" id="L335"> return getOptionValue(option, () -> defaultValue);</span>
+<span class="nc" id="L335"> return getOptionValue(option, () -> defaultValue);</span>
}
/**
* Gets the first argument, if any, of an option.
*
- * @param option name of the option.
+ * @param option the option.
* @param defaultValue is a supplier for the default value to be returned if the option is not specified.
* @return Value of the argument if option is set, and has an argument, otherwise {@code defaultValue}.
* @since 1.7.0
*/
public String getOptionValue(final Option option, final Supplier<String> defaultValue) {
-<span class="fc" id="L347"> final String answer = getOptionValue(option);</span>
-<span class="fc bfc" id="L348" title="All 2 branches covered."> return answer != null ? answer : get(defaultValue);</span>
+<span class="nc" id="L347"> final String answer = getOptionValue(option);</span>
+<span class="nc bnc" id="L348" title="All 2 branches missed."> return answer != null ? answer : get(defaultValue);</span>
+ }
+
+ /**
+ * Gets the first argument, if any, of this option group.
+ *
+ * @param optionGroup the option group.
+ * @return Value of the argument if option group is selected, and has an argument, otherwise null.
+ * @since 1.9.0
+ */
+ public String getOptionValue(final OptionGroup optionGroup) {
+<span class="nc" id="L359"> final String[] values = getOptionValues(optionGroup);</span>
+<span class="nc bnc" id="L360" title="All 2 branches missed."> return values == null ? null : values[0];</span>
}
/**
+ * Gets the first argument, if any, of an option group.
+ *
+ * @param optionGroup the option group.
+ * @param defaultValue is the default value to be returned if the option group is not selected.
+ * @return Value of the argument if option group is selected, and has an argument, otherwise {@code defaultValue}.
+ * @since 1.9.0
+ */
+ public String getOptionValue(final OptionGroup optionGroup, final String defaultValue) {
+<span class="nc" id="L372"> return getOptionValue(optionGroup, () -> defaultValue);</span>
+ }
+
+ /**
+ * Gets the first argument, if any, of an option group.
+ *
+ * @param optionGroup the option group..
+ * @param defaultValue is a supplier for the default value to be returned if the option group is not selected.
+ * @return Value of the argument if option group is selected, and has an argument, otherwise {@code defaultValue}.
+ * @since 1.9.0
+ */
+ public String getOptionValue(final OptionGroup optionGroup, final Supplier<String> defaultValue) {
+<span class="nc" id="L384"> final String answer = getOptionValue(optionGroup);</span>
+<span class="nc bnc" id="L385" title="All 2 branches missed."> return answer != null ? answer : get(defaultValue);</span>
+ }
+
+
+ /**
* Gets the first argument, if any, of this option.
*
* @param opt the name of the option.
* @return Value of the argument if option is set, and has an argument, otherwise null.
*/
public String getOptionValue(final String opt) {
-<span class="fc" id="L358"> return getOptionValue(resolveOption(opt));</span>
+<span class="nc" id="L396"> return getOptionValue(resolveOption(opt));</span>
}
/**
@@ -366,7 +404,7 @@ public class CommandLine implements Seri
* @return Value of the argument if option is set, and has an argument, otherwise {@code defaultValue}.
*/
public String getOptionValue(final String opt, final String defaultValue) {
-<span class="fc" id="L369"> return getOptionValue(resolveOption(opt), () -> defaultValue);</span>
+<span class="nc" id="L407"> return getOptionValue(resolveOption(opt), () -> defaultValue);</span>
}
/**
@@ -378,7 +416,7 @@ public class CommandLine implements Seri
* @since 1.7.0
*/
public String getOptionValue(final String opt, final Supplier<String> defaultValue) {
-<span class="fc" id="L381"> return getOptionValue(resolveOption(opt), defaultValue);</span>
+<span class="nc" id="L419"> return getOptionValue(resolveOption(opt), defaultValue);</span>
}
@@ -389,30 +427,44 @@ public class CommandLine implements Seri
* @return Values of the argument if option is set, and has an argument, otherwise null.
*/
public String[] getOptionValues(final char opt) {
-<span class="fc" id="L392"> return getOptionValues(String.valueOf(opt));</span>
+<span class="nc" id="L430"> return getOptionValues(String.valueOf(opt));</span>
}
/**
* Gets the array of values, if any, of an option.
*
- * @param option string name of the option.
+ * @param option the option.
* @return Values of the argument if option is set, and has an argument, otherwise null.
* @since 1.5.0
*/
public String[] getOptionValues(final Option option) {
-<span class="fc bfc" id="L403" title="All 2 branches covered."> if (option == null) {</span>
-<span class="fc" id="L404"> return null;</span>
- }
-<span class="fc bfc" id="L406" title="All 2 branches covered."> if (option.isDeprecated()) {</span>
-<span class="fc" id="L407"> handleDeprecated(option);</span>
+<span class="nc bnc" id="L441" title="All 2 branches missed."> if (option == null) {</span>
+<span class="nc" id="L442"> return null;</span>
}
-<span class="fc" id="L409"> final List<String> values = new ArrayList<>();</span>
-<span class="fc bfc" id="L410" title="All 2 branches covered."> for (final Option processedOption : options) {</span>
-<span class="fc bfc" id="L411" title="All 2 branches covered."> if (processedOption.equals(option)) {</span>
-<span class="fc" id="L412"> values.addAll(processedOption.getValuesList());</span>
+<span class="nc" id="L444"> final List<String> values = new ArrayList<>();</span>
+<span class="nc bnc" id="L445" title="All 2 branches missed."> for (final Option processedOption : options) {</span>
+<span class="nc bnc" id="L446" title="All 2 branches missed."> if (processedOption.equals(option)) {</span>
+<span class="nc bnc" id="L447" title="All 2 branches missed."> if (option.isDeprecated()) {</span>
+<span class="nc" id="L448"> handleDeprecated(option);</span>
+ }
+<span class="nc" id="L450"> values.addAll(processedOption.getValuesList());</span>
}
-<span class="fc" id="L414"> }</span>
-<span class="fc bfc" id="L415" title="All 2 branches covered."> return values.isEmpty() ? null : values.toArray(Util.EMPTY_STRING_ARRAY);</span>
+ }
+<span class="nc bnc" id="L453" title="All 2 branches missed."> return values.isEmpty() ? null : values.toArray(Util.EMPTY_STRING_ARRAY);</span>
+ }
+
+ /**
+ * Gets the array of values, if any, of an option group.
+ *
+ * @param optionGroup the option group.
+ * @return Values of the argument if option group is selected, and has an argument, otherwise null.
+ * @since 1.9.0
+ */
+ public String[] getOptionValues(final OptionGroup optionGroup) {
+<span class="nc bnc" id="L464" title="All 4 branches missed."> if (optionGroup == null || !optionGroup.isSelected()) {</span>
+<span class="nc" id="L465"> return null;</span>
+ }
+<span class="nc" id="L467"> return getOptionValues(optionGroup.getSelected());</span>
}
/**
@@ -422,7 +474,7 @@ public class CommandLine implements Seri
* @return Values of the argument if option is set, and has an argument, otherwise null.
*/
public String[] getOptionValues(final String opt) {
-<span class="fc" id="L425"> return getOptionValues(resolveOption(opt));</span>
+<span class="nc" id="L477"> return getOptionValues(resolveOption(opt));</span>
}
/**
@@ -436,7 +488,7 @@ public class CommandLine implements Seri
* @since 1.5.0
*/
public <T> T getParsedOptionValue(final char opt) throws ParseException {
-<span class="fc" id="L439"> return getParsedOptionValue(String.valueOf(opt));</span>
+<span class="nc" id="L491"> return getParsedOptionValue(String.valueOf(opt));</span>
}
/**
@@ -451,7 +503,7 @@ public class CommandLine implements Seri
* @since 1.7.0
*/
public <T> T getParsedOptionValue(final char opt, final Supplier<T> defaultValue) throws ParseException {
-<span class="fc" id="L454"> return getParsedOptionValue(String.valueOf(opt), defaultValue);</span>
+<span class="nc" id="L506"> return getParsedOptionValue(String.valueOf(opt), defaultValue);</span>
}
/**
@@ -466,13 +518,13 @@ public class CommandLine implements Seri
* @since 1.7.0
*/
public <T> T getParsedOptionValue(final char opt, final T defaultValue) throws ParseException {
-<span class="fc" id="L469"> return getParsedOptionValue(String.valueOf(opt), defaultValue);</span>
+<span class="nc" id="L521"> return getParsedOptionValue(String.valueOf(opt), defaultValue);</span>
}
/**
* Gets a version of this {@code Option} converted to a particular type.
*
- * @param option the name of the option.
+ * @param option the option.
* @param <T> The return type for the method.
* @return the value parsed into a particular object.
* @throws ParseException if there are problems turning the option value into the desired type
@@ -480,13 +532,13 @@ public class CommandLine implements Seri
* @since 1.5.0
*/
public <T> T getParsedOptionValue(final Option option) throws ParseException {
-<span class="fc" id="L483"> return getParsedOptionValue(option, () -> null);</span>
+<span class="nc" id="L535"> return getParsedOptionValue(option, () -> null);</span>
}
/**
* Gets a version of this {@code Option} converted to a particular type.
*
- * @param option the name of the option.
+ * @param option the option.
* @param defaultValue the default value to return if opt is not set.
* @param <T> The return type for the method.
* @return the value parsed into a particular object.
@@ -496,24 +548,24 @@ public class CommandLine implements Seri
*/
@SuppressWarnings("unchecked")
public <T> T getParsedOptionValue(final Option option, final Supplier<T> defaultValue) throws ParseException {
-<span class="fc bfc" id="L499" title="All 2 branches covered."> if (option == null) {</span>
-<span class="fc" id="L500"> return get(defaultValue);</span>
+<span class="nc bnc" id="L551" title="All 2 branches missed."> if (option == null) {</span>
+<span class="nc" id="L552"> return get(defaultValue);</span>
}
-<span class="fc" id="L502"> final String res = getOptionValue(option);</span>
+<span class="nc" id="L554"> final String res = getOptionValue(option);</span>
try {
-<span class="fc bfc" id="L504" title="All 2 branches covered."> if (res == null) {</span>
-<span class="fc" id="L505"> return get(defaultValue);</span>
+<span class="nc bnc" id="L556" title="All 2 branches missed."> if (res == null) {</span>
+<span class="nc" id="L557"> return get(defaultValue);</span>
}
-<span class="fc" id="L507"> return (T) option.getConverter().apply(res);</span>
-<span class="fc" id="L508"> } catch (final Throwable e) {</span>
-<span class="fc" id="L509"> throw ParseException.wrap(e);</span>
+<span class="nc" id="L559"> return (T) option.getConverter().apply(res);</span>
+<span class="nc" id="L560"> } catch (final Throwable e) {</span>
+<span class="nc" id="L561"> throw ParseException.wrap(e);</span>
}
}
/**
* Gets a version of this {@code Option} converted to a particular type.
*
- * @param option the name of the option.
+ * @param option the option.
* @param defaultValue the default value to return if opt is not set.
* @param <T> The return type for the method.
* @return the value parsed into a particular object.
@@ -522,7 +574,54 @@ public class CommandLine implements Seri
* @since 1.7.0
*/
public <T> T getParsedOptionValue(final Option option, final T defaultValue) throws ParseException {
-<span class="fc" id="L525"> return getParsedOptionValue(option, () -> defaultValue);</span>
+<span class="nc" id="L577"> return getParsedOptionValue(option, () -> defaultValue);</span>
+ }
+
+ /**
+ * Gets a version of this {@code OptionGroup} converted to a particular type.
+ *
+ * @param optionGroup the option group.
+ * @param <T> The return type for the method.
+ * @return the value parsed into a particular object.
+ * @throws ParseException if there are problems turning the selected option value into the desired type
+ * @see PatternOptionBuilder
+ * @since 1.9.0
+ */
+ public <T> T getParsedOptionValue(final OptionGroup optionGroup) throws ParseException {
+<span class="nc" id="L591"> return getParsedOptionValue(optionGroup, () -> null);</span>
+ }
+
+ /**
+ * Gets a version of this {@code OptionGroup} converted to a particular type.
+ *
+ * @param optionGroup the option group.
+ * @param defaultValue the default value to return if opt is not set.
+ * @param <T> The return type for the method.
+ * @return the value parsed into a particular object.
+ * @throws ParseException if there are problems turning the selected option value into the desired type
+ * @see PatternOptionBuilder
+ * @since 1.9.0
+ */
+ public <T> T getParsedOptionValue(final OptionGroup optionGroup, final Supplier<T> defaultValue) throws ParseException {
+<span class="nc bnc" id="L606" title="All 4 branches missed."> if (optionGroup == null || !optionGroup.isSelected()) {</span>
+<span class="nc" id="L607"> return get(defaultValue);</span>
+ }
+<span class="nc" id="L609"> return getParsedOptionValue(optionGroup.getSelected(), defaultValue);</span>
+ }
+
+ /**
+ * Gets a version of this {@code OptionGroup} converted to a particular type.
+ *
+ * @param optionGroup the option group.
+ * @param defaultValue the default value to return if an option is not selected.
+ * @param <T> The return type for the method.
+ * @return the value parsed into a particular object.
+ * @throws ParseException if there are problems turning the option value into the desired type
+ * @see PatternOptionBuilder
+ * @since 1.9.0
+ */
+ public <T> T getParsedOptionValue(final OptionGroup optionGroup, final T defaultValue) throws ParseException {
+<span class="nc" id="L624"> return getParsedOptionValue(optionGroup, () -> defaultValue);</span>
}
/**
@@ -536,7 +635,7 @@ public class CommandLine implements Seri
* @since 1.2
*/
public <T> T getParsedOptionValue(final String opt) throws ParseException {
-<span class="fc" id="L539"> return getParsedOptionValue(resolveOption(opt));</span>
+<span class="nc" id="L638"> return getParsedOptionValue(resolveOption(opt));</span>
}
/**
@@ -551,7 +650,7 @@ public class CommandLine implements Seri
* @since 1.7.0
*/
public <T> T getParsedOptionValue(final String opt, final Supplier<T> defaultValue) throws ParseException {
-<span class="fc" id="L554"> return getParsedOptionValue(resolveOption(opt), defaultValue);</span>
+<span class="nc" id="L653"> return getParsedOptionValue(resolveOption(opt), defaultValue);</span>
}
/**
@@ -566,7 +665,7 @@ public class CommandLine implements Seri
* @since 1.7.0
*/
public <T> T getParsedOptionValue(final String opt, final T defaultValue) throws ParseException {
-<span class="fc" id="L569"> return getParsedOptionValue(resolveOption(opt), defaultValue);</span>
+<span class="nc" id="L668"> return getParsedOptionValue(resolveOption(opt), defaultValue);</span>
}
/**
@@ -575,10 +674,10 @@ public class CommandLine implements Seri
* @param option a deprecated option.
*/
private void handleDeprecated(final Option option) {
-<span class="pc bpc" id="L578" title="1 of 2 branches missed."> if (deprecatedHandler != null) {</span>
-<span class="fc" id="L579"> deprecatedHandler.accept(option);</span>
+<span class="nc bnc" id="L677" title="All 2 branches missed."> if (deprecatedHandler != null) {</span>
+<span class="nc" id="L678"> deprecatedHandler.accept(option);</span>
}
-<span class="fc" id="L581"> }</span>
+<span class="nc" id="L680"> }</span>
/**
* jkeyes - commented out until it is implemented properly
@@ -605,7 +704,7 @@ public class CommandLine implements Seri
* @return true if set, false if not.
*/
public boolean hasOption(final char opt) {
-<span class="fc" id="L608"> return hasOption(String.valueOf(opt));</span>
+<span class="nc" id="L707"> return hasOption(String.valueOf(opt));</span>
}
/**
@@ -616,11 +715,25 @@ public class CommandLine implements Seri
* @since 1.5.0
*/
public boolean hasOption(final Option opt) {
-<span class="fc" id="L619"> final boolean result = options.contains(opt);</span>
-<span class="fc bfc" id="L620" title="All 4 branches covered."> if (result && opt.isDeprecated()) {</span>
-<span class="fc" id="L621"> handleDeprecated(opt);</span>
+<span class="nc" id="L718"> final boolean result = options.contains(opt);</span>
+<span class="nc bnc" id="L719" title="All 4 branches missed."> if (result && opt.isDeprecated()) {</span>
+<span class="nc" id="L720"> handleDeprecated(opt);</span>
+ }
+<span class="nc" id="L722"> return result;</span>
+ }
+
+ /**
+ * Tests to see if an option has been set.
+ *
+ * @param optionGroup the option group to check.
+ * @return true if set, false if not.
+ * @since 1.9.0
+ */
+ public boolean hasOption(final OptionGroup optionGroup) {
+<span class="nc bnc" id="L733" title="All 4 branches missed."> if (optionGroup == null || !optionGroup.isSelected()) {</span>
+<span class="nc" id="L734"> return false;</span>
}
-<span class="fc" id="L623"> return result;</span>
+<span class="nc" id="L736"> return hasOption(optionGroup.getSelected());</span>
}
/**
@@ -630,7 +743,7 @@ public class CommandLine implements Seri
* @return true if set, false if not.
*/
public boolean hasOption(final String opt) {
-<span class="fc" id="L633"> return hasOption(resolveOption(opt));</span>
+<span class="nc" id="L746"> return hasOption(resolveOption(opt));</span>
}
/**
@@ -639,7 +752,7 @@ public class CommandLine implements Seri
* @return an {@code Iterator} over the processed {@link Option} members of this {@link CommandLine}.
*/
public Iterator<Option> iterator() {
-<span class="fc" id="L642"> return options.iterator();</span>
+<span class="nc" id="L755"> return options.iterator();</span>
}
/**
@@ -650,14 +763,14 @@ public class CommandLine implements Seri
* @param values the list of values to parse.
*/
private void processPropertiesFromValues(final Properties props, final List<String> values) {
-<span class="fc bfc" id="L653" title="All 2 branches covered."> for (int i = 0; i < values.size(); i += 2) {</span>
-<span class="fc bfc" id="L654" title="All 2 branches covered."> if (i + 1 < values.size()) {</span>
-<span class="fc" id="L655"> props.put(values.get(i), values.get(i + 1));</span>
- } else {
-<span class="fc" id="L657"> props.put(values.get(i), "true");</span>
+<span class="nc bnc" id="L766" title="All 2 branches missed."> for (int i = 0; i < values.size(); i += 2) {</span>
+<span class="nc bnc" id="L767" title="All 2 branches missed."> if (i + 1 < values.size()) {</span>
+<span class="nc" id="L768"> props.put(values.get(i), values.get(i + 1));</span>
+<span class="nc" id="L769"> } else {</span>
+<span class="nc" id="L770"> props.put(values.get(i), "true");</span>
}
}
-<span class="fc" id="L660"> }</span>
+<span class="nc" id="L773"> }</span>
/**
* Retrieves the option object given the long or short option as a String
@@ -666,15 +779,15 @@ public class CommandLine implements Seri
* @return Canonicalized option.
*/
private Option resolveOption(final String opt) {
-<span class="fc" id="L669"> final String actual = Util.stripLeadingHyphens(opt);</span>
-<span class="fc bfc" id="L670" title="All 2 branches covered."> if (actual != null) {</span>
-<span class="fc bfc" id="L671" title="All 2 branches covered."> for (final Option option : options) {</span>
-<span class="fc bfc" id="L672" title="All 4 branches covered."> if (actual.equals(option.getOpt()) || actual.equals(option.getLongOpt())) {</span>
-<span class="fc" id="L673"> return option;</span>
+<span class="nc" id="L782"> final String actual = Util.stripLeadingHyphens(opt);</span>
+<span class="nc bnc" id="L783" title="All 2 branches missed."> if (actual != null) {</span>
+<span class="nc bnc" id="L784" title="All 2 branches missed."> for (final Option option : options) {</span>
+<span class="nc bnc" id="L785" title="All 4 branches missed."> if (actual.equals(option.getOpt()) || actual.equals(option.getLongOpt())) {</span>
+<span class="nc" id="L786"> return option;</span>
}
-<span class="fc" id="L675"> }</span>
+ }
}
-<span class="fc" id="L677"> return null;</span>
+<span class="nc" id="L790"> return null;</span>
}
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html>
\ No newline at end of file
Modified: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/Converter.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/Converter.html (original)
+++ websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/Converter.html Thu Aug 15 00:03:23 2024
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>Converter</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CLI</a> > <a href="index.html" class="el_package">org.apache.commons.cli</a> > <span class="el_class">Converter</span></div><h1>Converter</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class=
"sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 53</td><td class="ctr2">100%</td><td class="bar">0 of 2</td><td class="ctr2">100%</td><td class="ctr1">0</td><td class="ctr2">7</td><td class="ctr1">0</
td><td class="ctr2">8</td><td class="ctr1">0</td><td class="ctr2">6</td></tr></tfoot><tbody><tr><td id="a5"><a href="Converter.java.html#L42" class="el_method">static {...}</a></td><td class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="17" alt="17"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">8</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a3"><a href="Converter.java.html#L69" class="el_method">lambda$static$3(String)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="77" height="10" title="11" alt="11"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h1">0</td><td class="ct
r2" id="i1">1</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a2"><a href="Converter.java.html#L62" class="el_method">lambda$static$2(String)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="77" height="10" title="11" alt="11"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g0">2</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a4"><a href="Converter.java.html#L79" class="el_method">lambda$static$4(String)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="49" height="10" title="7" alt="7"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ct
r1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i3">1</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a1"><a href="Converter.java.html#L57" class="el_method">lambda$static$1(String)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="35" height="10" title="5" alt="5"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a0"><a href="Converter.java.html#L42" class="el_method">lambda$static$0(String)</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="14" height="10" title="2" alt="2"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr
1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">1</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html>
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>Converter</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CLI</a> > <a href="index.html" class="el_package">org.apache.commons.cli</a> > <span class="el_class">Converter</span></div><h1>Converter</h1><p>A different version of class was executed at runtime.</p><table class="covera
ge" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">53 of 53</td><td class="ctr2">0%</td><td class="bar">2 of 2</td><td class="ctr2">0%</td><td class
="ctr1">7</td><td class="ctr2">7</td><td class="ctr1">8</td><td class="ctr2">8</td><td class="ctr1">6</td><td class="ctr2">6</td></tr></tfoot><tbody><tr><td id="a5"><a href="Converter.java.html#L42" class="el_method">static {...}</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="17" alt="17"/></td><td class="ctr2" id="c0">0%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h0">8</td><td class="ctr2" id="i0">8</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="Converter.java.html#L62" class="el_method">lambda$4(String)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="77" height="10" title="11" alt="11"/></td><td class="ctr2" id="c1">0%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="2" alt="2"/></td><td clas
s="ctr2" id="e0">0%</td><td class="ctr1" id="f0">2</td><td class="ctr2" id="g0">2</td><td class="ctr1" id="h1">1</td><td class="ctr2" id="i1">1</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a2"><a href="Converter.java.html#L69" class="el_method">lambda$5(String)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="77" height="10" title="11" alt="11"/></td><td class="ctr2" id="c2">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">1</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a3"><a href="Converter.java.html#L79" class="el_method">lambda$7(String)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="49" height="10" title="7" alt="7"/></td><td class="ctr2" id="c3">0%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</
td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">1</td><td class="ctr2" id="i3">1</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a4"><a href="Converter.java.html" class="el_method">lambda$8(String)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/redbar.gif" width="35" height="10" title="5" alt="5"/></td><td class="ctr2" id="c4">0%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">0</td><td class="ctr1" id="j4">1</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a0"><a href="Converter.java.html#L42" class="el_method">lambda$0(String)</a></td><td class="bar" id="b5"><img src="../jacoco-resources/redbar.gif" width="14" height="10" title="2" alt="2"/></td><td class="ctr2" id="c5">0%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5"
>1</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h4">1</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j5">1</td><td class="ctr2" id="k5">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html>
\ No newline at end of file
Modified: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/Converter.java.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/Converter.java.html (original)
+++ websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/Converter.java.html Thu Aug 15 00:03:23 2024
@@ -39,44 +39,44 @@ public interface Converter<T, E exten
/**
* The default converter. Does nothing.
*/
-<span class="fc" id="L42"> Converter<?, RuntimeException> DEFAULT = s -> s;</span>
+<span class="nc" id="L42"> Converter<?, RuntimeException> DEFAULT = s -> s;</span>
/**
* Class name converter. Calls {@link Class#forName(String)}.
*/
-<span class="fc" id="L47"> Converter<Class<?>, ClassNotFoundException> CLASS = Class::forName;</span>
+<span class="nc" id="L47"> Converter<Class<?>, ClassNotFoundException> CLASS = Class::forName;</span>
/**
* File name converter. Calls {@link File#File(String)}.
*/
-<span class="fc" id="L52"> Converter<File, NullPointerException> FILE = File::new;</span>
+<span class="nc" id="L52"> Converter<File, NullPointerException> FILE = File::new;</span>
/**
* Path converter. Calls {@link Paths#get(java.net.URI)}.
*/
-<span class="fc" id="L57"> Converter<Path, InvalidPathException> PATH = Paths::get;</span>
+<span class="nc" id="L57"> Converter<Path, InvalidPathException> PATH = Paths::get;</span>
/**
* Number converter. Converts to a Double if a decimal point ('.') is in the string or a Long otherwise.
*/
-<span class="fc bfc" id="L62" title="All 2 branches covered."> Converter<Number, NumberFormatException> NUMBER = s -> s.indexOf('.') != -1 ? (Number) Double.valueOf(s) : (Number) Long.valueOf(s);</span>
+<span class="nc bnc" id="L62" title="All 2 branches missed."> Converter<Number, NumberFormatException> NUMBER = s -> s.indexOf('.') != -1 ? (Number) Double.valueOf(s) : (Number) Long.valueOf(s);</span>
/**
* Converts a class name to an instance of the class. Uses the Class converter to find the class and then call the default constructor.
*
* @see #CLASS
*/
-<span class="fc" id="L69"> Converter<Object, ReflectiveOperationException> OBJECT = s -> CLASS.apply(s).getConstructor().newInstance();</span>
+<span class="nc" id="L69"> Converter<Object, ReflectiveOperationException> OBJECT = s -> CLASS.apply(s).getConstructor().newInstance();</span>
/**
* Creates a URL. Calls {@link URL#URL(String)}.
*/
-<span class="fc" id="L74"> Converter<URL, MalformedURLException> URL = URL::new;</span>
+<span class="nc" id="L74"> Converter<URL, MalformedURLException> URL = URL::new;</span>
/**
* Converts to a date using the format string Form "EEE MMM dd HH:mm:ss zzz yyyy".
*/
-<span class="fc" id="L79"> Converter<Date, java.text.ParseException> DATE = s -> new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy").parse(s);</span>
+<span class="nc" id="L79"> Converter<Date, java.text.ParseException> DATE = s -> new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy").parse(s);</span>
/**
* Applies the conversion function to the String argument.
Modified: websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DefaultParser$Builder.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DefaultParser$Builder.html (original)
+++ websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DefaultParser$Builder.html Thu Aug 15 00:03:23 2024
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>DefaultParser.Builder</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CLI</a> > <a href="index.html" class="el_package">org.apache.commons.cli</a> > <span class="el_class">DefaultParser.Builder</span></div><h1>DefaultParser.Builder</h1><table class="coverage" cellspacing="0" id="
coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 35</td><td class="ctr2">100%</td><td class="bar">0 of 0</td><td class="ctr2">n/a</td><td class="ctr1">0</td><td clas
s="ctr2">5</td><td class="ctr1">0</td><td class="ctr2">11</td><td class="ctr1">0</td><td class="ctr2">5</td></tr></tfoot><tbody><tr><td id="a0"><a href="DefaultParser.java.html#L79" class="el_method">build()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="11" alt="11"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="DefaultParser.java.html#L50" class="el_method">DefaultParser.Builder()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="98" height="10" title="9" alt="9"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g1">1</td><td cla
ss="ctr1" id="h1">0</td><td class="ctr2" id="i0">4</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a2"><a href="DefaultParser.java.html#L105" class="el_method">setAllowPartialMatching(boolean)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="54" height="10" title="5" alt="5"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i1">2</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a3"><a href="DefaultParser.java.html#L117" class="el_method">setDeprecatedHandler(Consumer)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="54" height="10" title="5" alt="5"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ct
r2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i2">2</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a4"><a href="DefaultParser.java.html#L137" class="el_method">setStripLeadingAndTrailingQuotes(Boolean)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="54" height="10" title="5" alt="5"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i3">2</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html>
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>DefaultParser.Builder</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CLI</a> > <a href="index.html" class="el_package">org.apache.commons.cli</a> > <span class="el_class">DefaultParser.Builder</span></div><h1>DefaultParser.Builder</h1><p>A different version of class was executed
at runtime.</p><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">35 of 35</td><td class="ctr2">0%</td><td class="bar">0 of 0</
td><td class="ctr2">n/a</td><td class="ctr1">5</td><td class="ctr2">5</td><td class="ctr1">11</td><td class="ctr2">11</td><td class="ctr1">5</td><td class="ctr2">5</td></tr></tfoot><tbody><tr><td id="a0"><a href="DefaultParser.java.html#L79" class="el_method">build()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="11" alt="11"/></td><td class="ctr2" id="c0">0%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h4">1</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="DefaultParser.java.html#L50" class="el_method">DefaultParser.Builder()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="98" height="10" title="9" alt="9"/></td><td class="ctr2" id="c1">0%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1"
id="f1">1</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h0">4</td><td class="ctr2" id="i0">4</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a2"><a href="DefaultParser.java.html#L105" class="el_method">setAllowPartialMatching(boolean)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="54" height="10" title="5" alt="5"/></td><td class="ctr2" id="c2">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h1">2</td><td class="ctr2" id="i1">2</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a3"><a href="DefaultParser.java.html#L117" class="el_method">setDeprecatedHandler(Consumer)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="54" height="10" title="5" alt="5"/></td><td class="ctr2" id="c3">0%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td>
<td class="ctr1" id="f3">1</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h2">2</td><td class="ctr2" id="i2">2</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a4"><a href="DefaultParser.java.html#L137" class="el_method">setStripLeadingAndTrailingQuotes(Boolean)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/redbar.gif" width="54" height="10" title="5" alt="5"/></td><td class="ctr2" id="c4">0%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h3">2</td><td class="ctr2" id="i3">2</td><td class="ctr1" id="j4">1</td><td class="ctr2" id="k4">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html>
\ No newline at end of file