commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1013656 [39/45] - in /websites/production/commons/content/proper/commons-cli: ./ apidocs/ apidocs/org/apache/commons/cli/ apidocs/org/apache/commons/cli/class-use/ apidocs/resources/ apidocs/src-html/org/apache/commons/cli/ jacoco-aggregat...
Date Thu, 08 Jun 2017 17:47:21 GMT
Modified: websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/PatternOptionBuilderTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/PatternOptionBuilderTest.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/PatternOptionBuilderTest.html Thu Jun  8 17:47:18 2017
@@ -48,11 +48,11 @@
 <a class="jxr_linenumber" name="L40" href="#L40">40</a>      @Test
 <a class="jxr_linenumber" name="L41" href="#L41">41</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testSimplePattern() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L42" href="#L42">42</a>      {
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>          Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"a:b@cde&gt;f+n%t/m*z#"</span>);
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>          String[] args = <strong class="jxr_keyword">new</strong> String[] {<span class="jxr_string">"-c"</span>, <span class="jxr_string">"-a"</span>, <span class="jxr_string">"foo"</span>, <span class="jxr_string">"-b"</span>, <span class="jxr_string">"java.util.Vector"</span>, <span class="jxr_string">"-e"</span>, <span class="jxr_string">"build.xml"</span>, <span class="jxr_string">"-f"</span>, <span class="jxr_string">"java.util.Calendar"</span>, <span class="jxr_string">"-n"</span>, <span class="jxr_string">"4.5"</span>, <span class="jxr_string">"-t"</span>, <span class="jxr_string">"http://commons.apache.org"</span>, <span class="jxr_string">"-z"</span>, <span class="jxr_string">"Thu Jun 06 17:48:57 EDT 2002"</span>, <span class="jxr_string">"-m"</span>, <span class="jxr_string">"test*"</span>};
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          <strong class="jxr_keyword">final</strong> Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"a:b@cde&gt;f+n%t/m*z#"</span>);
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] {<span class="jxr_string">"-c"</span>, <span class="jxr_string">"-a"</span>, <span class="jxr_string">"foo"</span>, <span class="jxr_string">"-b"</span>, <span class="jxr_string">"java.util.Vector"</span>, <span class="jxr_string">"-e"</span>, <span class="jxr_string">"build.xml"</span>, <span class="jxr_string">"-f"</span>, <span class="jxr_string">"java.util.Calendar"</span>, <span class="jxr_string">"-n"</span>, <span class="jxr_string">"4.5"</span>, <span class="jxr_string">"-t"</span>, <span class="jxr_string">"http://commons.apache.org"</span>, <span class="jxr_string">"-z"</span>, <span class="jxr_string">"Thu Jun 06 17:48:57 EDT 2002"</span>, <span class="jxr_string">"-m"</span>, <span class="jxr_string">"test*"</span>};
 <a class="jxr_linenumber" name="L45" href="#L45">45</a>  
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>          CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>          CommandLine line = parser.parse(options, args);
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          <strong class="jxr_keyword">final</strong> CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          <strong class="jxr_keyword">final</strong> CommandLine line = parser.parse(options, args);
 <a class="jxr_linenumber" name="L48" href="#L48">48</a>  
 <a class="jxr_linenumber" name="L49" href="#L49">49</a>          assertEquals(<span class="jxr_string">"flag a"</span>, <span class="jxr_string">"foo"</span>, line.getOptionValue(<span class="jxr_string">"a"</span>));
 <a class="jxr_linenumber" name="L50" href="#L50">50</a>          assertEquals(<span class="jxr_string">"string flag a"</span>, <span class="jxr_string">"foo"</span>, line.getOptionObject(<span class="jxr_string">"a"</span>));
@@ -79,7 +79,7 @@
 <a class="jxr_linenumber" name="L71" href="#L71">71</a>          <strong class="jxr_keyword">try</strong> {
 <a class="jxr_linenumber" name="L72" href="#L72">72</a>              assertEquals(<span class="jxr_string">"files flag m"</span>, <strong class="jxr_keyword">new</strong> File[0], line.getOptionObject('m'));
 <a class="jxr_linenumber" name="L73" href="#L73">73</a>              fail(<span class="jxr_string">"Multiple files are not supported yet, should have failed"</span>);
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>          } <strong class="jxr_keyword">catch</strong>(UnsupportedOperationException uoe) {
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>          } <strong class="jxr_keyword">catch</strong>(<strong class="jxr_keyword">final</strong> UnsupportedOperationException uoe) {
 <a class="jxr_linenumber" name="L75" href="#L75">75</a>              <em class="jxr_comment">// expected</em>
 <a class="jxr_linenumber" name="L76" href="#L76">76</a>          }
 <a class="jxr_linenumber" name="L77" href="#L77">77</a>  
@@ -87,7 +87,7 @@
 <a class="jxr_linenumber" name="L79" href="#L79">79</a>          <strong class="jxr_keyword">try</strong> {
 <a class="jxr_linenumber" name="L80" href="#L80">80</a>              assertEquals(<span class="jxr_string">"date flag z"</span>, <strong class="jxr_keyword">new</strong> Date(1023400137276L), line.getOptionObject('z'));
 <a class="jxr_linenumber" name="L81" href="#L81">81</a>              fail(<span class="jxr_string">"Date is not supported yet, should have failed"</span>);
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>          } <strong class="jxr_keyword">catch</strong>(UnsupportedOperationException uoe) {
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>          } <strong class="jxr_keyword">catch</strong>(<strong class="jxr_keyword">final</strong> UnsupportedOperationException uoe) {
 <a class="jxr_linenumber" name="L83" href="#L83">83</a>              <em class="jxr_comment">// expected</em>
 <a class="jxr_linenumber" name="L84" href="#L84">84</a>          }
 <a class="jxr_linenumber" name="L85" href="#L85">85</a>      }
@@ -95,16 +95,16 @@
 <a class="jxr_linenumber" name="L87" href="#L87">87</a>      @Test
 <a class="jxr_linenumber" name="L88" href="#L88">88</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testEmptyPattern() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L89" href="#L89">89</a>      {
-<a class="jxr_linenumber" name="L90" href="#L90">90</a>          Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">""</span>);
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>          <strong class="jxr_keyword">final</strong> Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">""</span>);
 <a class="jxr_linenumber" name="L91" href="#L91">91</a>          assertTrue(options.getOptions().isEmpty());
 <a class="jxr_linenumber" name="L92" href="#L92">92</a>      }
 <a class="jxr_linenumber" name="L93" href="#L93">93</a>  
 <a class="jxr_linenumber" name="L94" href="#L94">94</a>      @Test
 <a class="jxr_linenumber" name="L95" href="#L95">95</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testUntypedPattern() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L96" href="#L96">96</a>      {
-<a class="jxr_linenumber" name="L97" href="#L97">97</a>          Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"abc"</span>);
-<a class="jxr_linenumber" name="L98" href="#L98">98</a>          CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L99" href="#L99">99</a>          CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-abc"</span> });
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>          <strong class="jxr_keyword">final</strong> Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"abc"</span>);
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>          <strong class="jxr_keyword">final</strong> CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>          <strong class="jxr_keyword">final</strong> CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-abc"</span> });
 <a class="jxr_linenumber" name="L100" href="#L100">100</a> 
 <a class="jxr_linenumber" name="L101" href="#L101">101</a>         assertTrue(line.hasOption('a'));
 <a class="jxr_linenumber" name="L102" href="#L102">102</a>         assertNull(<span class="jxr_string">"value a"</span>, line.getOptionObject('a'));
@@ -117,9 +117,9 @@
 <a class="jxr_linenumber" name="L109" href="#L109">109</a>     @Test
 <a class="jxr_linenumber" name="L110" href="#L110">110</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNumberPattern() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L111" href="#L111">111</a>     {
