Modified:
websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DefaultParser.java.html
==============================================================================
---
websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DefaultParser.java.html
(original)
+++
websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DefaultParser.java.html
Thu Aug 15 00:03:23 2024
@@ -47,7 +47,7 @@ public class DefaultParser implements Co
public static final class Builder {
/** Flag indicating if partial matching of long options is supported.
*/
-<span class="fc" id="L50"> private boolean allowPartialMatching =
true;</span>
+<span class="nc" id="L50"> private boolean allowPartialMatching =
true;</span>
/**
* The deprecated option handler.
@@ -55,7 +55,7 @@ public class DefaultParser implements Co
* If you want to serialize this field, use a serialization proxy.
* </p>
*/
-<span class="fc" id="L58"> private Consumer<Option>
deprecatedHandler = CommandLine.Builder.DEPRECATED_HANDLER;</span>
+<span class="nc" id="L58"> private Consumer<Option>
deprecatedHandler = CommandLine.Builder.DEPRECATED_HANDLER;</span>
/** Flag indicating if balanced leading and trailing double quotes
should be stripped from option arguments. */
private Boolean stripLeadingAndTrailingQuotes;
@@ -66,8 +66,8 @@ public class DefaultParser implements Co
* Both allowPartialMatching and stripLeadingAndTrailingQuotes are
true by default,
* mimicking the argument-less constructor.
*/
-<span class="fc" id="L69"> private Builder() {</span>
-<span class="fc" id="L70"> }</span>
+<span class="nc" id="L69"> private Builder() {</span>
+<span class="nc" id="L70"> }</span>
/**
* Builds an DefaultParser with the values declared by this {@link
Builder}.
@@ -76,7 +76,7 @@ public class DefaultParser implements Co
* @since 1.5.0
*/
public DefaultParser build() {
-<span class="fc" id="L79"> return new
DefaultParser(allowPartialMatching, stripLeadingAndTrailingQuotes,
deprecatedHandler);</span>
+<span class="nc" id="L79"> return new
DefaultParser(allowPartialMatching, stripLeadingAndTrailingQuotes,
deprecatedHandler);</span>
}
/**
@@ -102,8 +102,8 @@ public class DefaultParser implements Co
* @since 1.5.0
*/
public Builder setAllowPartialMatching(final boolean
allowPartialMatching) {
-<span class="fc" id="L105"> this.allowPartialMatching =
allowPartialMatching;</span>
-<span class="fc" id="L106"> return this;</span>
+<span class="nc" id="L105"> this.allowPartialMatching =
allowPartialMatching;</span>
+<span class="nc" id="L106"> return this;</span>
}
/**
@@ -114,8 +114,8 @@ public class DefaultParser implements Co
* @since 1.7.0
*/
public Builder setDeprecatedHandler(final Consumer<Option>
deprecatedHandler) {
-<span class="fc" id="L117"> this.deprecatedHandler =
deprecatedHandler;</span>
-<span class="fc" id="L118"> return this;</span>
+<span class="nc" id="L117"> this.deprecatedHandler =
deprecatedHandler;</span>
+<span class="nc" id="L118"> return this;</span>
}
/**
@@ -134,8 +134,8 @@ public class DefaultParser implements Co
* @since 1.5.0
*/
public Builder setStripLeadingAndTrailingQuotes(final Boolean
stripLeadingAndTrailingQuotes) {
-<span class="fc" id="L137"> this.stripLeadingAndTrailingQuotes =
stripLeadingAndTrailingQuotes;</span>
-<span class="fc" id="L138"> return this;</span>
+<span class="nc" id="L137"> this.stripLeadingAndTrailingQuotes =
stripLeadingAndTrailingQuotes;</span>
+<span class="nc" id="L138"> return this;</span>
}
}
@@ -147,11 +147,11 @@ public class DefaultParser implements Co
* @since 1.5.0
*/
public static Builder builder() {
-<span class="fc" id="L150"> return new Builder();</span>
+<span class="nc" id="L150"> return new Builder();</span>
}
static int indexOfEqual(final String token) {
-<span class="fc" id="L154"> return token.indexOf(Char.EQUAL);</span>
+<span class="nc" id="L154"> return token.indexOf(Char.EQUAL);</span>
}
/** The command-line instance. */
@@ -212,11 +212,11 @@ public class DefaultParser implements Co
* "partial matching" disabled, {@code -de} would enable both
{@code debug} as well as {@code extract}
* options.
*/
-<span class="fc" id="L215"> public DefaultParser() {</span>
-<span class="fc" id="L216"> this.allowPartialMatching = true;</span>
-<span class="fc" id="L217"> this.stripLeadingAndTrailingQuotes =
null;</span>
-<span class="fc" id="L218"> this.deprecatedHandler =
CommandLine.Builder.DEPRECATED_HANDLER;</span>
-<span class="fc" id="L219"> }</span>
+<span class="nc" id="L215"> public DefaultParser() {</span>
+<span class="nc" id="L216"> this.allowPartialMatching = true;</span>
+<span class="nc" id="L217"> this.stripLeadingAndTrailingQuotes =
null;</span>
+<span class="nc" id="L218"> this.deprecatedHandler =
CommandLine.Builder.DEPRECATED_HANDLER;</span>
+<span class="nc" id="L219"> }</span>
/**
* Create a new DefaultParser instance with the specified partial matching
policy.
@@ -239,11 +239,11 @@ public class DefaultParser implements Co
*
* @param allowPartialMatching if partial matching of long options shall
be enabled
*/
-<span class="fc" id="L242"> public DefaultParser(final boolean
allowPartialMatching) {</span>
-<span class="fc" id="L243"> this.allowPartialMatching =
allowPartialMatching;</span>
-<span class="fc" id="L244"> this.stripLeadingAndTrailingQuotes =
null;</span>
-<span class="fc" id="L245"> this.deprecatedHandler =
CommandLine.Builder.DEPRECATED_HANDLER;</span>
-<span class="fc" id="L246"> }</span>
+<span class="nc" id="L242"> public DefaultParser(final boolean
allowPartialMatching) {</span>
+<span class="nc" id="L243"> this.allowPartialMatching =
allowPartialMatching;</span>
+<span class="nc" id="L244"> this.stripLeadingAndTrailingQuotes =
null;</span>
+<span class="nc" id="L245"> this.deprecatedHandler =
CommandLine.Builder.DEPRECATED_HANDLER;</span>
+<span class="nc" id="L246"> }</span>
/**
* Creates a new DefaultParser instance with the specified partial
matching and quote
@@ -252,23 +252,23 @@ public class DefaultParser implements Co
* @param allowPartialMatching if partial matching of long options shall
be enabled
* @param stripLeadingAndTrailingQuotes if balanced outer double quoutes
should be stripped
*/
-<span class="fc" id="L255"> private DefaultParser(final boolean
allowPartialMatching, final Boolean stripLeadingAndTrailingQuotes, final
Consumer<Option> deprecatedHandler) {</span>
-<span class="fc" id="L256"> this.allowPartialMatching =
allowPartialMatching;</span>
-<span class="fc" id="L257"> this.stripLeadingAndTrailingQuotes =
stripLeadingAndTrailingQuotes;</span>
-<span class="fc" id="L258"> this.deprecatedHandler =
deprecatedHandler;</span>
-<span class="fc" id="L259"> }</span>
+<span class="nc" id="L255"> private DefaultParser(final boolean
allowPartialMatching, final Boolean stripLeadingAndTrailingQuotes, final
Consumer<Option> deprecatedHandler) {</span>
+<span class="nc" id="L256"> this.allowPartialMatching =
allowPartialMatching;</span>
+<span class="nc" id="L257"> this.stripLeadingAndTrailingQuotes =
stripLeadingAndTrailingQuotes;</span>
+<span class="nc" id="L258"> this.deprecatedHandler =
deprecatedHandler;</span>
+<span class="nc" id="L259"> }</span>
/**
* Throws a {@link MissingArgumentException} if the current option didn't
receive the number of arguments expected.
*/
private void checkRequiredArgs() throws ParseException {
-<span class="fc bfc" id="L265" title="All 4 branches covered."> if
(currentOption != null && currentOption.requiresArg()) {</span>
-<span class="fc bfc" id="L266" title="All 4 branches covered."> if
(isJavaProperty(currentOption.getKey()) &&
currentOption.getValuesList().size() == 1) {</span>
-<span class="fc" id="L267"> return;</span>
+<span class="nc bnc" id="L265" title="All 4 branches missed."> if
(currentOption != null && currentOption.requiresArg()) {</span>
+<span class="nc bnc" id="L266" title="All 4 branches missed."> if
(isJavaProperty(currentOption.getKey()) &&
currentOption.getValuesList().size() == 1) {</span>
+<span class="nc" id="L267"> return;</span>
}
-<span class="fc" id="L269"> throw new
MissingArgumentException(currentOption);</span>
+<span class="nc" id="L269"> throw new
MissingArgumentException(currentOption);</span>
}
-<span class="fc" id="L271"> }</span>
+<span class="nc" id="L271"> }</span>
/**
* Throws a {@link MissingOptionException} if all of the required options
are not present.
@@ -277,10 +277,10 @@ public class DefaultParser implements Co
*/
protected void checkRequiredOptions() throws MissingOptionException {
// if there are required options that have not been processed
-<span class="fc bfc" id="L280" title="All 2 branches covered."> if
(!expectedOpts.isEmpty()) {</span>
-<span class="fc" id="L281"> throw new
MissingOptionException(expectedOpts);</span>
+<span class="nc bnc" id="L280" title="All 2 branches missed."> if
(!expectedOpts.isEmpty()) {</span>
+<span class="nc" id="L281"> throw new
MissingOptionException(expectedOpts);</span>
}
-<span class="fc" id="L283"> }</span>
+<span class="nc" id="L283"> }</span>
/**
* Searches for a prefix that is the long name of an option (-Xmx512m)
@@ -288,17 +288,17 @@ public class DefaultParser implements Co
* @param token
*/
private String getLongPrefix(final String token) {
-<span class="fc" id="L291"> final String t =
Util.stripLeadingHyphens(token);</span>
+<span class="nc" id="L291"> final String t =
Util.stripLeadingHyphens(token);</span>
int i;
-<span class="fc" id="L293"> String opt = null;</span>
-<span class="fc bfc" id="L294" title="All 2 branches covered."> for (i
= t.length() - 2; i > 1; i--) {</span>
-<span class="fc" id="L295"> final String prefix = t.substring(0,
i);</span>
-<span class="fc bfc" id="L296" title="All 2 branches covered."> if
(options.hasLongOption(prefix)) {</span>
-<span class="fc" id="L297"> opt = prefix;</span>
-<span class="fc" id="L298"> break;</span>
+<span class="nc" id="L293"> String opt = null;</span>
+<span class="nc bnc" id="L294" title="All 2 branches missed."> for (i =
t.length() - 2; i > 1; i--) {</span>
+<span class="nc" id="L295"> final String prefix = t.substring(0,
i);</span>
+<span class="nc bnc" id="L296" title="All 2 branches missed."> if
(options.hasLongOption(prefix)) {</span>
+<span class="nc" id="L297"> opt = prefix;</span>
+<span class="nc" id="L298"> break;</span>
}
}
-<span class="fc" id="L301"> return opt;</span>
+<span class="nc" id="L301"> return opt;</span>
}
/**
@@ -308,14 +308,14 @@ public class DefaultParser implements Co
* @return the list of matching option strings or an empty list if no
matching option could be found
*/
private List<String> getMatchingLongOptions(final String token) {
-<span class="fc bfc" id="L311" title="All 2 branches covered."> if
(allowPartialMatching) {</span>
-<span class="fc" id="L312"> return
options.getMatchingOptions(token);</span>
+<span class="nc bnc" id="L311" title="All 2 branches missed."> if
(allowPartialMatching) {</span>
+<span class="nc" id="L312"> return
options.getMatchingOptions(token);</span>
}
-<span class="fc" id="L314"> final List<String> matches = new
ArrayList<>(1);</span>
-<span class="fc bfc" id="L315" title="All 2 branches covered."> if
(options.hasLongOption(token)) {</span>
-<span class="fc" id="L316">
matches.add(options.getOption(token).getLongOpt());</span>
+<span class="nc" id="L314"> final List<String> matches = new
ArrayList<>(1);</span>
+<span class="nc bnc" id="L315" title="All 2 branches missed."> if
(options.hasLongOption(token)) {</span>
+<span class="nc" id="L316">
matches.add(options.getOption(token).getLongOpt());</span>
}
-<span class="fc" id="L318"> return matches;</span>
+<span class="nc" id="L318"> return matches;</span>
}
/**
@@ -339,20 +339,20 @@ public class DefaultParser implements Co
* @throws ParseException if there are any problems encountered while
parsing the command line token.
*/
protected void handleConcatenatedOptions(final String token) throws
ParseException {
-<span class="fc bfc" id="L342" title="All 2 branches covered."> for
(int i = 1; i < token.length(); i++) {</span>
-<span class="fc" id="L343"> final String ch =
String.valueOf(token.charAt(i));</span>
-<span class="fc bfc" id="L344" title="All 2 branches covered."> if
(!options.hasOption(ch)) {</span>
-<span class="pc bpc" id="L345" title="1 of 4 branches missed.">
handleUnknownToken(stopAtNonOption && i > 1 ? token.substring(i) :
token);</span>
-<span class="fc" id="L346"> break;</span>
+<span class="nc bnc" id="L342" title="All 2 branches missed."> for (int
i = 1; i < token.length(); i++) {</span>
+<span class="nc" id="L343"> final String ch =
String.valueOf(token.charAt(i));</span>
+<span class="nc bnc" id="L344" title="All 2 branches missed."> if
(!options.hasOption(ch)) {</span>
+<span class="nc bnc" id="L345" title="All 4 branches missed.">
handleUnknownToken(stopAtNonOption && i > 1 ? token.substring(i) :
token);</span>
+<span class="nc" id="L346"> break;</span>
}
-<span class="fc" id="L348">
handleOption(options.getOption(ch));</span>
-<span class="fc bfc" id="L349" title="All 4 branches covered."> if
(currentOption != null && token.length() != i + 1) {</span>
+<span class="nc" id="L348">
handleOption(options.getOption(ch));</span>
+<span class="nc bnc" id="L349" title="All 4 branches missed."> if
(currentOption != null && token.length() != i + 1) {</span>
// add the trail as an argument of the option
-<span class="fc" id="L351">
currentOption.processValue(stripLeadingAndTrailingQuotesDefaultOff(token.substring(i
+ 1)));</span>
-<span class="fc" id="L352"> break;</span>
+<span class="nc" id="L351">
currentOption.processValue(stripLeadingAndTrailingQuotesDefaultOff(token.substring(i
+ 1)));</span>
+<span class="nc" id="L352"> break;</span>
}
}
-<span class="fc" id="L355"> }</span>
+<span class="nc" id="L355"> }</span>
/**
* Handles the following tokens:
@@ -362,12 +362,12 @@ public class DefaultParser implements Co
* @param token the command line token to handle
*/
private void handleLongOption(final String token) throws ParseException {
-<span class="fc bfc" id="L365" title="All 2 branches covered."> if
(indexOfEqual(token) == -1) {</span>
-<span class="fc" id="L366">
handleLongOptionWithoutEqual(token);</span>
- } else {
-<span class="fc" id="L368"> handleLongOptionWithEqual(token);</span>
+<span class="nc bnc" id="L365" title="All 2 branches missed."> if
(indexOfEqual(token) == -1) {</span>
+<span class="nc" id="L366">
handleLongOptionWithoutEqual(token);</span>
+<span class="nc" id="L367"> } else {</span>
+<span class="nc" id="L368"> handleLongOptionWithEqual(token);</span>
}
-<span class="fc" id="L370"> }</span>
+<span class="nc" id="L370"> }</span>
/**
* Handles the following tokens:
@@ -377,26 +377,26 @@ public class DefaultParser implements Co
* @param token the command line token to handle
*/
private void handleLongOptionWithEqual(final String token) throws
ParseException {
-<span class="fc" id="L380"> final int pos = indexOfEqual(token);</span>
-<span class="fc" id="L381"> final String value = token.substring(pos +
1);</span>
-<span class="fc" id="L382"> final String opt = token.substring(0,
pos);</span>
-<span class="fc" id="L383"> final List<String> matchingOpts =
getMatchingLongOptions(opt);</span>
-<span class="fc bfc" id="L384" title="All 2 branches covered."> if
(matchingOpts.isEmpty()) {</span>
-<span class="fc" id="L385"> handleUnknownToken(currentToken);</span>
-<span class="pc bpc" id="L386" title="1 of 4 branches missed."> } else
if (matchingOpts.size() > 1 && !options.hasLongOption(opt)) {</span>
-<span class="fc" id="L387"> throw new AmbiguousOptionException(opt,
matchingOpts);</span>
+<span class="nc" id="L380"> final int pos = indexOfEqual(token);</span>
+<span class="nc" id="L381"> final String value = token.substring(pos +
1);</span>
+<span class="nc" id="L382"> final String opt = token.substring(0,
pos);</span>
+<span class="nc" id="L383"> final List<String> matchingOpts =
getMatchingLongOptions(opt);</span>
+<span class="nc bnc" id="L384" title="All 2 branches missed."> if
(matchingOpts.isEmpty()) {</span>
+<span class="nc" id="L385"> handleUnknownToken(currentToken);</span>
+<span class="nc bnc" id="L386" title="All 4 branches missed."> } else
if (matchingOpts.size() > 1 && !options.hasLongOption(opt)) {</span>
+<span class="nc" id="L387"> throw new AmbiguousOptionException(opt,
matchingOpts);</span>
} else {
-<span class="fc bfc" id="L389" title="All 2 branches covered.">
final String key = options.hasLongOption(opt) ? opt :
matchingOpts.get(0);</span>
-<span class="fc" id="L390"> final Option option =
options.getOption(key);</span>
-<span class="pc bpc" id="L391" title="1 of 2 branches missed."> if
(option.acceptsArg()) {</span>
-<span class="fc" id="L392"> handleOption(option);</span>
-<span class="fc" id="L393">
currentOption.processValue(stripLeadingAndTrailingQuotesDefaultOff(value));</span>
-<span class="fc" id="L394"> currentOption = null;</span>
- } else {
+<span class="nc bnc" id="L389" title="All 2 branches missed.">
final String key = options.hasLongOption(opt) ? opt :
matchingOpts.get(0);</span>
+<span class="nc" id="L390"> final Option option =
options.getOption(key);</span>
+<span class="nc bnc" id="L391" title="All 2 branches missed."> if
(option.acceptsArg()) {</span>
+<span class="nc" id="L392"> handleOption(option);</span>
+<span class="nc" id="L393">
currentOption.processValue(stripLeadingAndTrailingQuotesDefaultOff(value));</span>
+<span class="nc" id="L394"> currentOption = null;</span>
+<span class="nc" id="L395"> } else {</span>
<span class="nc" id="L396">
handleUnknownToken(currentToken);</span>
}
}
-<span class="fc" id="L399"> }</span>
+<span class="nc" id="L399"> }</span>
/**
* Handles the following tokens:
@@ -406,25 +406,25 @@ public class DefaultParser implements Co
* @param token the command line token to handle
*/
private void handleLongOptionWithoutEqual(final String token) throws
ParseException {
-<span class="fc" id="L409"> final List<String> matchingOpts =
getMatchingLongOptions(token);</span>
-<span class="fc bfc" id="L410" title="All 2 branches covered."> if
(matchingOpts.isEmpty()) {</span>
-<span class="fc" id="L411"> handleUnknownToken(currentToken);</span>
-<span class="pc bpc" id="L412" title="1 of 4 branches missed."> } else
if (matchingOpts.size() > 1 && !options.hasLongOption(token))
{</span>
-<span class="fc" id="L413"> throw new
AmbiguousOptionException(token, matchingOpts);</span>
+<span class="nc" id="L409"> final List<String> matchingOpts =
getMatchingLongOptions(token);</span>
+<span class="nc bnc" id="L410" title="All 2 branches missed."> if
(matchingOpts.isEmpty()) {</span>
+<span class="nc" id="L411"> handleUnknownToken(currentToken);</span>
+<span class="nc bnc" id="L412" title="All 4 branches missed."> } else
if (matchingOpts.size() > 1 && !options.hasLongOption(token))
{</span>
+<span class="nc" id="L413"> throw new
AmbiguousOptionException(token, matchingOpts);</span>
} else {
-<span class="fc bfc" id="L415" title="All 2 branches covered.">
final String key = options.hasLongOption(token) ? token :
matchingOpts.get(0);</span>
-<span class="fc" id="L416">
handleOption(options.getOption(key));</span>
+<span class="nc bnc" id="L415" title="All 2 branches missed.">
final String key = options.hasLongOption(token) ? token :
matchingOpts.get(0);</span>
+<span class="nc" id="L416">
handleOption(options.getOption(key));</span>
}
-<span class="fc" id="L418"> }</span>
+<span class="nc" id="L418"> }</span>
private void handleOption(final Option option) throws ParseException {
// check the previous option before handling the next one
-<span class="fc" id="L422"> checkRequiredArgs();</span>
-<span class="fc" id="L423"> final Option copy = (Option)
option.clone();</span>
-<span class="fc" id="L424"> updateRequiredOptions(copy);</span>
-<span class="fc" id="L425"> cmd.addOption(copy);</span>
-<span class="fc bfc" id="L426" title="All 2 branches covered.">
currentOption = copy.hasArg() ? copy : null;</span>
-<span class="fc" id="L427"> }</span>
+<span class="nc" id="L422"> checkRequiredArgs();</span>
+<span class="nc" id="L423"> final Option copy = (Option)
option.clone();</span>
+<span class="nc" id="L424"> updateRequiredOptions(copy);</span>
+<span class="nc" id="L425"> cmd.addOption(copy);</span>
+<span class="nc bnc" id="L426" title="All 2 branches missed.">
currentOption = copy.hasArg() ? copy : null;</span>
+<span class="nc" id="L427"> }</span>
/**
* Sets the values of Options using the values in {@code properties}.
@@ -432,35 +432,35 @@ public class DefaultParser implements Co
* @param properties The value properties to be processed.
*/
private void handleProperties(final Properties properties) throws
ParseException {
-<span class="fc bfc" id="L435" title="All 2 branches covered."> if
(properties == null) {</span>
-<span class="fc" id="L436"> return;</span>
+<span class="nc bnc" id="L435" title="All 2 branches missed."> if
(properties == null) {</span>
+<span class="nc" id="L436"> return;</span>
}
-<span class="fc bfc" id="L438" title="All 2 branches covered."> for
(final Enumeration<?> e = properties.propertyNames();
e.hasMoreElements();) {</span>
-<span class="fc" id="L439"> final String option =
e.nextElement().toString();</span>
-<span class="fc" id="L440"> final Option opt =
options.getOption(option);</span>
-<span class="fc bfc" id="L441" title="All 2 branches covered."> if
(opt == null) {</span>
-<span class="fc" id="L442"> throw new
UnrecognizedOptionException("Default option wasn't defined",
option);</span>
+<span class="nc bnc" id="L438" title="All 2 branches missed."> for
(final Enumeration<?> e = properties.propertyNames();
e.hasMoreElements();) {</span>
+<span class="nc" id="L439"> final String option =
e.nextElement().toString();</span>
+<span class="nc" id="L440"> final Option opt =
options.getOption(option);</span>
+<span class="nc bnc" id="L441" title="All 2 branches missed."> if
(opt == null) {</span>
+<span class="nc" id="L442"> throw new
UnrecognizedOptionException("Default option wasn't defined",
option);</span>
}
// if the option is part of a group, check if another option of
the group has been selected
-<span class="fc" id="L445"> final OptionGroup group =
options.getOptionGroup(opt);</span>
-<span class="fc bfc" id="L446" title="All 4 branches covered.">
final boolean selected = group != null && group.getSelected() !=
null;</span>
-<span class="fc bfc" id="L447" title="All 4 branches covered."> if
(!cmd.hasOption(option) && !selected) {</span>
+<span class="nc" id="L445"> final OptionGroup group =
options.getOptionGroup(opt);</span>
+<span class="nc bnc" id="L446" title="All 4 branches missed.">
final boolean selected = group != null && group.isSelected();</span>
+<span class="nc bnc" id="L447" title="All 4 branches missed."> if
(!cmd.hasOption(option) && !selected) {</span>
// get the value from the properties
-<span class="fc" id="L449"> final String value =
properties.getProperty(option);</span>
+<span class="nc" id="L449"> final String value =
properties.getProperty(option);</span>
-<span class="fc bfc" id="L451" title="All 2 branches covered.">
if (opt.hasArg()) {</span>
-<span class="fc bfc" id="L452" title="All 2 branches covered.">
if (Util.isEmpty(opt.getValues())) {</span>
-<span class="fc" id="L453">
opt.processValue(stripLeadingAndTrailingQuotesDefaultOff(value));</span>
+<span class="nc bnc" id="L451" title="All 2 branches missed.">
if (opt.hasArg()) {</span>
+<span class="nc bnc" id="L452" title="All 2 branches missed.">
if (Util.isEmpty(opt.getValues())) {</span>
+<span class="nc" id="L453">
opt.processValue(stripLeadingAndTrailingQuotesDefaultOff(value));</span>
}
-<span class="fc bfc" id="L455" title="All 6 branches covered.">
} else if (!("yes".equalsIgnoreCase(value) ||
"true".equalsIgnoreCase(value) ||
"1".equalsIgnoreCase(value))) {</span>
+<span class="nc bnc" id="L455" title="All 6 branches missed.">
} else if (!("yes".equalsIgnoreCase(value) ||
"true".equalsIgnoreCase(value) ||
"1".equalsIgnoreCase(value))) {</span>
// if the value is not yes, true or 1 then don't add the
option to the CommandLine
-<span class="fc" id="L457"> continue;</span>
+<span class="nc" id="L457"> continue;</span>
}
-<span class="fc" id="L459"> handleOption(opt);</span>
-<span class="fc" id="L460"> currentOption = null;</span>
+<span class="nc" id="L459"> handleOption(opt);</span>
+<span class="nc" id="L460"> currentOption = null;</span>
}
-<span class="fc" id="L462"> }</span>
-<span class="fc" id="L463"> }</span>
+ }
+<span class="nc" id="L463"> }</span>
/**
* Handles the following tokens:
@@ -472,67 +472,67 @@ public class DefaultParser implements Co
* @param hyphenToken the command line token to handle
*/
private void handleShortAndLongOption(final String hyphenToken) throws
ParseException {
-<span class="fc" id="L475"> final String token =
Util.stripLeadingHyphens(hyphenToken);</span>
-<span class="fc" id="L476"> final int pos = indexOfEqual(token);</span>
-<span class="fc bfc" id="L477" title="All 2 branches covered."> if
(token.length() == 1) {</span>
+<span class="nc" id="L475"> final String token =
Util.stripLeadingHyphens(hyphenToken);</span>
+<span class="nc" id="L476"> final int pos = indexOfEqual(token);</span>
+<span class="nc bnc" id="L477" title="All 2 branches missed."> if
(token.length() == 1) {</span>
// -S
-<span class="fc bfc" id="L479" title="All 2 branches covered."> if
(options.hasShortOption(token)) {</span>
-<span class="fc" id="L480">
handleOption(options.getOption(token));</span>
- } else {
-<span class="fc" id="L482">
handleUnknownToken(hyphenToken);</span>
+<span class="nc bnc" id="L479" title="All 2 branches missed."> if
(options.hasShortOption(token)) {</span>
+<span class="nc" id="L480">
handleOption(options.getOption(token));</span>
+<span class="nc" id="L481"> } else {</span>
+<span class="nc" id="L482">
handleUnknownToken(hyphenToken);</span>
}
-<span class="fc bfc" id="L484" title="All 2 branches covered."> } else
if (pos == -1) {</span>
+<span class="nc bnc" id="L484" title="All 2 branches missed."> } else
if (pos == -1) {</span>
// no equal sign found (-xxx)
-<span class="fc bfc" id="L486" title="All 2 branches covered."> if
(options.hasShortOption(token)) {</span>
-<span class="fc" id="L487">
handleOption(options.getOption(token));</span>
-<span class="fc bfc" id="L488" title="All 2 branches covered."> }
else if (!getMatchingLongOptions(token).isEmpty()) {</span>
+<span class="nc bnc" id="L486" title="All 2 branches missed."> if
(options.hasShortOption(token)) {</span>
+<span class="nc" id="L487">
handleOption(options.getOption(token));</span>
+<span class="nc bnc" id="L488" title="All 2 branches missed."> }
else if (!getMatchingLongOptions(token).isEmpty()) {</span>
// -L or -l
-<span class="fc" id="L490">
handleLongOptionWithoutEqual(hyphenToken);</span>
- } else {
+<span class="nc" id="L490">
handleLongOptionWithoutEqual(hyphenToken);</span>
+<span class="nc" id="L491"> } else {</span>
// look for a long prefix (-Xmx512m)
-<span class="fc" id="L493"> final String opt =
getLongPrefix(token);</span>
+<span class="nc" id="L493"> final String opt =
getLongPrefix(token);</span>
-<span class="fc bfc" id="L495" title="All 4 branches covered.">
if (opt != null && options.getOption(opt).acceptsArg()) {</span>
-<span class="fc" id="L496">
handleOption(options.getOption(opt));</span>
-<span class="fc" id="L497">
currentOption.processValue(stripLeadingAndTrailingQuotesDefaultOff(token.substring(opt.length())));</span>
-<span class="fc" id="L498"> currentOption = null;</span>
-<span class="fc bfc" id="L499" title="All 2 branches covered.">
} else if (isJavaProperty(token)) {</span>
+<span class="nc bnc" id="L495" title="All 4 branches missed.">
if (opt != null && options.getOption(opt).acceptsArg()) {</span>
+<span class="nc" id="L496">
handleOption(options.getOption(opt));</span>
+<span class="nc" id="L497">
currentOption.processValue(stripLeadingAndTrailingQuotesDefaultOff(token.substring(opt.length())));</span>
+<span class="nc" id="L498"> currentOption = null;</span>
+<span class="nc bnc" id="L499" title="All 2 branches missed.">
} else if (isJavaProperty(token)) {</span>
// -SV1 (-Dflag)
-<span class="fc" id="L501">
handleOption(options.getOption(token.substring(0, 1)));</span>
-<span class="fc" id="L502">
currentOption.processValue(stripLeadingAndTrailingQuotesDefaultOff(token.substring(1)));</span>
-<span class="fc" id="L503"> currentOption = null;</span>
- } else {
+<span class="nc" id="L501">
handleOption(options.getOption(token.substring(0, 1)));</span>
+<span class="nc" id="L502">
currentOption.processValue(stripLeadingAndTrailingQuotesDefaultOff(token.substring(1)));</span>
+<span class="nc" id="L503"> currentOption = null;</span>
+<span class="nc" id="L504"> } else {</span>
// -S1S2S3 or -S1S2V
-<span class="fc" id="L506">
handleConcatenatedOptions(hyphenToken);</span>
+<span class="nc" id="L506">
handleConcatenatedOptions(hyphenToken);</span>
}
-<span class="fc" id="L508"> }</span>
- } else {
+ }
+<span class="nc" id="L509"> } else {</span>
// equal sign found (-xxx=yyy)
-<span class="fc" id="L511"> final String opt = token.substring(0,
pos);</span>
-<span class="fc" id="L512"> final String value =
token.substring(pos + 1);</span>
+<span class="nc" id="L511"> final String opt = token.substring(0,
pos);</span>
+<span class="nc" id="L512"> final String value =
token.substring(pos + 1);</span>
-<span class="fc bfc" id="L514" title="All 2 branches covered."> if
(opt.length() == 1) {</span>
+<span class="nc bnc" id="L514" title="All 2 branches missed."> if
(opt.length() == 1) {</span>
// -S=V
-<span class="fc" id="L516"> final Option option =
options.getOption(opt);</span>
-<span class="pc bpc" id="L517" title="1 of 4 branches missed.">
if (option != null && option.acceptsArg()) {</span>
-<span class="fc" id="L518"> handleOption(option);</span>
-<span class="fc" id="L519">
currentOption.processValue(value);</span>
-<span class="fc" id="L520"> currentOption = null;</span>
- } else {
+<span class="nc" id="L516"> final Option option =
options.getOption(opt);</span>
+<span class="nc bnc" id="L517" title="All 4 branches missed.">
if (option != null && option.acceptsArg()) {</span>
+<span class="nc" id="L518"> handleOption(option);</span>
+<span class="nc" id="L519">
currentOption.processValue(value);</span>
+<span class="nc" id="L520"> currentOption = null;</span>
+<span class="nc" id="L521"> } else {</span>
<span class="nc" id="L522">
handleUnknownToken(hyphenToken);</span>
}
-<span class="fc bfc" id="L524" title="All 2 branches covered."> }
else if (isJavaProperty(opt)) {</span>
+<span class="nc bnc" id="L524" title="All 2 branches missed."> }
else if (isJavaProperty(opt)) {</span>
// -SV1=V2 (-Dkey=value)
-<span class="fc" id="L526">
handleOption(options.getOption(opt.substring(0, 1)));</span>
-<span class="fc" id="L527">
currentOption.processValue(opt.substring(1));</span>
-<span class="fc" id="L528">
currentOption.processValue(value);</span>
-<span class="fc" id="L529"> currentOption = null;</span>
- } else {
+<span class="nc" id="L526">
handleOption(options.getOption(opt.substring(0, 1)));</span>
+<span class="nc" id="L527">
currentOption.processValue(opt.substring(1));</span>
+<span class="nc" id="L528">
currentOption.processValue(value);</span>
+<span class="nc" id="L529"> currentOption = null;</span>
+<span class="nc" id="L530"> } else {</span>
// -L=V or -l=V
-<span class="fc" id="L532">
handleLongOptionWithEqual(hyphenToken);</span>
+<span class="nc" id="L532">
handleLongOptionWithEqual(hyphenToken);</span>
}
}
-<span class="fc" id="L535"> }</span>
+<span class="nc" id="L535"> }</span>
/**
* Handles any command line token.
@@ -541,26 +541,26 @@ public class DefaultParser implements Co
* @throws ParseException
*/
private void handleToken(final String token) throws ParseException {
-<span class="fc bfc" id="L544" title="All 2 branches covered."> if
(token != null) {</span>
-<span class="fc" id="L545"> currentToken = token;</span>
-<span class="fc bfc" id="L546" title="All 2 branches covered."> if
(skipParsing) {</span>
-<span class="fc" id="L547"> cmd.addArg(token);</span>
-<span class="fc bfc" id="L548" title="All 2 branches covered."> }
else if ("--".equals(token)) {</span>
-<span class="fc" id="L549"> skipParsing = true;</span>
-<span class="pc bpc" id="L550" title="1 of 6 branches missed."> }
else if (currentOption != null && currentOption.acceptsArg() &&
isArgument(token)) {</span>
-<span class="fc" id="L551">
currentOption.processValue(stripLeadingAndTrailingQuotesDefaultOn(token));</span>
-<span class="fc bfc" id="L552" title="All 2 branches covered."> }
else if (token.startsWith("--")) {</span>
-<span class="fc" id="L553"> handleLongOption(token);</span>
-<span class="fc bfc" id="L554" title="All 4 branches covered."> }
else if (token.startsWith("-") &&
!"-".equals(token)) {</span>
-<span class="fc" id="L555">
handleShortAndLongOption(token);</span>
- } else {
-<span class="fc" id="L557"> handleUnknownToken(token);</span>
+<span class="nc bnc" id="L544" title="All 2 branches missed."> if
(token != null) {</span>
+<span class="nc" id="L545"> currentToken = token;</span>
+<span class="nc bnc" id="L546" title="All 2 branches missed."> if
(skipParsing) {</span>
+<span class="nc" id="L547"> cmd.addArg(token);</span>
+<span class="nc bnc" id="L548" title="All 2 branches missed."> }
else if ("--".equals(token)) {</span>
+<span class="nc" id="L549"> skipParsing = true;</span>
+<span class="nc bnc" id="L550" title="All 6 branches missed."> }
else if (currentOption != null && currentOption.acceptsArg() &&
isArgument(token)) {</span>
+<span class="nc" id="L551">
currentOption.processValue(stripLeadingAndTrailingQuotesDefaultOn(token));</span>
+<span class="nc bnc" id="L552" title="All 2 branches missed."> }
else if (token.startsWith("--")) {</span>
+<span class="nc" id="L553"> handleLongOption(token);</span>
+<span class="nc bnc" id="L554" title="All 4 branches missed."> }
else if (token.startsWith("-") &&
!"-".equals(token)) {</span>
+<span class="nc" id="L555">
handleShortAndLongOption(token);</span>
+<span class="nc" id="L556"> } else {</span>
+<span class="nc" id="L557"> handleUnknownToken(token);</span>
}
-<span class="fc bfc" id="L559" title="All 4 branches covered."> if
(currentOption != null && !currentOption.acceptsArg()) {</span>
-<span class="fc" id="L560"> currentOption = null;</span>
+<span class="nc bnc" id="L559" title="All 4 branches missed."> if
(currentOption != null && !currentOption.acceptsArg()) {</span>
+<span class="nc" id="L560"> currentOption = null;</span>
}
}
-<span class="fc" id="L563"> }</span>
+<span class="nc" id="L563"> }</span>
/**
* Handles an unknown token. If the token starts with a dash an
UnrecognizedOptionException is thrown. Otherwise the
@@ -570,14 +570,14 @@ public class DefaultParser implements Co
* @param token the command line token to handle
*/
private void handleUnknownToken(final String token) throws ParseException {
-<span class="fc bfc" id="L573" title="All 6 branches covered."> if
(token.startsWith("-") && token.length() > 1 &&
!stopAtNonOption) {</span>
-<span class="fc" id="L574"> throw new
UnrecognizedOptionException("Unrecognized option: " + token,
token);</span>
+<span class="nc bnc" id="L573" title="All 6 branches missed."> if
(token.startsWith("-") && token.length() > 1 &&
!stopAtNonOption) {</span>
+<span class="nc" id="L574"> throw new
UnrecognizedOptionException("Unrecognized option: " + token,
token);</span>
}
-<span class="fc" id="L576"> cmd.addArg(token);</span>
-<span class="fc bfc" id="L577" title="All 2 branches covered."> if
(stopAtNonOption) {</span>
-<span class="fc" id="L578"> skipParsing = true;</span>
+<span class="nc" id="L576"> cmd.addArg(token);</span>
+<span class="nc bnc" id="L577" title="All 2 branches missed."> if
(stopAtNonOption) {</span>
+<span class="nc" id="L578"> skipParsing = true;</span>
}
-<span class="fc" id="L580"> }</span>
+<span class="nc" id="L580"> }</span>
/**
* Tests if the token is a valid argument.
@@ -585,16 +585,16 @@ public class DefaultParser implements Co
* @param token
*/
private boolean isArgument(final String token) {
-<span class="fc bfc" id="L588" title="All 4 branches covered."> return
!isOption(token) || isNegativeNumber(token);</span>
+<span class="nc bnc" id="L588" title="All 4 branches missed."> return
!isOption(token) || isNegativeNumber(token);</span>
}
/**
* Tests if the specified token is a Java-like property (-Dkey=value).
*/
private boolean isJavaProperty(final String token) {
-<span class="pc bpc" id="L595" title="1 of 2 branches missed."> final
String opt = token.isEmpty() ? null : token.substring(0, 1);</span>
-<span class="fc" id="L596"> final Option option =
options.getOption(opt);</span>
-<span class="pc bpc" id="L597" title="1 of 6 branches missed."> return
option != null && (option.getArgs() >= 2 || option.getArgs() ==
Option.UNLIMITED_VALUES);</span>
+<span class="nc bnc" id="L595" title="All 2 branches missed."> final
String opt = token.isEmpty() ? null : token.substring(0, 1);</span>
+<span class="nc" id="L596"> final Option option =
options.getOption(opt);</span>
+<span class="nc bnc" id="L597" title="All 6 branches missed."> return
option != null && (option.getArgs() >= 2 || option.getArgs() ==
Option.UNLIMITED_VALUES);</span>
}
/**
@@ -603,20 +603,20 @@ public class DefaultParser implements Co
* @param token
*/
private boolean isLongOption(final String token) {
-<span class="pc bpc" id="L606" title="1 of 6 branches missed."> if
(token == null || !token.startsWith("-") || token.length() == 1)
{</span>
-<span class="fc" id="L607"> return false;</span>
+<span class="nc bnc" id="L606" title="All 6 branches missed."> if
(token == null || !token.startsWith("-") || token.length() == 1)
{</span>
+<span class="nc" id="L607"> return false;</span>
}
-<span class="fc" id="L609"> final int pos = indexOfEqual(token);</span>
-<span class="pc bpc" id="L610" title="1 of 2 branches missed."> final
String t = pos == -1 ? token : token.substring(0, pos);</span>
-<span class="pc bpc" id="L611" title="1 of 2 branches missed."> if
(!getMatchingLongOptions(t).isEmpty()) {</span>
+<span class="nc" id="L609"> final int pos = indexOfEqual(token);</span>
+<span class="nc bnc" id="L610" title="All 2 branches missed."> final
String t = pos == -1 ? token : token.substring(0, pos);</span>
+<span class="nc bnc" id="L611" title="All 2 branches missed."> if
(!getMatchingLongOptions(t).isEmpty()) {</span>
// long or partial long options (--L, -L, --L=V, -L=V, --l, --l=V)
<span class="nc" id="L613"> return true;</span>
}
-<span class="pc bpc" id="L615" title="1 of 4 branches missed."> if
(getLongPrefix(token) != null && !token.startsWith("--"))
{</span>
+<span class="nc bnc" id="L615" title="All 4 branches missed."> if
(getLongPrefix(token) != null && !token.startsWith("--"))
{</span>
// -LV
-<span class="fc" id="L617"> return true;</span>
+<span class="nc" id="L617"> return true;</span>
}
-<span class="fc" id="L619"> return false;</span>
+<span class="nc" id="L619"> return false;</span>
}
/**
@@ -626,10 +626,10 @@ public class DefaultParser implements Co
*/
private boolean isNegativeNumber(final String token) {
try {
-<span class="fc" id="L629"> Double.parseDouble(token);</span>
-<span class="fc" id="L630"> return true;</span>
-<span class="fc" id="L631"> } catch (final NumberFormatException e)
{</span>
-<span class="fc" id="L632"> return false;</span>
+<span class="nc" id="L629"> Double.parseDouble(token);</span>
+<span class="nc" id="L630"> return true;</span>
+<span class="nc" id="L631"> } catch (final NumberFormatException e)
{</span>
+<span class="nc" id="L632"> return false;</span>
}
}
@@ -639,7 +639,7 @@ public class DefaultParser implements Co
* @param token
*/
private boolean isOption(final String token) {
-<span class="fc bfc" id="L642" title="All 4 branches covered."> return
isLongOption(token) || isShortOption(token);</span>
+<span class="nc bnc" id="L642" title="All 4 branches missed."> return
isLongOption(token) || isShortOption(token);</span>
}
/**
@@ -649,27 +649,27 @@ public class DefaultParser implements Co
*/
private boolean isShortOption(final String token) {
// short options (-S, -SV, -S=V, -SV1=V2, -S1S2)
-<span class="pc bpc" id="L652" title="1 of 6 branches missed."> if
(token == null || !token.startsWith("-") || token.length() == 1)
{</span>
-<span class="fc" id="L653"> return false;</span>
+<span class="nc bnc" id="L652" title="All 6 branches missed."> if
(token == null || !token.startsWith("-") || token.length() == 1)
{</span>
+<span class="nc" id="L653"> return false;</span>
}
// remove leading "-" and "=value"
-<span class="fc" id="L656"> final int pos = indexOfEqual(token);</span>
-<span class="pc bpc" id="L657" title="1 of 2 branches missed."> final
String optName = pos == -1 ? token.substring(1) : token.substring(1,
pos);</span>
-<span class="fc bfc" id="L658" title="All 2 branches covered."> if
(options.hasShortOption(optName)) {</span>
-<span class="fc" id="L659"> return true;</span>
+<span class="nc" id="L656"> final int pos = indexOfEqual(token);</span>
+<span class="nc bnc" id="L657" title="All 2 branches missed."> final
String optName = pos == -1 ? token.substring(1) : token.substring(1,
pos);</span>
+<span class="nc bnc" id="L658" title="All 2 branches missed."> if
(options.hasShortOption(optName)) {</span>
+<span class="nc" id="L659"> return true;</span>
}
// check for several concatenated short options
-<span class="pc bpc" id="L662" title="1 of 4 branches missed."> return
!optName.isEmpty() &&
options.hasShortOption(String.valueOf(optName.charAt(0)));</span>
+<span class="nc bnc" id="L662" title="All 4 branches missed."> return
!optName.isEmpty() &&
options.hasShortOption(String.valueOf(optName.charAt(0)));</span>
}
@Override
public CommandLine parse(final Options options, final String[] arguments)
throws ParseException {
-<span class="fc" id="L667"> return parse(options, arguments,
null);</span>
+<span class="nc" id="L667"> return parse(options, arguments,
null);</span>
}
@Override
public CommandLine parse(final Options options, final String[] arguments,
final boolean stopAtNonOption) throws ParseException {
-<span class="fc" id="L672"> return parse(options, arguments, null,
stopAtNonOption);</span>
+<span class="nc" id="L672"> return parse(options, arguments, null,
stopAtNonOption);</span>
}
/**
@@ -683,7 +683,7 @@ public class DefaultParser implements Co
* @throws ParseException if there are any problems encountered while
parsing the command line tokens.
*/
public CommandLine parse(final Options options, final String[] arguments,
final Properties properties) throws ParseException {
-<span class="fc" id="L686"> return parse(options, arguments,
properties, false);</span>
+<span class="nc" id="L686"> return parse(options, arguments,
properties, false);</span>
}
/**
@@ -701,27 +701,27 @@ public class DefaultParser implements Co
*/
public CommandLine parse(final Options options, final String[] arguments,
final Properties properties, final boolean stopAtNonOption)
throws ParseException {
-<span class="fc" id="L704"> this.options = options;</span>
-<span class="fc" id="L705"> this.stopAtNonOption =
stopAtNonOption;</span>
-<span class="fc" id="L706"> skipParsing = false;</span>
-<span class="fc" id="L707"> currentOption = null;</span>
-<span class="fc" id="L708"> expectedOpts = new
ArrayList<>(options.getRequiredOptions());</span>
+<span class="nc" id="L704"> this.options = options;</span>
+<span class="nc" id="L705"> this.stopAtNonOption =
stopAtNonOption;</span>
+<span class="nc" id="L706"> skipParsing = false;</span>
+<span class="nc" id="L707"> currentOption = null;</span>
+<span class="nc" id="L708"> expectedOpts = new
ArrayList<>(options.getRequiredOptions());</span>
// clear the data from the groups
-<span class="fc bfc" id="L710" title="All 2 branches covered."> for
(final OptionGroup group : options.getOptionGroups()) {</span>
-<span class="fc" id="L711"> group.setSelected(null);</span>
-<span class="fc" id="L712"> }</span>
-<span class="fc" id="L713"> cmd =
CommandLine.builder().setDeprecatedHandler(deprecatedHandler).build();</span>
-<span class="fc bfc" id="L714" title="All 2 branches covered."> if
(arguments != null) {</span>
-<span class="fc bfc" id="L715" title="All 2 branches covered."> for
(final String argument : arguments) {</span>
-<span class="fc" id="L716"> handleToken(argument);</span>
+<span class="nc bnc" id="L710" title="All 2 branches missed."> for
(final OptionGroup group : options.getOptionGroups()) {</span>
+<span class="nc" id="L711"> group.setSelected(null);</span>
+ }
+<span class="nc" id="L713"> cmd =
CommandLine.builder().setDeprecatedHandler(deprecatedHandler).build();</span>
+<span class="nc bnc" id="L714" title="All 2 branches missed."> if
(arguments != null) {</span>
+<span class="nc bnc" id="L715" title="All 2 branches missed."> for
(final String argument : arguments) {</span>
+<span class="nc" id="L716"> handleToken(argument);</span>
}
}
// check the arguments of the last option
-<span class="fc" id="L720"> checkRequiredArgs();</span>
+<span class="nc" id="L720"> checkRequiredArgs();</span>
// add the default options
-<span class="fc" id="L722"> handleProperties(properties);</span>
-<span class="fc" id="L723"> checkRequiredOptions();</span>
-<span class="fc" id="L724"> return cmd;</span>
+<span class="nc" id="L722"> handleProperties(properties);</span>
+<span class="nc" id="L723"> checkRequiredOptions();</span>
+<span class="nc" id="L724"> return cmd;</span>
}
/**
@@ -732,10 +732,10 @@ public class DefaultParser implements Co
* @return token with the quotes stripped (if set)
*/
private String stripLeadingAndTrailingQuotesDefaultOff(final String token)
{
-<span class="fc bfc" id="L735" title="All 4 branches covered."> if
(stripLeadingAndTrailingQuotes != null &&
stripLeadingAndTrailingQuotes) {</span>
-<span class="fc" id="L736"> return
Util.stripLeadingAndTrailingQuotes(token);</span>
+<span class="nc bnc" id="L735" title="All 4 branches missed."> if
(stripLeadingAndTrailingQuotes != null &&
stripLeadingAndTrailingQuotes) {</span>
+<span class="nc" id="L736"> return
Util.stripLeadingAndTrailingQuotes(token);</span>
}
-<span class="fc" id="L738"> return token;</span>
+<span class="nc" id="L738"> return token;</span>
}
/**
@@ -746,10 +746,10 @@ public class DefaultParser implements Co
* @return token with the quotes stripped (if set)
*/
private String stripLeadingAndTrailingQuotesDefaultOn(final String token) {
-<span class="fc bfc" id="L749" title="All 4 branches covered."> if
(stripLeadingAndTrailingQuotes == null || stripLeadingAndTrailingQuotes)
{</span>
-<span class="fc" id="L750"> return
Util.stripLeadingAndTrailingQuotes(token);</span>
+<span class="nc bnc" id="L749" title="All 4 branches missed."> if
(stripLeadingAndTrailingQuotes == null || stripLeadingAndTrailingQuotes)
{</span>
+<span class="nc" id="L750"> return
Util.stripLeadingAndTrailingQuotes(token);</span>
}
-<span class="fc" id="L752"> return token;</span>
+<span class="nc" id="L752"> return token;</span>
}
/**
@@ -758,20 +758,20 @@ public class DefaultParser implements Co
* @param option
*/
private void updateRequiredOptions(final Option option) throws
AlreadySelectedException {
-<span class="fc bfc" id="L761" title="All 2 branches covered."> if
(option.isRequired()) {</span>
-<span class="fc" id="L762">
expectedOpts.remove(option.getKey());</span>
+<span class="nc bnc" id="L761" title="All 2 branches missed."> if
(option.isRequired()) {</span>
+<span class="nc" id="L762">
expectedOpts.remove(option.getKey());</span>
}
// if the option is in an OptionGroup make that option the selected
option of the group
-<span class="fc bfc" id="L766" title="All 2 branches covered."> if
(options.getOptionGroup(option) != null) {</span>
-<span class="fc" id="L767"> final OptionGroup group =
options.getOptionGroup(option);</span>
+<span class="nc bnc" id="L766" title="All 2 branches missed."> if
(options.getOptionGroup(option) != null) {</span>
+<span class="nc" id="L767"> final OptionGroup group =
options.getOptionGroup(option);</span>
-<span class="pc bpc" id="L769" title="1 of 2 branches missed."> if
(group.isRequired()) {</span>
+<span class="nc bnc" id="L769" title="All 2 branches missed."> if
(group.isRequired()) {</span>
<span class="nc" id="L770"> expectedOpts.remove(group);</span>
}
-<span class="fc" id="L773"> group.setSelected(option);</span>
+<span class="nc" id="L773"> group.setSelected(option);</span>
}
-<span class="fc" id="L775"> }</span>
+<span class="nc" id="L775"> }</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/DeprecatedAttributes$Builder.html
==============================================================================
---
websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DeprecatedAttributes$Builder.html
(original)
+++
websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DeprecatedAttributes$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>DeprecatedAttributes.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">DeprecatedAttributes.Builder</span></div><h1>DeprecatedAttributes.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 29</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 class="ctr2">5</td><td class="ctr1">0</td><td
class="ctr2">8</td><td class="ctr1">0</td><td
class="ctr2">5</td></tr></tfoot><tbody><tr><td id="a1"><a
href="DeprecatedAttributes.java.html#L60" class="el_method">get()</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="i3">1</td><td class="ctr1" id="j0">0</td><td class="ctr2"
id="k0">1</td></tr><tr><td id="a2"><a href="DeprecatedAttributes.java.html#L70"
class="el_method">setDescription(String)</a></td><td class="bar" id="b1"><img
src="../jacoco-resources/greenbar.gif" width="54" height="10" title="5"
alt="5"/></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 cla
ss="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2"
id="i0">2</td><td class="ctr1" id="j1">0</td><td class="ctr2"
id="k1">1</td></tr><tr><td id="a3"><a href="DeprecatedAttributes.java.html#L82"
class="el_method">setForRemoval(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="a4"><a href="DeprecatedAttributes.java.html#L93"
class="el_method">setSince(String)</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="ctr2" 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="a0"><a href="DeprecatedAttributes.java.html#L39"
class="el_method">DeprecatedAttributes.Builder()</a></td><td class="bar"
id="b4"><img src="../jacoco-resources/greenbar.gif" width="32" height="10"
title="3" alt="3"/></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></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>DeprecatedAttributes.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">DeprecatedAttributes.Builder</span></div><h1>DeprecatedAttributes.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">29 of 29</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">8</td><td class="ctr2">8</td><td
class="ctr1">5</td><td class="ctr2">5</td></tr></tfoot><tbody><tr><td
id="a1"><a href="DeprecatedAttributes.java.html#L60"
class="el_method">get()</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="h3">1</td><td class="ctr2" id="i3">1</td><td
class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td
id="a2"><a href="DeprecatedAttributes.java.html#L70"
class="el_method">setDescription(String)</a></td><td class="bar" id="b1"><img
src="../jacoco-resources/redbar.gif" width="54" height="10" title="5"
alt="5"/></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">2</td><td class="ctr2" id="i0">2</td><td class="ctr1"
id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a3"><a
href="DeprecatedAttributes.java.html#L82"
class="el_method">setForRemoval(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="a4"><a href="DeprecatedAttributes.java.html#L93"
class="el_method">setSince(String)</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="a0"><a href="DeprecatedAttributes.java.html#L39"
class="el_method">DeprecatedAttributes.Builder()</a></td><td class="bar"
id="b4"><img src="../jacoco-resources/redbar.gif" width="32" height="10"
title="3" alt="3"/></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="h4">1</td><td class="ctr2"
id="i4">1</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
Modified:
websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DeprecatedAttributes.html
==============================================================================
---
websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DeprecatedAttributes.html
(original)
+++
websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DeprecatedAttributes.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>DeprecatedAttributes</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">DeprecatedAttributes</span></div><h1>DeprecatedAttributes</h1><table
class="coverage" cellspacing="0" id="cov
eragetable"><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 84</td><td class="ctr2">100%</td><td class="bar">0 of
8</td><td class="ctr2">100%</td><td class="ctr1">0</td><td class=
"ctr2">12</td><td class="ctr1">0</td><td class="ctr2">21</td><td
class="ctr1">0</td><td class="ctr2">8</td></tr></tfoot><tbody><tr><td
id="a7"><a href="DeprecatedAttributes.java.html#L172"
class="el_method">toString()</a></td><td class="bar" id="b0"><img
src="../jacoco-resources/greenbar.gif" width="120" height="10" title="41"
alt="41"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"><img
src="../jacoco-resources/greenbar.gif" width="120" height="10" title="6"
alt="6"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1"
id="f0">0</td><td class="ctr2" id="g0">4</td><td class="ctr1" id="h0">0</td><td
class="ctr2" id="i0">10</td><td class="ctr1" id="j0">0</td><td class="ctr2"
id="k0">1</td></tr><tr><td id="a1"><a
href="DeprecatedAttributes.java.html#L133"
class="el_method">DeprecatedAttributes(String, String, boolean)</a></td><td
class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="46"
height="10" title="16" alt="16"/></td><td class="ctr2" id="c1">1
00%</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="ctr2" id="i1">5</td><td class="ctr1" id="j1">0</td><td
class="ctr2" id="k1">1</td></tr><tr><td id="a5"><a
href="DeprecatedAttributes.java.html#L101" class="el_method">static
{...}</a></td><td class="bar" id="b2"><img
src="../jacoco-resources/greenbar.gif" width="23" height="10" title="8"
alt="8"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d3"/><td
class="ctr2" id="e3">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2"
id="g3">1</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="a6"><a href="DeprecatedAttributes.java.html#L167"
class="el_method">toEmpty(String)</a></td><td class="bar" id="b3"><img
src="../jacoco-resources/greenbar.gif" width="17" height="10" title="6"
alt="6"/></td><td class="ctr2" id="c
3">100%</td><td class="bar" id="d1"><img
src="../jacoco-resources/greenbar.gif" width="40" height="10" title="2"
alt="2"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1"
id="f3">0</td><td class="ctr2" id="g1">2</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="a0"><a
href="DeprecatedAttributes.java.html#L114"
class="el_method">builder()</a></td><td class="bar" id="b4"><img
src="../jacoco-resources/greenbar.gif" width="11" height="10" title="4"
alt="4"/></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="a2"><a href="DeprecatedAttributes.java.html#L145"
class="el_method">getDescription()</a></td><td class="bar" id="b5"><img
src="../jacoco-
resources/greenbar.gif" width="8" height="10" title="3" alt="3"/></td><td
class="ctr2" id="c5">100%</td><td class="bar" id="d5"/><td class="ctr2"
id="e5">n/a</td><td class="ctr1" 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><tr><td
id="a3"><a href="DeprecatedAttributes.java.html#L154"
class="el_method">getSince()</a></td><td class="bar" id="b6"><img
src="../jacoco-resources/greenbar.gif" width="8" height="10" title="3"
alt="3"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d6"/><td
class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2"
id="g6">1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">1</td><td
class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td
id="a4"><a href="DeprecatedAttributes.java.html#L163"
class="el_method">isForRemoval()</a></td><td class="bar" id="b7"><img
src="../jacoco-r
esources/greenbar.gif" width="8" height="10" title="3" alt="3"/></td><td
class="ctr2" id="c7">100%</td><td class="bar" id="d7"/><td class="ctr2"
id="e7">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2"
id="g7">1</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i7">1</td><td
class="ctr1" id="j7">0</td><td class="ctr2"
id="k7">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>DeprecatedAttributes</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">DeprecatedAttributes</span></div><h1>DeprecatedAttributes</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">84 of 84</td><td class="ctr2">0%</td><td class="bar">8 of 8</td>
<td class="ctr2">0%</td><td class="ctr1">12</td><td class="ctr2">12</td><td
class="ctr1">22</td><td class="ctr2">22</td><td class="ctr1">8</td><td
class="ctr2">8</td></tr></tfoot><tbody><tr><td id="a7"><a
href="DeprecatedAttributes.java.html#L172"
class="el_method">toString()</a></td><td class="bar" id="b0"><img
src="../jacoco-resources/redbar.gif" width="120" height="10" title="41"
alt="41"/></td><td class="ctr2" id="c0">0%</td><td class="bar" id="d0"><img
src="../jacoco-resources/redbar.gif" width="120" height="10" title="6"
alt="6"/></td><td class="ctr2" id="e0">0%</td><td class="ctr1"
id="f0">4</td><td class="ctr2" id="g0">4</td><td class="ctr1"
id="h0">10</td><td class="ctr2" id="i0">10</td><td class="ctr1"
id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a
href="DeprecatedAttributes.java.html#L133"
class="el_method">DeprecatedAttributes(String, String, boolean)</a></td><td
class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="46"
height="10" ti
tle="16" alt="16"/></td><td class="ctr2" id="c1">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">5</td><td class="ctr2"
id="i1">5</td><td class="ctr1" id="j1">1</td><td class="ctr2"
id="k1">1</td></tr><tr><td id="a5"><a
href="DeprecatedAttributes.java.html#L101" class="el_method">static
{...}</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif"
width="23" height="10" title="8" alt="8"/></td><td class="ctr2"
id="c2">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="j2">1</td><td
class="ctr2" id="k2">1</td></tr><tr><td id="a6"><a
href="DeprecatedAttributes.java.html#L167"
class="el_method">toEmpty(String)</a></td><td class="bar" id="b3"><img
src="../jacoco-resources/redbar.gif" width="17" height="10" titl
e="6" alt="6"/></td><td class="ctr2" id="c3">0%</td><td class="bar"
id="d1"><img src="../jacoco-resources/redbar.gif" width="40" height="10"
title="2" alt="2"/></td><td class="ctr2" id="e1">0%</td><td class="ctr1"
id="f1">2</td><td class="ctr2" id="g1">2</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="a0"><a
href="DeprecatedAttributes.java.html#L114"
class="el_method">builder()</a></td><td class="bar" id="b4"><img
src="../jacoco-resources/redbar.gif" width="11" height="10" title="4"
alt="4"/></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="h4">1</td><td class="ctr2" id="i4">1</td><td
class="ctr1" id="j4">1</td><td class="ctr2" id="k4">1</td></tr><tr><td
id="a2"><a href="DeprecatedAttributes.java.html#L145"
class="el_method">getDescription()</a></td><td class="b
ar" id="b5"><img src="../jacoco-resources/redbar.gif" width="8" height="10"
title="3" alt="3"/></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="h5">1</td><td class="ctr2"
id="i5">1</td><td class="ctr1" id="j5">1</td><td class="ctr2"
id="k5">1</td></tr><tr><td id="a3"><a
href="DeprecatedAttributes.java.html#L154"
class="el_method">getSince()</a></td><td class="bar" id="b6"><img
src="../jacoco-resources/redbar.gif" width="8" height="10" title="3"
alt="3"/></td><td class="ctr2" id="c6">0%</td><td class="bar" id="d6"/><td
class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">1</td><td class="ctr2"
id="g6">1</td><td class="ctr1" id="h6">1</td><td class="ctr2" id="i6">1</td><td
class="ctr1" id="j6">1</td><td class="ctr2" id="k6">1</td></tr><tr><td
id="a4"><a href="DeprecatedAttributes.java.html#L163"
class="el_method">isForRemoval()</a></td><td class="bar" id="b
7"><img src="../jacoco-resources/redbar.gif" width="8" height="10" title="3"
alt="3"/></td><td class="ctr2" id="c7">0%</td><td class="bar" id="d7"/><td
class="ctr2" id="e7">n/a</td><td class="ctr1" id="f7">1</td><td class="ctr2"
id="g7">1</td><td class="ctr1" id="h7">1</td><td class="ctr2" id="i7">1</td><td
class="ctr1" id="j7">1</td><td class="ctr2"
id="k7">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/DeprecatedAttributes.java.html
==============================================================================
---
websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DeprecatedAttributes.java.html
(original)
+++
websites/production/commons/content/proper/commons-cli/jacoco/org.apache.commons.cli/DeprecatedAttributes.java.html
Thu Aug 15 00:03:23 2024
@@ -36,7 +36,7 @@ public final class DeprecatedAttributes
/**
* Builds {@link DeprecatedAttributes}.
*/
-<span class="fc" id="L39"> public static class Builder implements
Supplier<DeprecatedAttributes> {</span>
+<span class="nc" id="L39"> public static class Builder implements
Supplier<DeprecatedAttributes> {</span>
/** The description. */
private String description;
@@ -57,7 +57,7 @@ public final class DeprecatedAttributes
@Override
public DeprecatedAttributes get() {
-<span class="fc" id="L60"> return new
DeprecatedAttributes(description, since, forRemoval);</span>
+<span class="nc" id="L60"> return new
DeprecatedAttributes(description, since, forRemoval);</span>
}
/**
@@ -67,8 +67,8 @@ public final class DeprecatedAttributes
* @return {@code this} instance.
*/
public Builder setDescription(final String description) {
-<span class="fc" id="L70"> this.description = description;</span>
-<span class="fc" id="L71"> return this;</span>
+<span class="nc" id="L70"> this.description = description;</span>
+<span class="nc" id="L71"> return this;</span>
}
/**
@@ -79,8 +79,8 @@ public final class DeprecatedAttributes
* @see <a
href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Deprecated.html#forRemoval()">Deprecated.forRemoval</a>
*/
public Builder setForRemoval(final boolean forRemoval) {
-<span class="fc" id="L82"> this.forRemoval = forRemoval;</span>
-<span class="fc" id="L83"> return this;</span>
+<span class="nc" id="L82"> this.forRemoval = forRemoval;</span>
+<span class="nc" id="L83"> return this;</span>
}
/**
@@ -90,20 +90,20 @@ public final class DeprecatedAttributes
* @return {@code this} instance.
*/
public Builder setSince(final String since) {
-<span class="fc" id="L93"> this.since = since;</span>
-<span class="fc" id="L94"> return this;</span>
+<span class="nc" id="L93"> this.since = since;</span>
+<span class="nc" id="L94"> return this;</span>
}
}
/**
* The default value for a DeprecatedAttributes.
*/
-<span class="fc" id="L101"> static final DeprecatedAttributes DEFAULT = new
DeprecatedAttributes("", "", false);</span>
+<span class="nc" id="L101"> static final DeprecatedAttributes DEFAULT = new
DeprecatedAttributes("", "", false);</span>
/**
* The empty string.
*/
- private static final String EMPTY_STRING = "";
+<span class="nc" id="L106"> private static final String EMPTY_STRING =
"";</span>
/**
* Creates a new builder.
@@ -111,7 +111,7 @@ public final class DeprecatedAttributes
* @return a new builder.
*/
public static Builder builder() {
-<span class="fc" id="L114"> return new Builder();</span>
+<span class="nc" id="L114"> return new Builder();</span>
}
/** The description. */
@@ -130,11 +130,11 @@ public final class DeprecatedAttributes
* @param since The version label for removal.
* @param forRemoval Whether this option will be removed.
*/
-<span class="fc" id="L133"> private DeprecatedAttributes(final String
description, final String since, final boolean forRemoval) {</span>
-<span class="fc" id="L134"> this.description =
toEmpty(description);</span>
-<span class="fc" id="L135"> this.since = toEmpty(since);</span>
-<span class="fc" id="L136"> this.forRemoval = forRemoval;</span>
-<span class="fc" id="L137"> }</span>
+<span class="nc" id="L133"> private DeprecatedAttributes(final String
description, final String since, final boolean forRemoval) {</span>
+<span class="nc" id="L134"> this.description =
toEmpty(description);</span>
+<span class="nc" id="L135"> this.since = toEmpty(since);</span>
+<span class="nc" id="L136"> this.forRemoval = forRemoval;</span>
+<span class="nc" id="L137"> }</span>
/**
* Gets the descriptions.
@@ -142,7 +142,7 @@ public final class DeprecatedAttributes
* @return the descriptions.
*/
public String getDescription() {
-<span class="fc" id="L145"> return description;</span>
+<span class="nc" id="L145"> return description;</span>
}
/**
@@ -151,7 +151,7 @@ public final class DeprecatedAttributes
* @return the version in which the option became deprecated.
*/
public String getSince() {
-<span class="fc" id="L154"> return since;</span>
+<span class="nc" id="L154"> return since;</span>
}
/**
@@ -160,28 +160,28 @@ public final class DeprecatedAttributes
* @return whether this option is subject to removal in a future version.
*/
public boolean isForRemoval() {
-<span class="fc" id="L163"> return forRemoval;</span>
+<span class="nc" id="L163"> return forRemoval;</span>
}
private String toEmpty(final String since) {
-<span class="fc bfc" id="L167" title="All 2 branches covered."> return
since != null ? since : EMPTY_STRING;</span>
+<span class="nc bnc" id="L167" title="All 2 branches missed."> return
since != null ? since : EMPTY_STRING;</span>
}
@Override
public String toString() {
-<span class="fc" id="L172"> final StringBuilder builder = new
StringBuilder("Deprecated");</span>
-<span class="fc bfc" id="L173" title="All 2 branches covered."> if
(forRemoval) {</span>
-<span class="fc" id="L174"> builder.append(" for
removal");</span>
- }
-<span class="fc bfc" id="L176" title="All 2 branches covered."> if
(!since.isEmpty()) {</span>
-<span class="fc" id="L177"> builder.append(" since
");</span>
-<span class="fc" id="L178"> builder.append(since);</span>
- }
-<span class="fc bfc" id="L180" title="All 2 branches covered."> if
(!description.isEmpty()) {</span>
-<span class="fc" id="L181"> builder.append(": ");</span>
-<span class="fc" id="L182"> builder.append(description);</span>
+<span class="nc" id="L172"> final StringBuilder builder = new
StringBuilder("Deprecated");</span>
+<span class="nc bnc" id="L173" title="All 2 branches missed."> if
(forRemoval) {</span>
+<span class="nc" id="L174"> builder.append(" for
removal");</span>
+ }
+<span class="nc bnc" id="L176" title="All 2 branches missed."> if
(!since.isEmpty()) {</span>
+<span class="nc" id="L177"> builder.append(" since
");</span>
+<span class="nc" id="L178"> builder.append(since);</span>
+ }
+<span class="nc bnc" id="L180" title="All 2 branches missed."> if
(!description.isEmpty()) {</span>
+<span class="nc" id="L181"> builder.append(": ");</span>
+<span class="nc" id="L182"> builder.append(description);</span>
}
-<span class="fc" id="L184"> return builder.toString();</span>
+<span class="nc" id="L184"> return builder.toString();</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