-<a class="jxr_linenumber" name="L112" href="#L112">112</a>         Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"n%d%x%"</span>);
-<a class="jxr_linenumber" name="L113" href="#L113">113</a>         CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L114" href="#L114">114</a>         CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-n"</span>, <span class="jxr_string">"1"</span>, <span class="jxr_string">"-d"</span>, <span class="jxr_string">"2.1"</span>, <span class="jxr_string">"-x"</span>, <span class="jxr_string">"3,5"</span> });
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>         <strong class="jxr_keyword">final</strong> Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"n%d%x%"</span>);
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>         <strong class="jxr_keyword">final</strong> CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>         <strong class="jxr_keyword">final</strong> CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-n"</span>, <span class="jxr_string">"1"</span>, <span class="jxr_string">"-d"</span>, <span class="jxr_string">"2.1"</span>, <span class="jxr_string">"-x"</span>, <span class="jxr_string">"3,5"</span> });
 <a class="jxr_linenumber" name="L115" href="#L115">115</a> 
 <a class="jxr_linenumber" name="L116" href="#L116">116</a>         assertEquals(<span class="jxr_string">"n object class"</span>, Long.<strong class="jxr_keyword">class</strong>, line.getOptionObject(<span class="jxr_string">"n"</span>).getClass());
 <a class="jxr_linenumber" name="L117" href="#L117">117</a>         assertEquals(<span class="jxr_string">"n value"</span>, <strong class="jxr_keyword">new</strong> Long(1), line.getOptionObject(<span class="jxr_string">"n"</span>));
@@ -133,9 +133,9 @@
 <a class="jxr_linenumber" name="L125" href="#L125">125</a>     @Test
 <a class="jxr_linenumber" name="L126" href="#L126">126</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testClassPattern() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L127" href="#L127">127</a>     {
-<a class="jxr_linenumber" name="L128" href="#L128">128</a>         Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"c+d+"</span>);
-<a class="jxr_linenumber" name="L129" href="#L129">129</a>         CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L130" href="#L130">130</a>         CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-c"</span>, <span class="jxr_string">"java.util.Calendar"</span>, <span class="jxr_string">"-d"</span>, <span class="jxr_string">"System.DateTime"</span> });
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>         <strong class="jxr_keyword">final</strong> Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"c+d+"</span>);
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>         <strong class="jxr_keyword">final</strong> CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>         <strong class="jxr_keyword">final</strong> CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-c"</span>, <span class="jxr_string">"java.util.Calendar"</span>, <span class="jxr_string">"-d"</span>, <span class="jxr_string">"System.DateTime"</span> });
 <a class="jxr_linenumber" name="L131" href="#L131">131</a> 
 <a class="jxr_linenumber" name="L132" href="#L132">132</a>         assertEquals(<span class="jxr_string">"c value"</span>, Calendar.<strong class="jxr_keyword">class</strong>, line.getOptionObject(<span class="jxr_string">"c"</span>));
 <a class="jxr_linenumber" name="L133" href="#L133">133</a>         assertNull(<span class="jxr_string">"d value"</span>, line.getOptionObject(<span class="jxr_string">"d"</span>));
@@ -144,9 +144,9 @@
 <a class="jxr_linenumber" name="L136" href="#L136">136</a>     @Test
 <a class="jxr_linenumber" name="L137" href="#L137">137</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testObjectPattern() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L138" href="#L138">138</a>     {
-<a class="jxr_linenumber" name="L139" href="#L139">139</a>         Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"o@i@n@"</span>);
-<a class="jxr_linenumber" name="L140" href="#L140">140</a>         CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L141" href="#L141">141</a>         CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-o"</span>, <span class="jxr_string">"java.lang.String"</span>, <span class="jxr_string">"-i"</span>, <span class="jxr_string">"java.util.Calendar"</span>, <span class="jxr_string">"-n"</span>, <span class="jxr_string">"System.DateTime"</span> });
+<a class="jxr_linenumber" name="L139" href="#L139">139</a>         <strong class="jxr_keyword">final</strong> Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"o@i@n@"</span>);
+<a class="jxr_linenumber" name="L140" href="#L140">140</a>         <strong class="jxr_keyword">final</strong> CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L141" href="#L141">141</a>         <strong class="jxr_keyword">final</strong> CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-o"</span>, <span class="jxr_string">"java.lang.String"</span>, <span class="jxr_string">"-i"</span>, <span class="jxr_string">"java.util.Calendar"</span>, <span class="jxr_string">"-n"</span>, <span class="jxr_string">"System.DateTime"</span> });
 <a class="jxr_linenumber" name="L142" href="#L142">142</a> 
 <a class="jxr_linenumber" name="L143" href="#L143">143</a>         assertEquals(<span class="jxr_string">"o value"</span>, <span class="jxr_string">""</span>, line.getOptionObject(<span class="jxr_string">"o"</span>));
 <a class="jxr_linenumber" name="L144" href="#L144">144</a>         assertNull(<span class="jxr_string">"i value"</span>, line.getOptionObject(<span class="jxr_string">"i"</span>));
@@ -156,9 +156,9 @@
 <a class="jxr_linenumber" name="L148" href="#L148">148</a>     @Test
 <a class="jxr_linenumber" name="L149" href="#L149">149</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testURLPattern() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L150" href="#L150">150</a>     {
-<a class="jxr_linenumber" name="L151" href="#L151">151</a>         Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"u/v/"</span>);
-<a class="jxr_linenumber" name="L152" href="#L152">152</a>         CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L153" href="#L153">153</a>         CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-u"</span>, <span class="jxr_string">"http://commons.apache.org"</span>, <span class="jxr_string">"-v"</span>, <span class="jxr_string">"foo://commons.apache.org"</span> });
+<a class="jxr_linenumber" name="L151" href="#L151">151</a>         <strong class="jxr_keyword">final</strong> Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"u/v/"</span>);
+<a class="jxr_linenumber" name="L152" href="#L152">152</a>         <strong class="jxr_keyword">final</strong> CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L153" href="#L153">153</a>         <strong class="jxr_keyword">final</strong> CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-u"</span>, <span class="jxr_string">"http://commons.apache.org"</span>, <span class="jxr_string">"-v"</span>, <span class="jxr_string">"foo://commons.apache.org"</span> });
 <a class="jxr_linenumber" name="L154" href="#L154">154</a> 
 <a class="jxr_linenumber" name="L155" href="#L155">155</a>         assertEquals(<span class="jxr_string">"u value"</span>, <strong class="jxr_keyword">new</strong> URL(<span class="jxr_string">"http://commons.apache.org"</span>), line.getOptionObject(<span class="jxr_string">"u"</span>));
 <a class="jxr_linenumber" name="L156" href="#L156">156</a>         assertNull(<span class="jxr_string">"v value"</span>, line.getOptionObject(<span class="jxr_string">"v"</span>));
@@ -167,9 +167,9 @@
 <a class="jxr_linenumber" name="L159" href="#L159">159</a>     @Test
 <a class="jxr_linenumber" name="L160" href="#L160">160</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testExistingFilePattern() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L161" href="#L161">161</a>     {
-<a class="jxr_linenumber" name="L162" href="#L162">162</a>         Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"f&lt;"</span>);
-<a class="jxr_linenumber" name="L163" href="#L163">163</a>         CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L164" href="#L164">164</a>         CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-f"</span>, <span class="jxr_string">"test.properties"</span> });
+<a class="jxr_linenumber" name="L162" href="#L162">162</a>         <strong class="jxr_keyword">final</strong> Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"f&lt;"</span>);
+<a class="jxr_linenumber" name="L163" href="#L163">163</a>         <strong class="jxr_keyword">final</strong> CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L164" href="#L164">164</a>         <strong class="jxr_keyword">final</strong> CommandLine line = parser.parse(options, <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-f"</span>, <span class="jxr_string">"test.properties"</span> });
 <a class="jxr_linenumber" name="L165" href="#L165">165</a> 
 <a class="jxr_linenumber" name="L166" href="#L166">166</a>         assertEquals(<span class="jxr_string">"f value"</span>, <strong class="jxr_keyword">new</strong> File(<span class="jxr_string">"test.properties"</span>), line.getOptionObject(<span class="jxr_string">"f"</span>));
 <a class="jxr_linenumber" name="L167" href="#L167">167</a> 
@@ -179,15 +179,15 @@
 <a class="jxr_linenumber" name="L171" href="#L171">171</a>     @Test
 <a class="jxr_linenumber" name="L172" href="#L172">172</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRequiredOption() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L173" href="#L173">173</a>     {
-<a class="jxr_linenumber" name="L174" href="#L174">174</a>         Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"!n%m%"</span>);
-<a class="jxr_linenumber" name="L175" href="#L175">175</a>         CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L174" href="#L174">174</a>         <strong class="jxr_keyword">final</strong> Options options = PatternOptionBuilder.parsePattern(<span class="jxr_string">"!n%m%"</span>);
+<a class="jxr_linenumber" name="L175" href="#L175">175</a>         <strong class="jxr_keyword">final</strong> CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
 <a class="jxr_linenumber" name="L176" href="#L176">176</a> 
 <a class="jxr_linenumber" name="L177" href="#L177">177</a>         <strong class="jxr_keyword">try</strong>
 <a class="jxr_linenumber" name="L178" href="#L178">178</a>         {
 <a class="jxr_linenumber" name="L179" href="#L179">179</a>             parser.parse(options, <strong class="jxr_keyword">new</strong> String[]{<span class="jxr_string">""</span>});
 <a class="jxr_linenumber" name="L180" href="#L180">180</a>             fail(<span class="jxr_string">"MissingOptionException wasn't thrown"</span>);
 <a class="jxr_linenumber" name="L181" href="#L181">181</a>         }
-<a class="jxr_linenumber" name="L182" href="#L182">182</a>         <strong class="jxr_keyword">catch</strong> (MissingOptionException e)
+<a class="jxr_linenumber" name="L182" href="#L182">182</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> MissingOptionException e)
 <a class="jxr_linenumber" name="L183" href="#L183">183</a>         {
 <a class="jxr_linenumber" name="L184" href="#L184">184</a>             assertEquals(1, e.getMissingOptions().size());
 <a class="jxr_linenumber" name="L185" href="#L185">185</a>             assertTrue(e.getMissingOptions().contains(<span class="jxr_string">"n"</span>));

Modified: websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/ValueTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/ValueTest.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/ValueTest.html Thu Jun  8 17:47:18 2017
@@ -54,13 +54,13 @@
 <a class="jxr_linenumber" name="L46" href="#L46">46</a>          opts.addOption(OptionBuilder.hasOptionalArgs(2).create('i'));
 <a class="jxr_linenumber" name="L47" href="#L47">47</a>          opts.addOption(OptionBuilder.hasOptionalArgs().create('j'));
 <a class="jxr_linenumber" name="L48" href="#L48">48</a>  
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>          String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-a"</span>,
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-a"</span>,
 <a class="jxr_linenumber" name="L50" href="#L50">50</a>              <span class="jxr_string">"-b"</span>, <span class="jxr_string">"foo"</span>,
 <a class="jxr_linenumber" name="L51" href="#L51">51</a>              <span class="jxr_string">"--c"</span>,
 <a class="jxr_linenumber" name="L52" href="#L52">52</a>              <span class="jxr_string">"--d"</span>, <span class="jxr_string">"bar"</span> 
 <a class="jxr_linenumber" name="L53" href="#L53">53</a>          };
 <a class="jxr_linenumber" name="L54" href="#L54">54</a>  
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>          Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
 <a class="jxr_linenumber" name="L56" href="#L56">56</a>          _cl = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L57" href="#L57">57</a>      }
 <a class="jxr_linenumber" name="L58" href="#L58">58</a>  
@@ -127,10 +127,10 @@
 <a class="jxr_linenumber" name="L119" href="#L119">119</a>     @Test
 <a class="jxr_linenumber" name="L120" href="#L120">120</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShortOptionalArgNoValue() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L121" href="#L121">121</a>     {
-<a class="jxr_linenumber" name="L122" href="#L122">122</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-e"</span> };
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-e"</span> };
 <a class="jxr_linenumber" name="L123" href="#L123">123</a> 
-<a class="jxr_linenumber" name="L124" href="#L124">124</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L125" href="#L125">125</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L126" href="#L126">126</a>         assertTrue( cmd.hasOption(<span class="jxr_string">"e"</span>) );
 <a class="jxr_linenumber" name="L127" href="#L127">127</a>         assertNull( cmd.getOptionValue(<span class="jxr_string">"e"</span>) );
 <a class="jxr_linenumber" name="L128" href="#L128">128</a>     }
@@ -138,10 +138,10 @@
 <a class="jxr_linenumber" name="L130" href="#L130">130</a>     @Test
 <a class="jxr_linenumber" name="L131" href="#L131">131</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShortOptionalArgNoValueWithOption() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L132" href="#L132">132</a>     {
-<a class="jxr_linenumber" name="L133" href="#L133">133</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-e"</span> };
+<a class="jxr_linenumber" name="L133" href="#L133">133</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-e"</span> };
 <a class="jxr_linenumber" name="L134" href="#L134">134</a> 
-<a class="jxr_linenumber" name="L135" href="#L135">135</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L136" href="#L136">136</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L136" href="#L136">136</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L137" href="#L137">137</a>         assertTrue( cmd.hasOption(opts.getOption(<span class="jxr_string">"e"</span>)) );
 <a class="jxr_linenumber" name="L138" href="#L138">138</a>         assertNull( cmd.getOptionValue(opts.getOption(<span class="jxr_string">"e"</span>)) );
 <a class="jxr_linenumber" name="L139" href="#L139">139</a>     }
@@ -149,10 +149,10 @@
 <a class="jxr_linenumber" name="L141" href="#L141">141</a>     @Test
 <a class="jxr_linenumber" name="L142" href="#L142">142</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShortOptionalArgValue() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L143" href="#L143">143</a>     {
-<a class="jxr_linenumber" name="L144" href="#L144">144</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-e"</span>, <span class="jxr_string">"everything"</span> };
+<a class="jxr_linenumber" name="L144" href="#L144">144</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-e"</span>, <span class="jxr_string">"everything"</span> };
 <a class="jxr_linenumber" name="L145" href="#L145">145</a> 
-<a class="jxr_linenumber" name="L146" href="#L146">146</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L147" href="#L147">147</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L146" href="#L146">146</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L147" href="#L147">147</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L148" href="#L148">148</a>         assertTrue( cmd.hasOption(<span class="jxr_string">"e"</span>) );
 <a class="jxr_linenumber" name="L149" href="#L149">149</a>         assertEquals( <span class="jxr_string">"everything"</span>, cmd.getOptionValue(<span class="jxr_string">"e"</span>) );
 <a class="jxr_linenumber" name="L150" href="#L150">150</a>     }
@@ -160,10 +160,10 @@
 <a class="jxr_linenumber" name="L152" href="#L152">152</a>     @Test
 <a class="jxr_linenumber" name="L153" href="#L153">153</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShortOptionalArgValueWithOption() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L154" href="#L154">154</a>     {
-<a class="jxr_linenumber" name="L155" href="#L155">155</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-e"</span>, <span class="jxr_string">"everything"</span> };
+<a class="jxr_linenumber" name="L155" href="#L155">155</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-e"</span>, <span class="jxr_string">"everything"</span> };
 <a class="jxr_linenumber" name="L156" href="#L156">156</a> 
-<a class="jxr_linenumber" name="L157" href="#L157">157</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L158" href="#L158">158</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L157" href="#L157">157</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L158" href="#L158">158</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L159" href="#L159">159</a>         assertTrue( cmd.hasOption(opts.getOption(<span class="jxr_string">"e"</span>)) );
 <a class="jxr_linenumber" name="L160" href="#L160">160</a>         assertEquals( <span class="jxr_string">"everything"</span>, cmd.getOptionValue(opts.getOption(<span class="jxr_string">"e"</span>)) );
 <a class="jxr_linenumber" name="L161" href="#L161">161</a>     }
@@ -171,10 +171,10 @@
 <a class="jxr_linenumber" name="L163" href="#L163">163</a>     @Test
 <a class="jxr_linenumber" name="L164" href="#L164">164</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLongOptionalNoValue() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L165" href="#L165">165</a>     {
-<a class="jxr_linenumber" name="L166" href="#L166">166</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--fish"</span> };
+<a class="jxr_linenumber" name="L166" href="#L166">166</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--fish"</span> };
 <a class="jxr_linenumber" name="L167" href="#L167">167</a> 
-<a class="jxr_linenumber" name="L168" href="#L168">168</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L169" href="#L169">169</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L168" href="#L168">168</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L169" href="#L169">169</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L170" href="#L170">170</a>         assertTrue( cmd.hasOption(<span class="jxr_string">"fish"</span>) );
 <a class="jxr_linenumber" name="L171" href="#L171">171</a>         assertNull( cmd.getOptionValue(<span class="jxr_string">"fish"</span>) );
 <a class="jxr_linenumber" name="L172" href="#L172">172</a>     }
@@ -182,10 +182,10 @@
 <a class="jxr_linenumber" name="L174" href="#L174">174</a>     @Test
 <a class="jxr_linenumber" name="L175" href="#L175">175</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLongOptionalNoValueWithOption() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L176" href="#L176">176</a>     {
-<a class="jxr_linenumber" name="L177" href="#L177">177</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--fish"</span> };
+<a class="jxr_linenumber" name="L177" href="#L177">177</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--fish"</span> };
 <a class="jxr_linenumber" name="L178" href="#L178">178</a> 
-<a class="jxr_linenumber" name="L179" href="#L179">179</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L180" href="#L180">180</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L179" href="#L179">179</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L180" href="#L180">180</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L181" href="#L181">181</a>         assertTrue( cmd.hasOption(opts.getOption(<span class="jxr_string">"fish"</span>)) );
 <a class="jxr_linenumber" name="L182" href="#L182">182</a>         assertNull( cmd.getOptionValue(opts.getOption(<span class="jxr_string">"fish"</span>)) );
 <a class="jxr_linenumber" name="L183" href="#L183">183</a>     }
@@ -193,10 +193,10 @@
 <a class="jxr_linenumber" name="L185" href="#L185">185</a>     @Test
 <a class="jxr_linenumber" name="L186" href="#L186">186</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLongOptionalArgValue() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L187" href="#L187">187</a>     {
-<a class="jxr_linenumber" name="L188" href="#L188">188</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--fish"</span>, <span class="jxr_string">"face"</span> };
+<a class="jxr_linenumber" name="L188" href="#L188">188</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--fish"</span>, <span class="jxr_string">"face"</span> };
 <a class="jxr_linenumber" name="L189" href="#L189">189</a> 
-<a class="jxr_linenumber" name="L190" href="#L190">190</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L191" href="#L191">191</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L190" href="#L190">190</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L191" href="#L191">191</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L192" href="#L192">192</a>         assertTrue( cmd.hasOption(<span class="jxr_string">"fish"</span>) );
 <a class="jxr_linenumber" name="L193" href="#L193">193</a>         assertEquals( <span class="jxr_string">"face"</span>, cmd.getOptionValue(<span class="jxr_string">"fish"</span>) );
 <a class="jxr_linenumber" name="L194" href="#L194">194</a>     }
@@ -204,10 +204,10 @@
 <a class="jxr_linenumber" name="L196" href="#L196">196</a>     @Test
 <a class="jxr_linenumber" name="L197" href="#L197">197</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLongOptionalArgValueWithOption() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L198" href="#L198">198</a>     {
-<a class="jxr_linenumber" name="L199" href="#L199">199</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--fish"</span>, <span class="jxr_string">"face"</span> };
+<a class="jxr_linenumber" name="L199" href="#L199">199</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--fish"</span>, <span class="jxr_string">"face"</span> };
 <a class="jxr_linenumber" name="L200" href="#L200">200</a> 
-<a class="jxr_linenumber" name="L201" href="#L201">201</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L202" href="#L202">202</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L201" href="#L201">201</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L202" href="#L202">202</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L203" href="#L203">203</a>         assertTrue( cmd.hasOption(opts.getOption(<span class="jxr_string">"fish"</span>)) );
 <a class="jxr_linenumber" name="L204" href="#L204">204</a>         assertEquals( <span class="jxr_string">"face"</span>, cmd.getOptionValue(opts.getOption(<span class="jxr_string">"fish"</span>)) );
 <a class="jxr_linenumber" name="L205" href="#L205">205</a>     }
@@ -215,10 +215,10 @@
 <a class="jxr_linenumber" name="L207" href="#L207">207</a>     @Test
 <a class="jxr_linenumber" name="L208" href="#L208">208</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShortOptionalArgValues() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L209" href="#L209">209</a>     {
-<a class="jxr_linenumber" name="L210" href="#L210">210</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-j"</span>, <span class="jxr_string">"ink"</span>, <span class="jxr_string">"idea"</span> };
+<a class="jxr_linenumber" name="L210" href="#L210">210</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-j"</span>, <span class="jxr_string">"ink"</span>, <span class="jxr_string">"idea"</span> };
 <a class="jxr_linenumber" name="L211" href="#L211">211</a> 
-<a class="jxr_linenumber" name="L212" href="#L212">212</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L213" href="#L213">213</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L212" href="#L212">212</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L213" href="#L213">213</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L214" href="#L214">214</a>         assertTrue( cmd.hasOption(<span class="jxr_string">"j"</span>) );
 <a class="jxr_linenumber" name="L215" href="#L215">215</a>         assertEquals( <span class="jxr_string">"ink"</span>, cmd.getOptionValue(<span class="jxr_string">"j"</span>) );
 <a class="jxr_linenumber" name="L216" href="#L216">216</a>         assertEquals( <span class="jxr_string">"ink"</span>, cmd.getOptionValues(<span class="jxr_string">"j"</span>)[0] );
@@ -229,10 +229,10 @@
 <a class="jxr_linenumber" name="L221" href="#L221">221</a>     @Test
 <a class="jxr_linenumber" name="L222" href="#L222">222</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShortOptionalArgValuesWithOption() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L223" href="#L223">223</a>     {
-<a class="jxr_linenumber" name="L224" href="#L224">224</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-j"</span>, <span class="jxr_string">"ink"</span>, <span class="jxr_string">"idea"</span> };
+<a class="jxr_linenumber" name="L224" href="#L224">224</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-j"</span>, <span class="jxr_string">"ink"</span>, <span class="jxr_string">"idea"</span> };
 <a class="jxr_linenumber" name="L225" href="#L225">225</a> 
-<a class="jxr_linenumber" name="L226" href="#L226">226</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L227" href="#L227">227</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L226" href="#L226">226</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L227" href="#L227">227</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L228" href="#L228">228</a>         assertTrue( cmd.hasOption(opts.getOption(<span class="jxr_string">"j"</span>)) );
 <a class="jxr_linenumber" name="L229" href="#L229">229</a>         assertEquals( <span class="jxr_string">"ink"</span>, cmd.getOptionValue(opts.getOption(<span class="jxr_string">"j"</span>)) );
 <a class="jxr_linenumber" name="L230" href="#L230">230</a>         assertEquals( <span class="jxr_string">"ink"</span>, cmd.getOptionValues(opts.getOption(<span class="jxr_string">"j"</span>))[0] );
@@ -243,10 +243,10 @@
 <a class="jxr_linenumber" name="L235" href="#L235">235</a>     @Test
 <a class="jxr_linenumber" name="L236" href="#L236">236</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLongOptionalArgValues() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L237" href="#L237">237</a>     {
-<a class="jxr_linenumber" name="L238" href="#L238">238</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--gravy"</span>, <span class="jxr_string">"gold"</span>, <span class="jxr_string">"garden"</span> };
+<a class="jxr_linenumber" name="L238" href="#L238">238</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--gravy"</span>, <span class="jxr_string">"gold"</span>, <span class="jxr_string">"garden"</span> };
 <a class="jxr_linenumber" name="L239" href="#L239">239</a> 
-<a class="jxr_linenumber" name="L240" href="#L240">240</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L241" href="#L241">241</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L240" href="#L240">240</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L241" href="#L241">241</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L242" href="#L242">242</a>         assertTrue( cmd.hasOption(<span class="jxr_string">"gravy"</span>) );
 <a class="jxr_linenumber" name="L243" href="#L243">243</a>         assertEquals( <span class="jxr_string">"gold"</span>, cmd.getOptionValue(<span class="jxr_string">"gravy"</span>) );
 <a class="jxr_linenumber" name="L244" href="#L244">244</a>         assertEquals( <span class="jxr_string">"gold"</span>, cmd.getOptionValues(<span class="jxr_string">"gravy"</span>)[0] );
@@ -257,10 +257,10 @@
 <a class="jxr_linenumber" name="L249" href="#L249">249</a>     @Test
 <a class="jxr_linenumber" name="L250" href="#L250">250</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLongOptionalArgValuesWithOption() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L251" href="#L251">251</a>     {
-<a class="jxr_linenumber" name="L252" href="#L252">252</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--gravy"</span>, <span class="jxr_string">"gold"</span>, <span class="jxr_string">"garden"</span> };
+<a class="jxr_linenumber" name="L252" href="#L252">252</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--gravy"</span>, <span class="jxr_string">"gold"</span>, <span class="jxr_string">"garden"</span> };
 <a class="jxr_linenumber" name="L253" href="#L253">253</a> 
-<a class="jxr_linenumber" name="L254" href="#L254">254</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L255" href="#L255">255</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L254" href="#L254">254</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L255" href="#L255">255</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L256" href="#L256">256</a>         assertTrue( cmd.hasOption(opts.getOption(<span class="jxr_string">"gravy"</span>)) );
 <a class="jxr_linenumber" name="L257" href="#L257">257</a>         assertEquals( <span class="jxr_string">"gold"</span>, cmd.getOptionValue(opts.getOption(<span class="jxr_string">"gravy"</span>)) );
 <a class="jxr_linenumber" name="L258" href="#L258">258</a>         assertEquals( <span class="jxr_string">"gold"</span>, cmd.getOptionValues(opts.getOption(<span class="jxr_string">"gravy"</span>))[0] );
@@ -271,10 +271,10 @@
 <a class="jxr_linenumber" name="L263" href="#L263">263</a>     @Test
 <a class="jxr_linenumber" name="L264" href="#L264">264</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShortOptionalNArgValues() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L265" href="#L265">265</a>     {
-<a class="jxr_linenumber" name="L266" href="#L266">266</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-i"</span>, <span class="jxr_string">"ink"</span>, <span class="jxr_string">"idea"</span>, <span class="jxr_string">"isotope"</span>, <span class="jxr_string">"ice"</span> };
+<a class="jxr_linenumber" name="L266" href="#L266">266</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-i"</span>, <span class="jxr_string">"ink"</span>, <span class="jxr_string">"idea"</span>, <span class="jxr_string">"isotope"</span>, <span class="jxr_string">"ice"</span> };
 <a class="jxr_linenumber" name="L267" href="#L267">267</a> 
-<a class="jxr_linenumber" name="L268" href="#L268">268</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L269" href="#L269">269</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L268" href="#L268">268</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L269" href="#L269">269</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L270" href="#L270">270</a>         assertTrue( cmd.hasOption(<span class="jxr_string">"i"</span>) );
 <a class="jxr_linenumber" name="L271" href="#L271">271</a>         assertEquals( <span class="jxr_string">"ink"</span>, cmd.getOptionValue(<span class="jxr_string">"i"</span>) );
 <a class="jxr_linenumber" name="L272" href="#L272">272</a>         assertEquals( <span class="jxr_string">"ink"</span>, cmd.getOptionValues(<span class="jxr_string">"i"</span>)[0] );
@@ -287,10 +287,10 @@
 <a class="jxr_linenumber" name="L279" href="#L279">279</a>     @Test
 <a class="jxr_linenumber" name="L280" href="#L280">280</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testShortOptionalNArgValuesWithOption() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L281" href="#L281">281</a>     {
-<a class="jxr_linenumber" name="L282" href="#L282">282</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-i"</span>, <span class="jxr_string">"ink"</span>, <span class="jxr_string">"idea"</span>, <span class="jxr_string">"isotope"</span>, <span class="jxr_string">"ice"</span> };
+<a class="jxr_linenumber" name="L282" href="#L282">282</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-i"</span>, <span class="jxr_string">"ink"</span>, <span class="jxr_string">"idea"</span>, <span class="jxr_string">"isotope"</span>, <span class="jxr_string">"ice"</span> };
 <a class="jxr_linenumber" name="L283" href="#L283">283</a> 
-<a class="jxr_linenumber" name="L284" href="#L284">284</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L285" href="#L285">285</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L284" href="#L284">284</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L285" href="#L285">285</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L286" href="#L286">286</a>         assertTrue( cmd.hasOption(<span class="jxr_string">"i"</span>) );
 <a class="jxr_linenumber" name="L287" href="#L287">287</a>         assertEquals( <span class="jxr_string">"ink"</span>, cmd.getOptionValue(opts.getOption(<span class="jxr_string">"i"</span>)) );
 <a class="jxr_linenumber" name="L288" href="#L288">288</a>         assertEquals( <span class="jxr_string">"ink"</span>, cmd.getOptionValues(opts.getOption(<span class="jxr_string">"i"</span>))[0] );
@@ -303,13 +303,13 @@
 <a class="jxr_linenumber" name="L295" href="#L295">295</a>     @Test
 <a class="jxr_linenumber" name="L296" href="#L296">296</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLongOptionalNArgValues() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L297" href="#L297">297</a>     {
-<a class="jxr_linenumber" name="L298" href="#L298">298</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { 
+<a class="jxr_linenumber" name="L298" href="#L298">298</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { 
 <a class="jxr_linenumber" name="L299" href="#L299">299</a>             <span class="jxr_string">"--hide"</span>, <span class="jxr_string">"house"</span>, <span class="jxr_string">"hair"</span>, <span class="jxr_string">"head"</span>
 <a class="jxr_linenumber" name="L300" href="#L300">300</a>         };
 <a class="jxr_linenumber" name="L301" href="#L301">301</a> 
-<a class="jxr_linenumber" name="L302" href="#L302">302</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L302" href="#L302">302</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
 <a class="jxr_linenumber" name="L303" href="#L303">303</a> 
-<a class="jxr_linenumber" name="L304" href="#L304">304</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L304" href="#L304">304</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L305" href="#L305">305</a>         assertTrue( cmd.hasOption(<span class="jxr_string">"hide"</span>) );
 <a class="jxr_linenumber" name="L306" href="#L306">306</a>         assertEquals( <span class="jxr_string">"house"</span>, cmd.getOptionValue(<span class="jxr_string">"hide"</span>) );
 <a class="jxr_linenumber" name="L307" href="#L307">307</a>         assertEquals( <span class="jxr_string">"house"</span>, cmd.getOptionValues(<span class="jxr_string">"hide"</span>)[0] );
@@ -321,13 +321,13 @@
 <a class="jxr_linenumber" name="L313" href="#L313">313</a>     @Test
 <a class="jxr_linenumber" name="L314" href="#L314">314</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLongOptionalNArgValuesWithOption() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L315" href="#L315">315</a>     {
-<a class="jxr_linenumber" name="L316" href="#L316">316</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { 
+<a class="jxr_linenumber" name="L316" href="#L316">316</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { 
 <a class="jxr_linenumber" name="L317" href="#L317">317</a>             <span class="jxr_string">"--hide"</span>, <span class="jxr_string">"house"</span>, <span class="jxr_string">"hair"</span>, <span class="jxr_string">"head"</span>
 <a class="jxr_linenumber" name="L318" href="#L318">318</a>         };
 <a class="jxr_linenumber" name="L319" href="#L319">319</a> 
-<a class="jxr_linenumber" name="L320" href="#L320">320</a>         Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L320" href="#L320">320</a>         <strong class="jxr_keyword">final</strong> Parser parser = <strong class="jxr_keyword">new</strong> PosixParser();
 <a class="jxr_linenumber" name="L321" href="#L321">321</a> 
-<a class="jxr_linenumber" name="L322" href="#L322">322</a>         CommandLine cmd = parser.parse(opts,args);
+<a class="jxr_linenumber" name="L322" href="#L322">322</a>         <strong class="jxr_keyword">final</strong> CommandLine cmd = parser.parse(opts,args);
 <a class="jxr_linenumber" name="L323" href="#L323">323</a>         assertTrue( cmd.hasOption(opts.getOption(<span class="jxr_string">"hide"</span>)) );
 <a class="jxr_linenumber" name="L324" href="#L324">324</a>         assertEquals( <span class="jxr_string">"house"</span>, cmd.getOptionValue(opts.getOption(<span class="jxr_string">"hide"</span>)) );
 <a class="jxr_linenumber" name="L325" href="#L325">325</a>         assertEquals( <span class="jxr_string">"house"</span>, cmd.getOptionValues(opts.getOption(<span class="jxr_string">"hide"</span>))[0] );

Modified: websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/ValuesTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/ValuesTest.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/ValuesTest.html Thu Jun  8 17:47:18 2017
@@ -41,7 +41,7 @@
 <a class="jxr_linenumber" name="L33" href="#L33">33</a>      @Before
 <a class="jxr_linenumber" name="L34" href="#L34">34</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L35" href="#L35">35</a>      {
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>          Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L37" href="#L37">37</a>  
 <a class="jxr_linenumber" name="L38" href="#L38">38</a>          options.addOption(<span class="jxr_string">"a"</span>, false, <span class="jxr_string">"toggle -a"</span>);
 <a class="jxr_linenumber" name="L39" href="#L39">39</a>          options.addOption(<span class="jxr_string">"b"</span>, <strong class="jxr_keyword">true</strong>, <span class="jxr_string">"set -b"</span>);
@@ -57,7 +57,7 @@
 <a class="jxr_linenumber" name="L49" href="#L49">49</a>          options.addOption(OptionBuilder.withLongOpt(<span class="jxr_string">"k"</span>).hasArgs().withDescription(<span class="jxr_string">"set -k"</span>).withValueSeparator('=').create('k'));
 <a class="jxr_linenumber" name="L50" href="#L50">50</a>          options.addOption(OptionBuilder.withLongOpt(<span class="jxr_string">"m"</span>).hasArgs().withDescription(<span class="jxr_string">"set -m"</span>).withValueSeparator().create('m'));
 <a class="jxr_linenumber" name="L51" href="#L51">51</a>  
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>          String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-a"</span>,
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-a"</span>,
 <a class="jxr_linenumber" name="L53" href="#L53">53</a>                                         <span class="jxr_string">"-b"</span>, <span class="jxr_string">"foo"</span>,
 <a class="jxr_linenumber" name="L54" href="#L54">54</a>                                         <span class="jxr_string">"--c"</span>,
 <a class="jxr_linenumber" name="L55" href="#L55">55</a>                                         <span class="jxr_string">"--d"</span>, <span class="jxr_string">"bar"</span>,
@@ -73,7 +73,7 @@
 <a class="jxr_linenumber" name="L65" href="#L65">65</a>                                         <span class="jxr_string">"-kkey2=value2"</span>,
 <a class="jxr_linenumber" name="L66" href="#L66">66</a>                                         <span class="jxr_string">"-mkey=value"</span>};
 <a class="jxr_linenumber" name="L67" href="#L67">67</a>  
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>          CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          <strong class="jxr_keyword">final</strong> CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
 <a class="jxr_linenumber" name="L69" href="#L69">69</a>  
 <a class="jxr_linenumber" name="L70" href="#L70">70</a>          cmd = parser.parse(options,args);
 <a class="jxr_linenumber" name="L71" href="#L71">71</a>      }

Modified: websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI133Test.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI133Test.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI133Test.html Thu Jun  8 17:47:18 2017
@@ -39,11 +39,11 @@
 <a class="jxr_linenumber" name="L31" href="#L31">31</a>  {    
 <a class="jxr_linenumber" name="L32" href="#L32">32</a>      @Test
 <a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testOrder() <strong class="jxr_keyword">throws</strong> ParseException {
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>          Option optionA = <strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"a"</span>, <span class="jxr_string">"first"</span>);
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>          Options opts = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>          <strong class="jxr_keyword">final</strong> Option optionA = <strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"a"</span>, <span class="jxr_string">"first"</span>);
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>          <strong class="jxr_keyword">final</strong> Options opts = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L36" href="#L36">36</a>          opts.addOption(optionA);
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>          PosixParser posixParser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>          CommandLine line = posixParser.parse(opts, <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          <strong class="jxr_keyword">final</strong> PosixParser posixParser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          <strong class="jxr_keyword">final</strong> CommandLine line = posixParser.parse(opts, <strong class="jxr_keyword">null</strong>);
 <a class="jxr_linenumber" name="L39" href="#L39">39</a>          assertFalse(line.hasOption((String)<strong class="jxr_keyword">null</strong>));
 <a class="jxr_linenumber" name="L40" href="#L40">40</a>      }
 <a class="jxr_linenumber" name="L41" href="#L41">41</a>  }

Modified: websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI13Test.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI13Test.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI13Test.html Thu Jun  8 17:47:18 2017
@@ -44,22 +44,23 @@
 <a class="jxr_linenumber" name="L36" href="#L36">36</a>      {
 <a class="jxr_linenumber" name="L37" href="#L37">37</a>          <strong class="jxr_keyword">final</strong> String debugOpt = <span class="jxr_string">"debug"</span>;
 <a class="jxr_linenumber" name="L38" href="#L38">38</a>          @SuppressWarnings(<span class="jxr_string">"static-access"</span>)
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>          Option debug = OptionBuilder
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>              .withArgName( debugOpt )
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>              .withDescription( <span class="jxr_string">"turn on debugging"</span> )
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>              .withLongOpt( debugOpt )
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>              .hasArg()
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>              .create( 'd' );
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>          Options options = <strong class="jxr_keyword">new</strong> Options();
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>          options.addOption( debug );
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>          CommandLine commandLine = <strong class="jxr_keyword">new</strong> PosixParser().parse( options, <strong class="jxr_keyword">new</strong> String[]{<span class="jxr_string">"-d"</span>, <span class="jxr_string">"true"</span>} );
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>  
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>          assertEquals(<span class="jxr_string">"true"</span>, commandLine.getOptionValue( debugOpt ));
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>          assertEquals(<span class="jxr_string">"true"</span>, commandLine.getOptionValue( 'd' ));
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>          assertTrue(commandLine.hasOption( 'd'));
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>          assertTrue(commandLine.hasOption( debugOpt));
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>      }
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>  }
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          <strong class="jxr_keyword">final</strong>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          Option debug = OptionBuilder
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>              .withArgName( debugOpt )
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>              .withDescription( <span class="jxr_string">"turn on debugging"</span> )
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>              .withLongOpt( debugOpt )
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>              .hasArg()
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>              .create( 'd' );
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          options.addOption( debug );
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          <strong class="jxr_keyword">final</strong> CommandLine commandLine = <strong class="jxr_keyword">new</strong> PosixParser().parse( options, <strong class="jxr_keyword">new</strong> String[]{<span class="jxr_string">"-d"</span>, <span class="jxr_string">"true"</span>} );
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>  
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          assertEquals(<span class="jxr_string">"true"</span>, commandLine.getOptionValue( debugOpt ));
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>          assertEquals(<span class="jxr_string">"true"</span>, commandLine.getOptionValue( 'd' ));
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          assertTrue(commandLine.hasOption( 'd'));
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          assertTrue(commandLine.hasOption( debugOpt));
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>      }
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2002&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI148Test.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI148Test.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI148Test.html Thu Jun  8 17:47:18 2017
@@ -54,20 +54,20 @@
 <a class="jxr_linenumber" name="L46" href="#L46">46</a>      @Test
 <a class="jxr_linenumber" name="L47" href="#L47">47</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testWorkaround1() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L48" href="#L48">48</a>      {
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>          CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>          String[] args = <strong class="jxr_keyword">new</strong> String[]{ <span class="jxr_string">"-t-something"</span> };
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          <strong class="jxr_keyword">final</strong> CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[]{ <span class="jxr_string">"-t-something"</span> };
 <a class="jxr_linenumber" name="L51" href="#L51">51</a>  
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>          CommandLine commandLine = parser.parse(options, args);
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          <strong class="jxr_keyword">final</strong> CommandLine commandLine = parser.parse(options, args);
 <a class="jxr_linenumber" name="L53" href="#L53">53</a>          assertEquals(<span class="jxr_string">"-something"</span>, commandLine.getOptionValue('t'));
 <a class="jxr_linenumber" name="L54" href="#L54">54</a>      }
 <a class="jxr_linenumber" name="L55" href="#L55">55</a>  
 <a class="jxr_linenumber" name="L56" href="#L56">56</a>      @Test
 <a class="jxr_linenumber" name="L57" href="#L57">57</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testWorkaround2() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L58" href="#L58">58</a>      {
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>          CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>          String[] args = <strong class="jxr_keyword">new</strong> String[]{ <span class="jxr_string">"-t"</span>, <span class="jxr_string">"\&quot;-something\&quot;"</span> };
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>          <strong class="jxr_keyword">final</strong> CommandLineParser parser = <strong class="jxr_keyword">new</strong> PosixParser();
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[]{ <span class="jxr_string">"-t"</span>, <span class="jxr_string">"\&quot;-something\&quot;"</span> };
 <a class="jxr_linenumber" name="L61" href="#L61">61</a>  
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>          CommandLine commandLine = parser.parse(options, args);
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>          <strong class="jxr_keyword">final</strong> CommandLine commandLine = parser.parse(options, args);
 <a class="jxr_linenumber" name="L63" href="#L63">63</a>          assertEquals(<span class="jxr_string">"-something"</span>, commandLine.getOptionValue('t'));
 <a class="jxr_linenumber" name="L64" href="#L64">64</a>      }
 <a class="jxr_linenumber" name="L65" href="#L65">65</a>  }

Modified: websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI162Test.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI162Test.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI162Test.html Thu Jun  8 17:47:18 2017
@@ -56,12 +56,12 @@
 <a class="jxr_linenumber" name="L48" href="#L48">48</a>  
 <a class="jxr_linenumber" name="L49" href="#L49">49</a>      @Test
 <a class="jxr_linenumber" name="L50" href="#L50">50</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testInfiniteLoop() {
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>          Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>          <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L52" href="#L52">52</a>          options.addOption(<span class="jxr_string">"h"</span>, <span class="jxr_string">"help"</span>, false, <span class="jxr_string">"This is a looooong description"</span>);
 <a class="jxr_linenumber" name="L53" href="#L53">53</a>          <em class="jxr_comment">// used to hang &amp; crash</em>
 <a class="jxr_linenumber" name="L54" href="#L54">54</a>          formatter.printHelp(<strong class="jxr_keyword">new</strong> PrintWriter(sw), 20, <span class="jxr_string">"app"</span>, <strong class="jxr_keyword">null</strong>, options, HelpFormatter.DEFAULT_LEFT_PAD, HelpFormatter.DEFAULT_DESC_PAD, <strong class="jxr_keyword">null</strong>);
 <a class="jxr_linenumber" name="L55" href="#L55">55</a>  
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>          String expected = <span class="jxr_string">"usage: app"</span> + CR +
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          <strong class="jxr_keyword">final</strong> String expected = <span class="jxr_string">"usage: app"</span> + CR +
 <a class="jxr_linenumber" name="L57" href="#L57">57</a>                  <span class="jxr_string">" -h,--help   This is"</span> + CR +
 <a class="jxr_linenumber" name="L58" href="#L58">58</a>                  <span class="jxr_string">"             a"</span> + CR +
 <a class="jxr_linenumber" name="L59" href="#L59">59</a>                  <span class="jxr_string">"             looooon"</span> + CR +
@@ -189,8 +189,8 @@
 <a class="jxr_linenumber" name="L181" href="#L181">181</a>             + <span class="jxr_string">" \&quot;pname1 pname2\&quot;"</span>);
 <a class="jxr_linenumber" name="L182" href="#L182">182</a>         commandLineOptions.addOption(option);
 <a class="jxr_linenumber" name="L183" href="#L183">183</a>         <em class="jxr_comment">//</em>
-<a class="jxr_linenumber" name="L184" href="#L184">184</a>         OptionGroup pOutTypesOptionGroup = <strong class="jxr_keyword">new</strong> OptionGroup();
-<a class="jxr_linenumber" name="L185" href="#L185">185</a>         String pOutTypesOptionGroupDoc = OPT + OPT_PARAM_TYPES_INT + <span class="jxr_string">" and "</span> + OPT + OPT_PARAM_TYPES_NAME + <span class="jxr_string">" are mutually exclusive."</span>;
+<a class="jxr_linenumber" name="L184" href="#L184">184</a>         <strong class="jxr_keyword">final</strong> OptionGroup pOutTypesOptionGroup = <strong class="jxr_keyword">new</strong> OptionGroup();
+<a class="jxr_linenumber" name="L185" href="#L185">185</a>         <strong class="jxr_keyword">final</strong> String pOutTypesOptionGroupDoc = OPT + OPT_PARAM_TYPES_INT + <span class="jxr_string">" and "</span> + OPT + OPT_PARAM_TYPES_NAME + <span class="jxr_string">" are mutually exclusive."</span>;
 <a class="jxr_linenumber" name="L186" href="#L186">186</a>         <strong class="jxr_keyword">final</strong> String typesClassName = Types.<strong class="jxr_keyword">class</strong>.getName();
 <a class="jxr_linenumber" name="L187" href="#L187">187</a>         option = <strong class="jxr_keyword">new</strong> Option(OPT_PARAM_TYPES_INT, <span class="jxr_string">"paramTypes"</span>, <strong class="jxr_keyword">true</strong>, <span class="jxr_string">"Parameter types from "</span>
 <a class="jxr_linenumber" name="L188" href="#L188">188</a>             + typesClassName
@@ -212,8 +212,8 @@
 <a class="jxr_linenumber" name="L204" href="#L204">204</a>         commandLineOptions.addOption(option);
 <a class="jxr_linenumber" name="L205" href="#L205">205</a>         commandLineOptions.addOptionGroup(pOutTypesOptionGroup);
 <a class="jxr_linenumber" name="L206" href="#L206">206</a>         <em class="jxr_comment">//</em>
-<a class="jxr_linenumber" name="L207" href="#L207">207</a>         OptionGroup modesOptionGroup = <strong class="jxr_keyword">new</strong> OptionGroup();
-<a class="jxr_linenumber" name="L208" href="#L208">208</a>         String modesOptionGroupDoc = OPT + OPT_PARAM_MODES_INT + <span class="jxr_string">" and "</span> + OPT + OPT_PARAM_MODES_NAME + <span class="jxr_string">" are mutually exclusive."</span>;
+<a class="jxr_linenumber" name="L207" href="#L207">207</a>         <strong class="jxr_keyword">final</strong> OptionGroup modesOptionGroup = <strong class="jxr_keyword">new</strong> OptionGroup();
+<a class="jxr_linenumber" name="L208" href="#L208">208</a>         <strong class="jxr_keyword">final</strong> String modesOptionGroupDoc = OPT + OPT_PARAM_MODES_INT + <span class="jxr_string">" and "</span> + OPT + OPT_PARAM_MODES_NAME + <span class="jxr_string">" are mutually exclusive."</span>;
 <a class="jxr_linenumber" name="L209" href="#L209">209</a>         option = <strong class="jxr_keyword">new</strong> Option(OPT_PARAM_MODES_INT, <span class="jxr_string">"paramModes"</span>, <strong class="jxr_keyword">true</strong>, <span class="jxr_string">"Parameters modes ("</span>
 <a class="jxr_linenumber" name="L210" href="#L210">210</a>             + ParameterMetaData.parameterModeIn
 <a class="jxr_linenumber" name="L211" href="#L211">211</a>             + <span class="jxr_string">"=IN, "</span>
@@ -258,7 +258,7 @@
 <a class="jxr_linenumber" name="L250" href="#L250">250</a>         commandLineOptions.addOption(option);
 <a class="jxr_linenumber" name="L251" href="#L251">251</a> 
 <a class="jxr_linenumber" name="L252" href="#L252">252</a>         formatter.printHelp(<strong class="jxr_keyword">new</strong> PrintWriter(sw), HelpFormatter.DEFAULT_WIDTH, <strong class="jxr_keyword">this</strong>.getClass().getName(), <strong class="jxr_keyword">null</strong>, commandLineOptions, HelpFormatter.DEFAULT_LEFT_PAD, HelpFormatter.DEFAULT_DESC_PAD, <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="L253" href="#L253">253</a>         String expected = <span class="jxr_string">"usage: org.apache.commons.cli.bug.BugCLI162Test"</span> + CR +
+<a class="jxr_linenumber" name="L253" href="#L253">253</a>         <strong class="jxr_keyword">final</strong> String expected = <span class="jxr_string">"usage: org.apache.commons.cli.bug.BugCLI162Test"</span> + CR +
 <a class="jxr_linenumber" name="L254" href="#L254">254</a>                 <span class="jxr_string">" -2,--jdbc2sfmd &lt;arg&gt;        Converts the JDBC file in the first argument"</span> + CR +
 <a class="jxr_linenumber" name="L255" href="#L255">255</a>                 <span class="jxr_string">"                             to an SMFD file specified in the second"</span> + CR +
 <a class="jxr_linenumber" name="L256" href="#L256">256</a>                 <span class="jxr_string">"                             argument."</span> + CR +
@@ -320,14 +320,14 @@
 <a class="jxr_linenumber" name="L312" href="#L312">312</a> 
 <a class="jxr_linenumber" name="L313" href="#L313">313</a>     @Test
 <a class="jxr_linenumber" name="L314" href="#L314">314</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLongLineChunking() {
-<a class="jxr_linenumber" name="L315" href="#L315">315</a>         Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L315" href="#L315">315</a>         <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L316" href="#L316">316</a>         options.addOption(<span class="jxr_string">"x"</span>, <span class="jxr_string">"extralongarg"</span>, false,
 <a class="jxr_linenumber" name="L317" href="#L317">317</a>                                      <span class="jxr_string">"This description has ReallyLongValuesThatAreLongerThanTheWidthOfTheColumns "</span> +
 <a class="jxr_linenumber" name="L318" href="#L318">318</a>                                      <span class="jxr_string">"and also other ReallyLongValuesThatAreHugerAndBiggerThanTheWidthOfTheColumnsBob, "</span> +
 <a class="jxr_linenumber" name="L319" href="#L319">319</a>                                      <span class="jxr_string">"yes. "</span>);
 <a class="jxr_linenumber" name="L320" href="#L320">320</a>         
 <a class="jxr_linenumber" name="L321" href="#L321">321</a>         formatter.printHelp(<strong class="jxr_keyword">new</strong> PrintWriter(sw), 35, <strong class="jxr_keyword">this</strong>.getClass().getName(), <span class="jxr_string">"Header"</span>, options, 0, 5, <span class="jxr_string">"Footer"</span>);
-<a class="jxr_linenumber" name="L322" href="#L322">322</a>         String expected = <span class="jxr_string">"usage:"</span> + CR +
+<a class="jxr_linenumber" name="L322" href="#L322">322</a>         <strong class="jxr_keyword">final</strong> String expected = <span class="jxr_string">"usage:"</span> + CR +
 <a class="jxr_linenumber" name="L323" href="#L323">323</a>                           <span class="jxr_string">"       org.apache.commons.cli.bug.B"</span> + CR +
 <a class="jxr_linenumber" name="L324" href="#L324">324</a>                           <span class="jxr_string">"       ugCLI162Test"</span> + CR +
 <a class="jxr_linenumber" name="L325" href="#L325">325</a>                           <span class="jxr_string">"Header"</span> + CR +
@@ -352,11 +352,11 @@
 <a class="jxr_linenumber" name="L344" href="#L344">344</a> 
 <a class="jxr_linenumber" name="L345" href="#L345">345</a>     @Test
 <a class="jxr_linenumber" name="L346" href="#L346">346</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLongLineChunkingIndentIgnored() {
-<a class="jxr_linenumber" name="L347" href="#L347">347</a>         Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L347" href="#L347">347</a>         <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L348" href="#L348">348</a>         options.addOption(<span class="jxr_string">"x"</span>, <span class="jxr_string">"extralongarg"</span>, false, <span class="jxr_string">"This description is Long."</span> );
 <a class="jxr_linenumber" name="L349" href="#L349">349</a> 
 <a class="jxr_linenumber" name="L350" href="#L350">350</a>         formatter.printHelp(<strong class="jxr_keyword">new</strong> PrintWriter(sw), 22, <strong class="jxr_keyword">this</strong>.getClass().getName(), <span class="jxr_string">"Header"</span>, options, 0, 5, <span class="jxr_string">"Footer"</span>);
-<a class="jxr_linenumber" name="L351" href="#L351">351</a>         String expected = <span class="jxr_string">"usage:"</span> + CR +
+<a class="jxr_linenumber" name="L351" href="#L351">351</a>         <strong class="jxr_keyword">final</strong> String expected = <span class="jxr_string">"usage:"</span> + CR +
 <a class="jxr_linenumber" name="L352" href="#L352">352</a>                           <span class="jxr_string">"       org.apache.comm"</span> + CR +
 <a class="jxr_linenumber" name="L353" href="#L353">353</a>                           <span class="jxr_string">"       ons.cli.bug.Bug"</span> + CR +
 <a class="jxr_linenumber" name="L354" href="#L354">354</a>                           <span class="jxr_string">"       CLI162Test"</span> + CR +

Modified: websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI18Test.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI18Test.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/bug/BugCLI18Test.html Thu Jun  8 17:47:18 2017
@@ -41,13 +41,13 @@
 <a class="jxr_linenumber" name="L33" href="#L33">33</a>      @Test
 <a class="jxr_linenumber" name="L34" href="#L34">34</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCLI18()
 <a class="jxr_linenumber" name="L35" href="#L35">35</a>      {
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>          Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L37" href="#L37">37</a>          options.addOption(<strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"a"</span>, <span class="jxr_string">"aaa"</span>, false, <span class="jxr_string">"aaaaaaa"</span>));
 <a class="jxr_linenumber" name="L38" href="#L38">38</a>          options.addOption(<strong class="jxr_keyword">new</strong> Option(<strong class="jxr_keyword">null</strong>, <span class="jxr_string">"bbb"</span>, false, <span class="jxr_string">"bbbbbbb dksh fkshd fkhs dkfhsdk fhskd hksdks dhfowehfsdhfkjshf skfhkshf sf jkshfk sfh skfh skf f"</span>));
 <a class="jxr_linenumber" name="L39" href="#L39">39</a>          options.addOption(<strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"c"</span>, <strong class="jxr_keyword">null</strong>, false, <span class="jxr_string">"ccccccc"</span>));
 <a class="jxr_linenumber" name="L40" href="#L40">40</a>  
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>          HelpFormatter formatter = <strong class="jxr_keyword">new</strong> HelpFormatter();
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>          StringWriter out = <strong class="jxr_keyword">new</strong> StringWriter();
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>          <strong class="jxr_keyword">final</strong> HelpFormatter formatter = <strong class="jxr_keyword">new</strong> HelpFormatter();
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          <strong class="jxr_keyword">final</strong> StringWriter out = <strong class="jxr_keyword">new</strong> StringWriter();
 <a class="jxr_linenumber" name="L43" href="#L43">43</a>  
 <a class="jxr_linenumber" name="L44" href="#L44">44</a>          formatter.printHelp(<strong class="jxr_keyword">new</strong> PrintWriter(out), 80, <span class="jxr_string">"foobar"</span>, <span class="jxr_string">"dsfkfsh kdh hsd hsdh fkshdf ksdh fskdh fsdh fkshfk sfdkjhskjh fkjh fkjsh khsdkj hfskdhf skjdfh ksf khf s"</span>, options, 2, 2, <span class="jxr_string">"blort j jgj j jg jhghjghjgjhgjhg jgjhgj jhg jhg hjg jgjhghjg jhg hjg jhgjg jgjhghjg jg jgjhgjgjg jhg jhgjh"</span> + '\r' + '\n' + <span class="jxr_string">"rarrr"</span>, <strong class="jxr_keyword">true</strong>);
 <a class="jxr_linenumber" name="L45" href="#L45">45</a>      }



Mime
View raw message