commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1013656 [37/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/OptionGroupTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/OptionGroupTest.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/OptionGroupTest.html Thu Jun  8 17:47:18 2017
@@ -44,24 +44,24 @@
 <a class="jxr_linenumber" name="L36" href="#L36">36</a>      @Before
 <a class="jxr_linenumber" name="L37" href="#L37">37</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setUp()
 <a class="jxr_linenumber" name="L38" href="#L38">38</a>      {
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>          Option file = <strong class="jxr_keyword">new</strong> Option( <span class="jxr_string">"f"</span>, <span class="jxr_string">"file"</span>, false, <span class="jxr_string">"file to process"</span> );
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>          Option dir = <strong class="jxr_keyword">new</strong> Option( <span class="jxr_string">"d"</span>, <span class="jxr_string">"directory"</span>, false, <span class="jxr_string">"directory to process"</span> );
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>          OptionGroup group = <strong class="jxr_keyword">new</strong> OptionGroup();
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          <strong class="jxr_keyword">final</strong> Option file = <strong class="jxr_keyword">new</strong> Option( <span class="jxr_string">"f"</span>, <span class="jxr_string">"file"</span>, false, <span class="jxr_string">"file to process"</span> );
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <strong class="jxr_keyword">final</strong> Option dir = <strong class="jxr_keyword">new</strong> Option( <span class="jxr_string">"d"</span>, <span class="jxr_string">"directory"</span>, false, <span class="jxr_string">"directory to process"</span> );
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>          <strong class="jxr_keyword">final</strong> OptionGroup group = <strong class="jxr_keyword">new</strong> OptionGroup();
 <a class="jxr_linenumber" name="L42" href="#L42">42</a>          group.addOption( file );
 <a class="jxr_linenumber" name="L43" href="#L43">43</a>          group.addOption( dir );
 <a class="jxr_linenumber" name="L44" href="#L44">44</a>          _options = <strong class="jxr_keyword">new</strong> Options().addOptionGroup( group );
 <a class="jxr_linenumber" name="L45" href="#L45">45</a>  
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>          Option section = <strong class="jxr_keyword">new</strong> Option( <span class="jxr_string">"s"</span>, <span class="jxr_string">"section"</span>, false, <span class="jxr_string">"section to process"</span> );
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>          Option chapter = <strong class="jxr_keyword">new</strong> Option( <span class="jxr_string">"c"</span>, <span class="jxr_string">"chapter"</span>, false, <span class="jxr_string">"chapter to process"</span> );
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>          OptionGroup group2 = <strong class="jxr_keyword">new</strong> OptionGroup();
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          <strong class="jxr_keyword">final</strong> Option section = <strong class="jxr_keyword">new</strong> Option( <span class="jxr_string">"s"</span>, <span class="jxr_string">"section"</span>, false, <span class="jxr_string">"section to process"</span> );
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          <strong class="jxr_keyword">final</strong> Option chapter = <strong class="jxr_keyword">new</strong> Option( <span class="jxr_string">"c"</span>, <span class="jxr_string">"chapter"</span>, false, <span class="jxr_string">"chapter to process"</span> );
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          <strong class="jxr_keyword">final</strong> OptionGroup group2 = <strong class="jxr_keyword">new</strong> OptionGroup();
 <a class="jxr_linenumber" name="L49" href="#L49">49</a>          group2.addOption( section );
 <a class="jxr_linenumber" name="L50" href="#L50">50</a>          group2.addOption( chapter );
 <a class="jxr_linenumber" name="L51" href="#L51">51</a>  
 <a class="jxr_linenumber" name="L52" href="#L52">52</a>          _options.addOptionGroup( group2 );
 <a class="jxr_linenumber" name="L53" href="#L53">53</a>  
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>          Option importOpt = <strong class="jxr_keyword">new</strong> Option( <strong class="jxr_keyword">null</strong>, <span class="jxr_string">"import"</span>, false, <span class="jxr_string">"section to process"</span> );
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>          Option exportOpt = <strong class="jxr_keyword">new</strong> Option( <strong class="jxr_keyword">null</strong>, <span class="jxr_string">"export"</span>, false, <span class="jxr_string">"chapter to process"</span> );
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>          OptionGroup group3 = <strong class="jxr_keyword">new</strong> OptionGroup();
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          <strong class="jxr_keyword">final</strong> Option importOpt = <strong class="jxr_keyword">new</strong> Option( <strong class="jxr_keyword">null</strong>, <span class="jxr_string">"import"</span>, false, <span class="jxr_string">"section to process"</span> );
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          <strong class="jxr_keyword">final</strong> Option exportOpt = <strong class="jxr_keyword">new</strong> Option( <strong class="jxr_keyword">null</strong>, <span class="jxr_string">"export"</span>, false, <span class="jxr_string">"chapter to process"</span> );
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          <strong class="jxr_keyword">final</strong> OptionGroup group3 = <strong class="jxr_keyword">new</strong> OptionGroup();
 <a class="jxr_linenumber" name="L57" href="#L57">57</a>          group3.addOption( importOpt );
 <a class="jxr_linenumber" name="L58" href="#L58">58</a>          group3.addOption( exportOpt );
 <a class="jxr_linenumber" name="L59" href="#L59">59</a>          _options.addOptionGroup( group3 );
@@ -72,9 +72,9 @@
 <a class="jxr_linenumber" name="L64" href="#L64">64</a>      @Test
 <a class="jxr_linenumber" name="L65" href="#L65">65</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testSingleOptionFromGroup() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L66" href="#L66">66</a>      {
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>          String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-f"</span> };
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-f"</span> };
 <a class="jxr_linenumber" name="L68" href="#L68">68</a>  
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>          CommandLine cl = parser.parse( _options, args);
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>          <strong class="jxr_keyword">final</strong> CommandLine cl = parser.parse( _options, args);
 <a class="jxr_linenumber" name="L70" href="#L70">70</a>  
 <a class="jxr_linenumber" name="L71" href="#L71">71</a>          assertTrue( <span class="jxr_string">"Confirm -r is NOT set"</span>, !cl.hasOption(<span class="jxr_string">"r"</span>) );
 <a class="jxr_linenumber" name="L72" href="#L72">72</a>          assertTrue( <span class="jxr_string">"Confirm -f is set"</span>, cl.hasOption(<span class="jxr_string">"f"</span>) );
@@ -87,9 +87,9 @@
 <a class="jxr_linenumber" name="L79" href="#L79">79</a>      @Test
 <a class="jxr_linenumber" name="L80" href="#L80">80</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testSingleOption() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L81" href="#L81">81</a>      {
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>          String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-r"</span> };
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>          <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-r"</span> };
 <a class="jxr_linenumber" name="L83" href="#L83">83</a>  
-<a class="jxr_linenumber" name="L84" href="#L84">84</a>          CommandLine cl = parser.parse( _options, args);
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>          <strong class="jxr_keyword">final</strong> CommandLine cl = parser.parse( _options, args);
 <a class="jxr_linenumber" name="L85" href="#L85">85</a>  
 <a class="jxr_linenumber" name="L86" href="#L86">86</a>          assertTrue( <span class="jxr_string">"Confirm -r is set"</span>, cl.hasOption(<span class="jxr_string">"r"</span>) );
 <a class="jxr_linenumber" name="L87" href="#L87">87</a>          assertTrue( <span class="jxr_string">"Confirm -f is NOT set"</span>, !cl.hasOption(<span class="jxr_string">"f"</span>) );
@@ -102,9 +102,9 @@
 <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> testTwoValidOptions() <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>          String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-r"</span>, <span class="jxr_string">"-f"</span> };
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>          <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-r"</span>, <span class="jxr_string">"-f"</span> };
 <a class="jxr_linenumber" name="L98" href="#L98">98</a>  
-<a class="jxr_linenumber" name="L99" href="#L99">99</a>          CommandLine cl = parser.parse( _options, args);
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>          <strong class="jxr_keyword">final</strong> CommandLine cl = parser.parse( _options, args);
 <a class="jxr_linenumber" name="L100" href="#L100">100</a> 
 <a class="jxr_linenumber" name="L101" href="#L101">101</a>         assertTrue( <span class="jxr_string">"Confirm -r is set"</span>, cl.hasOption(<span class="jxr_string">"r"</span>) );
 <a class="jxr_linenumber" name="L102" href="#L102">102</a>         assertTrue( <span class="jxr_string">"Confirm -f is set"</span>, cl.hasOption(<span class="jxr_string">"f"</span>) );
@@ -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> testSingleLongOption() <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>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--file"</span> };
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--file"</span> };
 <a class="jxr_linenumber" name="L113" href="#L113">113</a> 
-<a class="jxr_linenumber" name="L114" href="#L114">114</a>         CommandLine cl = parser.parse( _options, args);
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>         <strong class="jxr_keyword">final</strong> CommandLine cl = parser.parse( _options, args);
 <a class="jxr_linenumber" name="L115" href="#L115">115</a> 
 <a class="jxr_linenumber" name="L116" href="#L116">116</a>         assertTrue( <span class="jxr_string">"Confirm -r is NOT set"</span>, !cl.hasOption(<span class="jxr_string">"r"</span>) );
 <a class="jxr_linenumber" name="L117" href="#L117">117</a>         assertTrue( <span class="jxr_string">"Confirm -f is set"</span>, cl.hasOption(<span class="jxr_string">"f"</span>) );
@@ -132,9 +132,9 @@
 <a class="jxr_linenumber" name="L124" href="#L124">124</a>     @Test
 <a class="jxr_linenumber" name="L125" href="#L125">125</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testTwoValidLongOptions() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L126" href="#L126">126</a>     {
-<a class="jxr_linenumber" name="L127" href="#L127">127</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--revision"</span>, <span class="jxr_string">"--file"</span> };
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--revision"</span>, <span class="jxr_string">"--file"</span> };
 <a class="jxr_linenumber" name="L128" href="#L128">128</a> 
-<a class="jxr_linenumber" name="L129" href="#L129">129</a>         CommandLine cl = parser.parse( _options, args);
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>         <strong class="jxr_keyword">final</strong> CommandLine cl = parser.parse( _options, args);
 <a class="jxr_linenumber" name="L130" href="#L130">130</a> 
 <a class="jxr_linenumber" name="L131" href="#L131">131</a>         assertTrue( <span class="jxr_string">"Confirm -r is set"</span>, cl.hasOption(<span class="jxr_string">"r"</span>) );
 <a class="jxr_linenumber" name="L132" href="#L132">132</a>         assertTrue( <span class="jxr_string">"Confirm -f is set"</span>, cl.hasOption(<span class="jxr_string">"f"</span>) );
@@ -147,9 +147,9 @@
 <a class="jxr_linenumber" name="L139" href="#L139">139</a>     @Test
 <a class="jxr_linenumber" name="L140" href="#L140">140</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNoOptionsExtraArgs() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L141" href="#L141">141</a>     {
-<a class="jxr_linenumber" name="L142" href="#L142">142</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"arg1"</span>, <span class="jxr_string">"arg2"</span> };
+<a class="jxr_linenumber" name="L142" href="#L142">142</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"arg1"</span>, <span class="jxr_string">"arg2"</span> };
 <a class="jxr_linenumber" name="L143" href="#L143">143</a> 
-<a class="jxr_linenumber" name="L144" href="#L144">144</a>         CommandLine cl = parser.parse( _options, args);
+<a class="jxr_linenumber" name="L144" href="#L144">144</a>         <strong class="jxr_keyword">final</strong> CommandLine cl = parser.parse( _options, args);
 <a class="jxr_linenumber" name="L145" href="#L145">145</a> 
 <a class="jxr_linenumber" name="L146" href="#L146">146</a>         assertTrue( <span class="jxr_string">"Confirm -r is NOT set"</span>, !cl.hasOption(<span class="jxr_string">"r"</span>) );
 <a class="jxr_linenumber" name="L147" href="#L147">147</a>         assertTrue( <span class="jxr_string">"Confirm -f is NOT set"</span>, !cl.hasOption(<span class="jxr_string">"f"</span>) );
@@ -162,14 +162,14 @@
 <a class="jxr_linenumber" name="L154" href="#L154">154</a>     @Test
 <a class="jxr_linenumber" name="L155" href="#L155">155</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testTwoOptionsFromGroup() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L156" href="#L156">156</a>     {
-<a class="jxr_linenumber" name="L157" href="#L157">157</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-f"</span>, <span class="jxr_string">"-d"</span> };
+<a class="jxr_linenumber" name="L157" href="#L157">157</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-f"</span>, <span class="jxr_string">"-d"</span> };
 <a class="jxr_linenumber" name="L158" href="#L158">158</a> 
 <a class="jxr_linenumber" name="L159" href="#L159">159</a>         <strong class="jxr_keyword">try</strong>
 <a class="jxr_linenumber" name="L160" href="#L160">160</a>         {
 <a class="jxr_linenumber" name="L161" href="#L161">161</a>             parser.parse( _options, args);
 <a class="jxr_linenumber" name="L162" href="#L162">162</a>             fail( <span class="jxr_string">"two arguments from group not allowed"</span> );
 <a class="jxr_linenumber" name="L163" href="#L163">163</a>         }
-<a class="jxr_linenumber" name="L164" href="#L164">164</a>         <strong class="jxr_keyword">catch</strong> (AlreadySelectedException e)
+<a class="jxr_linenumber" name="L164" href="#L164">164</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> AlreadySelectedException e)
 <a class="jxr_linenumber" name="L165" href="#L165">165</a>         {
 <a class="jxr_linenumber" name="L166" href="#L166">166</a>             assertNotNull(<span class="jxr_string">"null option group"</span>, e.getOptionGroup());
 <a class="jxr_linenumber" name="L167" href="#L167">167</a>             assertEquals(<span class="jxr_string">"selected option"</span>, <span class="jxr_string">"f"</span>, e.getOptionGroup().getSelected());
@@ -180,14 +180,14 @@
 <a class="jxr_linenumber" name="L172" href="#L172">172</a>     @Test
 <a class="jxr_linenumber" name="L173" href="#L173">173</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testTwoLongOptionsFromGroup() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L174" href="#L174">174</a>     {
-<a class="jxr_linenumber" name="L175" href="#L175">175</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--file"</span>, <span class="jxr_string">"--directory"</span> };
+<a class="jxr_linenumber" name="L175" href="#L175">175</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"--file"</span>, <span class="jxr_string">"--directory"</span> };
 <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, args);
 <a class="jxr_linenumber" name="L180" href="#L180">180</a>             fail( <span class="jxr_string">"two arguments from group not allowed"</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> (AlreadySelectedException e)
+<a class="jxr_linenumber" name="L182" href="#L182">182</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> AlreadySelectedException e)
 <a class="jxr_linenumber" name="L183" href="#L183">183</a>         {
 <a class="jxr_linenumber" name="L184" href="#L184">184</a>             assertNotNull(<span class="jxr_string">"null option group"</span>, e.getOptionGroup());
 <a class="jxr_linenumber" name="L185" href="#L185">185</a>             assertEquals(<span class="jxr_string">"selected option"</span>, <span class="jxr_string">"f"</span>, e.getOptionGroup().getSelected());
@@ -198,9 +198,9 @@
 <a class="jxr_linenumber" name="L190" href="#L190">190</a>     @Test
 <a class="jxr_linenumber" name="L191" href="#L191">191</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testTwoOptionsFromDifferentGroup() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L192" href="#L192">192</a>     {
-<a class="jxr_linenumber" name="L193" href="#L193">193</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-f"</span>, <span class="jxr_string">"-s"</span> };
+<a class="jxr_linenumber" name="L193" href="#L193">193</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-f"</span>, <span class="jxr_string">"-s"</span> };
 <a class="jxr_linenumber" name="L194" href="#L194">194</a> 
-<a class="jxr_linenumber" name="L195" href="#L195">195</a>         CommandLine cl = parser.parse( _options, args);
+<a class="jxr_linenumber" name="L195" href="#L195">195</a>         <strong class="jxr_keyword">final</strong> CommandLine cl = parser.parse( _options, args);
 <a class="jxr_linenumber" name="L196" href="#L196">196</a>         assertTrue( <span class="jxr_string">"Confirm -r is NOT set"</span>, !cl.hasOption(<span class="jxr_string">"r"</span>) );
 <a class="jxr_linenumber" name="L197" href="#L197">197</a>         assertTrue( <span class="jxr_string">"Confirm -f is set"</span>, cl.hasOption(<span class="jxr_string">"f"</span>) );
 <a class="jxr_linenumber" name="L198" href="#L198">198</a>         assertTrue( <span class="jxr_string">"Confirm -d is NOT set"</span>, !cl.hasOption(<span class="jxr_string">"d"</span>) );
@@ -212,12 +212,12 @@
 <a class="jxr_linenumber" name="L204" href="#L204">204</a>     @Test
 <a class="jxr_linenumber" name="L205" href="#L205">205</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testTwoOptionsFromGroupWithProperties() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L206" href="#L206">206</a>     {
-<a class="jxr_linenumber" name="L207" href="#L207">207</a>         String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-f"</span> };
+<a class="jxr_linenumber" name="L207" href="#L207">207</a>         <strong class="jxr_keyword">final</strong> String[] args = <strong class="jxr_keyword">new</strong> String[] { <span class="jxr_string">"-f"</span> };
 <a class="jxr_linenumber" name="L208" href="#L208">208</a>         
-<a class="jxr_linenumber" name="L209" href="#L209">209</a>         Properties properties = <strong class="jxr_keyword">new</strong> Properties();
+<a class="jxr_linenumber" name="L209" href="#L209">209</a>         <strong class="jxr_keyword">final</strong> Properties properties = <strong class="jxr_keyword">new</strong> Properties();
 <a class="jxr_linenumber" name="L210" href="#L210">210</a>         properties.put(<span class="jxr_string">"d"</span>, <span class="jxr_string">"true"</span>);
 <a class="jxr_linenumber" name="L211" href="#L211">211</a>         
-<a class="jxr_linenumber" name="L212" href="#L212">212</a>         CommandLine cl = parser.parse( _options, args, properties);
+<a class="jxr_linenumber" name="L212" href="#L212">212</a>         <strong class="jxr_keyword">final</strong> CommandLine cl = parser.parse( _options, args, properties);
 <a class="jxr_linenumber" name="L213" href="#L213">213</a>         assertTrue(cl.hasOption(<span class="jxr_string">"f"</span>));
 <a class="jxr_linenumber" name="L214" href="#L214">214</a>         assertTrue(!cl.hasOption(<span class="jxr_string">"d"</span>));
 <a class="jxr_linenumber" name="L215" href="#L215">215</a>     }
@@ -225,17 +225,17 @@
 <a class="jxr_linenumber" name="L217" href="#L217">217</a>     @Test
 <a class="jxr_linenumber" name="L218" href="#L218">218</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testValidLongOnlyOptions() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L219" href="#L219">219</a>     {
-<a class="jxr_linenumber" name="L220" href="#L220">220</a>         CommandLine cl1 = parser.parse(_options, <strong class="jxr_keyword">new</strong> String[]{<span class="jxr_string">"--export"</span>});
+<a class="jxr_linenumber" name="L220" href="#L220">220</a>         <strong class="jxr_keyword">final</strong> CommandLine cl1 = parser.parse(_options, <strong class="jxr_keyword">new</strong> String[]{<span class="jxr_string">"--export"</span>});
 <a class="jxr_linenumber" name="L221" href="#L221">221</a>         assertTrue(<span class="jxr_string">"Confirm --export is set"</span>, cl1.hasOption(<span class="jxr_string">"export"</span>));
 <a class="jxr_linenumber" name="L222" href="#L222">222</a> 
-<a class="jxr_linenumber" name="L223" href="#L223">223</a>         CommandLine cl2 = parser.parse(_options, <strong class="jxr_keyword">new</strong> String[]{<span class="jxr_string">"--import"</span>});
+<a class="jxr_linenumber" name="L223" href="#L223">223</a>         <strong class="jxr_keyword">final</strong> CommandLine cl2 = parser.parse(_options, <strong class="jxr_keyword">new</strong> String[]{<span class="jxr_string">"--import"</span>});
 <a class="jxr_linenumber" name="L224" href="#L224">224</a>         assertTrue(<span class="jxr_string">"Confirm --import is set"</span>, cl2.hasOption(<span class="jxr_string">"import"</span>));
 <a class="jxr_linenumber" name="L225" href="#L225">225</a>     }
 <a class="jxr_linenumber" name="L226" href="#L226">226</a> 
 <a class="jxr_linenumber" name="L227" href="#L227">227</a>     @Test
 <a class="jxr_linenumber" name="L228" href="#L228">228</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToString()
 <a class="jxr_linenumber" name="L229" href="#L229">229</a>     {
-<a class="jxr_linenumber" name="L230" href="#L230">230</a>         OptionGroup group1 = <strong class="jxr_keyword">new</strong> OptionGroup();
+<a class="jxr_linenumber" name="L230" href="#L230">230</a>         <strong class="jxr_keyword">final</strong> OptionGroup group1 = <strong class="jxr_keyword">new</strong> OptionGroup();
 <a class="jxr_linenumber" name="L231" href="#L231">231</a>         group1.addOption(<strong class="jxr_keyword">new</strong> Option(<strong class="jxr_keyword">null</strong>, <span class="jxr_string">"foo"</span>, false, <span class="jxr_string">"Foo"</span>));
 <a class="jxr_linenumber" name="L232" href="#L232">232</a>         group1.addOption(<strong class="jxr_keyword">new</strong> Option(<strong class="jxr_keyword">null</strong>, <span class="jxr_string">"bar"</span>, false, <span class="jxr_string">"Bar"</span>));
 <a class="jxr_linenumber" name="L233" href="#L233">233</a> 
@@ -243,7 +243,7 @@
 <a class="jxr_linenumber" name="L235" href="#L235">235</a>             assertEquals(<span class="jxr_string">"[--foo Foo, --bar Bar]"</span>, group1.toString());
 <a class="jxr_linenumber" name="L236" href="#L236">236</a>         }
 <a class="jxr_linenumber" name="L237" href="#L237">237</a> 
-<a class="jxr_linenumber" name="L238" href="#L238">238</a>         OptionGroup group2 = <strong class="jxr_keyword">new</strong> OptionGroup();
+<a class="jxr_linenumber" name="L238" href="#L238">238</a>         <strong class="jxr_keyword">final</strong> OptionGroup group2 = <strong class="jxr_keyword">new</strong> OptionGroup();
 <a class="jxr_linenumber" name="L239" href="#L239">239</a>         group2.addOption(<strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"f"</span>, <span class="jxr_string">"foo"</span>, false, <span class="jxr_string">"Foo"</span>));
 <a class="jxr_linenumber" name="L240" href="#L240">240</a>         group2.addOption(<strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"b"</span>, <span class="jxr_string">"bar"</span>, false, <span class="jxr_string">"Bar"</span>));
 <a class="jxr_linenumber" name="L241" href="#L241">241</a> 
@@ -255,7 +255,7 @@
 <a class="jxr_linenumber" name="L247" href="#L247">247</a>     @Test
 <a class="jxr_linenumber" name="L248" href="#L248">248</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetNames()
 <a class="jxr_linenumber" name="L249" href="#L249">249</a>     {
-<a class="jxr_linenumber" name="L250" href="#L250">250</a>         OptionGroup group = <strong class="jxr_keyword">new</strong> OptionGroup();
+<a class="jxr_linenumber" name="L250" href="#L250">250</a>         <strong class="jxr_keyword">final</strong> OptionGroup group = <strong class="jxr_keyword">new</strong> OptionGroup();
 <a class="jxr_linenumber" name="L251" href="#L251">251</a>         group.addOption(OptionBuilder.create('a'));
 <a class="jxr_linenumber" name="L252" href="#L252">252</a>         group.addOption(OptionBuilder.create('b'));
 <a class="jxr_linenumber" name="L253" href="#L253">253</a> 

Modified: websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/OptionTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/OptionTest.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/OptionTest.html Thu Jun  8 17:47:18 2017
@@ -39,13 +39,13 @@
 <a class="jxr_linenumber" name="L31" href="#L31">31</a>      {
 <a class="jxr_linenumber" name="L32" href="#L32">32</a>          <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> serialVersionUID = 1L;
 <a class="jxr_linenumber" name="L33" href="#L33">33</a>  
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>          <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a>(String opt, <strong class="jxr_keyword">boolean</strong> hasArg, String description) <strong class="jxr_keyword">throws</strong> IllegalArgumentException
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>          <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a>(<strong class="jxr_keyword">final</strong> String opt, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> hasArg, <strong class="jxr_keyword">final</strong> String description) <strong class="jxr_keyword">throws</strong> IllegalArgumentException
 <a class="jxr_linenumber" name="L35" href="#L35">35</a>          {
 <a class="jxr_linenumber" name="L36" href="#L36">36</a>              <strong class="jxr_keyword">super</strong>(opt, hasArg, description);
 <a class="jxr_linenumber" name="L37" href="#L37">37</a>          }
 <a class="jxr_linenumber" name="L38" href="#L38">38</a>  
 <a class="jxr_linenumber" name="L39" href="#L39">39</a>          @Override
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> addValue(String value)
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> addValue(<strong class="jxr_keyword">final</strong> String value)
 <a class="jxr_linenumber" name="L41" href="#L41">41</a>          {
 <a class="jxr_linenumber" name="L42" href="#L42">42</a>              addValueForProcessing(value);
 <a class="jxr_linenumber" name="L43" href="#L43">43</a>              <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
@@ -55,7 +55,7 @@
 <a class="jxr_linenumber" name="L47" href="#L47">47</a>      @Test
 <a class="jxr_linenumber" name="L48" href="#L48">48</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testClear()
 <a class="jxr_linenumber" name="L49" href="#L49">49</a>      {
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>          <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a> option = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a>(<span class="jxr_string">"x"</span>, <strong class="jxr_keyword">true</strong>, <span class="jxr_string">""</span>);
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a> option = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a>(<span class="jxr_string">"x"</span>, <strong class="jxr_keyword">true</strong>, <span class="jxr_string">""</span>);
 <a class="jxr_linenumber" name="L51" href="#L51">51</a>          assertEquals(0, option.getValuesList().size());
 <a class="jxr_linenumber" name="L52" href="#L52">52</a>          option.addValue(<span class="jxr_string">"a"</span>);
 <a class="jxr_linenumber" name="L53" href="#L53">53</a>          assertEquals(1, option.getValuesList().size());
@@ -67,8 +67,8 @@
 <a class="jxr_linenumber" name="L59" href="#L59">59</a>      @Test
 <a class="jxr_linenumber" name="L60" href="#L60">60</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testClone()
 <a class="jxr_linenumber" name="L61" href="#L61">61</a>      {
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>          <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a> a = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a>(<span class="jxr_string">"a"</span>, <strong class="jxr_keyword">true</strong>, <span class="jxr_string">""</span>);
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>          <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a> b = (TestOption) a.clone();
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>          <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a> a = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a>(<span class="jxr_string">"a"</span>, <strong class="jxr_keyword">true</strong>, <span class="jxr_string">""</span>);
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>          <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">TestOption</a> b = (TestOption) a.clone();
 <a class="jxr_linenumber" name="L64" href="#L64">64</a>          assertEquals(a, b);
 <a class="jxr_linenumber" name="L65" href="#L65">65</a>          assertNotSame(a, b);
 <a class="jxr_linenumber" name="L66" href="#L66">66</a>          a.setDescription(<span class="jxr_string">"a"</span>);
@@ -94,7 +94,7 @@
 <a class="jxr_linenumber" name="L86" href="#L86">86</a>  
 <a class="jxr_linenumber" name="L87" href="#L87">87</a>          <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String defaultValue;
 <a class="jxr_linenumber" name="L88" href="#L88">88</a>  
-<a class="jxr_linenumber" name="L89" href="#L89">89</a>          <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">DefaultOption</a>(String opt, String description, String defaultValue) <strong class="jxr_keyword">throws</strong> IllegalArgumentException
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>          <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">DefaultOption</a>(<strong class="jxr_keyword">final</strong> String opt, <strong class="jxr_keyword">final</strong> String description, <strong class="jxr_keyword">final</strong> String defaultValue) <strong class="jxr_keyword">throws</strong> IllegalArgumentException
 <a class="jxr_linenumber" name="L90" href="#L90">90</a>          {
 <a class="jxr_linenumber" name="L91" href="#L91">91</a>              <strong class="jxr_keyword">super</strong>(opt, <strong class="jxr_keyword">true</strong>, description);
 <a class="jxr_linenumber" name="L92" href="#L92">92</a>              <strong class="jxr_keyword">this</strong>.defaultValue = defaultValue;
@@ -110,8 +110,8 @@
 <a class="jxr_linenumber" name="L102" href="#L102">102</a>     @Test
 <a class="jxr_linenumber" name="L103" href="#L103">103</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testSubclass()
 <a class="jxr_linenumber" name="L104" href="#L104">104</a>     {
-<a class="jxr_linenumber" name="L105" href="#L105">105</a>         Option option = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">DefaultOption</a>(<span class="jxr_string">"f"</span>, <span class="jxr_string">"file"</span>, <span class="jxr_string">"myfile.txt"</span>);
-<a class="jxr_linenumber" name="L106" href="#L106">106</a>         Option clone = (Option) option.clone();
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>         <strong class="jxr_keyword">final</strong> Option option = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/cli/OptionTest.html">DefaultOption</a>(<span class="jxr_string">"f"</span>, <span class="jxr_string">"file"</span>, <span class="jxr_string">"myfile.txt"</span>);
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>         <strong class="jxr_keyword">final</strong> Option clone = (Option) option.clone();
 <a class="jxr_linenumber" name="L107" href="#L107">107</a>         assertEquals(<span class="jxr_string">"myfile.txt"</span>, clone.getValue());
 <a class="jxr_linenumber" name="L108" href="#L108">108</a>         assertEquals(DefaultOption.<strong class="jxr_keyword">class</strong>, clone.getClass());
 <a class="jxr_linenumber" name="L109" href="#L109">109</a>     }
@@ -119,7 +119,7 @@
 <a class="jxr_linenumber" name="L111" href="#L111">111</a>     @Test
 <a class="jxr_linenumber" name="L112" href="#L112">112</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testHasArgName()
 <a class="jxr_linenumber" name="L113" href="#L113">113</a>     {
-<a class="jxr_linenumber" name="L114" href="#L114">114</a>         Option option = <strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"f"</span>, <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>         <strong class="jxr_keyword">final</strong> Option option = <strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"f"</span>, <strong class="jxr_keyword">null</strong>);
 <a class="jxr_linenumber" name="L115" href="#L115">115</a> 
 <a class="jxr_linenumber" name="L116" href="#L116">116</a>         option.setArgName(<strong class="jxr_keyword">null</strong>);
 <a class="jxr_linenumber" name="L117" href="#L117">117</a>         assertFalse(option.hasArgName());
@@ -134,7 +134,7 @@
 <a class="jxr_linenumber" name="L126" href="#L126">126</a>     @Test
 <a class="jxr_linenumber" name="L127" href="#L127">127</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testHasArgs()
 <a class="jxr_linenumber" name="L128" href="#L128">128</a>     {
-<a class="jxr_linenumber" name="L129" href="#L129">129</a>         Option option = <strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"f"</span>, <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>         <strong class="jxr_keyword">final</strong> Option option = <strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"f"</span>, <strong class="jxr_keyword">null</strong>);
 <a class="jxr_linenumber" name="L130" href="#L130">130</a> 
 <a class="jxr_linenumber" name="L131" href="#L131">131</a>         option.setArgs(0);
 <a class="jxr_linenumber" name="L132" href="#L132">132</a>         assertFalse(option.hasArgs());
@@ -155,7 +155,7 @@
 <a class="jxr_linenumber" name="L147" href="#L147">147</a>     @Test
 <a class="jxr_linenumber" name="L148" href="#L148">148</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetValue()
 <a class="jxr_linenumber" name="L149" href="#L149">149</a>     {
-<a class="jxr_linenumber" name="L150" href="#L150">150</a>         Option option = <strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"f"</span>, <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L150" href="#L150">150</a>         <strong class="jxr_keyword">final</strong> Option option = <strong class="jxr_keyword">new</strong> Option(<span class="jxr_string">"f"</span>, <strong class="jxr_keyword">null</strong>);
 <a class="jxr_linenumber" name="L151" href="#L151">151</a>         option.setArgs(Option.UNLIMITED_VALUES);
 <a class="jxr_linenumber" name="L152" href="#L152">152</a> 
 <a class="jxr_linenumber" name="L153" href="#L153">153</a>         assertEquals(<span class="jxr_string">"default"</span>, option.getValue(<span class="jxr_string">"default"</span>));
@@ -171,7 +171,7 @@
 <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> testBuilderMethods()
 <a class="jxr_linenumber" name="L165" href="#L165">165</a>     {
-<a class="jxr_linenumber" name="L166" href="#L166">166</a>         <strong class="jxr_keyword">char</strong> defaultSeparator = (<strong class="jxr_keyword">char</strong>) 0;
+<a class="jxr_linenumber" name="L166" href="#L166">166</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">char</strong> defaultSeparator = (<strong class="jxr_keyword">char</strong>) 0;
 <a class="jxr_linenumber" name="L167" href="#L167">167</a> 
 <a class="jxr_linenumber" name="L168" href="#L168">168</a>         checkOption(Option.builder(<span class="jxr_string">"a"</span>).desc(<span class="jxr_string">"desc"</span>).build(),
 <a class="jxr_linenumber" name="L169" href="#L169">169</a>             <span class="jxr_string">"a"</span>, <span class="jxr_string">"desc"</span>, <strong class="jxr_keyword">null</strong>, Option.UNINITIALIZED, <strong class="jxr_keyword">null</strong>, false, false, defaultSeparator, String.<strong class="jxr_keyword">class</strong>);
@@ -216,9 +216,9 @@
 <a class="jxr_linenumber" name="L208" href="#L208">208</a>         Option.builder(<strong class="jxr_keyword">null</strong>).desc(<span class="jxr_string">"desc"</span>).build();
 <a class="jxr_linenumber" name="L209" href="#L209">209</a>     }
 <a class="jxr_linenumber" name="L210" href="#L210">210</a> 
-<a class="jxr_linenumber" name="L211" href="#L211">211</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> checkOption(Option option, String opt, String description, String longOpt, <strong class="jxr_keyword">int</strong> numArgs,
-<a class="jxr_linenumber" name="L212" href="#L212">212</a>                                     String argName,  <strong class="jxr_keyword">boolean</strong> required, <strong class="jxr_keyword">boolean</strong> optionalArg,
-<a class="jxr_linenumber" name="L213" href="#L213">213</a>                                     <strong class="jxr_keyword">char</strong> valueSeparator, Class&lt;?&gt; cls)
+<a class="jxr_linenumber" name="L211" href="#L211">211</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> checkOption(<strong class="jxr_keyword">final</strong> Option option, <strong class="jxr_keyword">final</strong> String opt, <strong class="jxr_keyword">final</strong> String description, <strong class="jxr_keyword">final</strong> String longOpt, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> numArgs,
+<a class="jxr_linenumber" name="L212" href="#L212">212</a>                                     <strong class="jxr_keyword">final</strong> String argName,  <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> required, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> optionalArg,
+<a class="jxr_linenumber" name="L213" href="#L213">213</a>                                     <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">char</strong> valueSeparator, <strong class="jxr_keyword">final</strong> Class&lt;?&gt; cls)
 <a class="jxr_linenumber" name="L214" href="#L214">214</a>     {
 <a class="jxr_linenumber" name="L215" href="#L215">215</a>         assertEquals(opt, option.getOpt());
 <a class="jxr_linenumber" name="L216" href="#L216">216</a>         assertEquals(description, option.getDescription());

Modified: websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/OptionsTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/OptionsTest.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref-test/org/apache/commons/cli/OptionsTest.html Thu Jun  8 17:47:18 2017
@@ -41,7 +41,7 @@
 <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> testSimple()
 <a class="jxr_linenumber" name="L35" href="#L35">35</a>      {
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>          Options opts = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          <strong class="jxr_keyword">final</strong> Options opts = <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>          opts.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>          opts.addOption(<span class="jxr_string">"b"</span>, <strong class="jxr_keyword">true</strong>, <span class="jxr_string">"toggle -b"</span>);
@@ -53,7 +53,7 @@
 <a class="jxr_linenumber" name="L45" href="#L45">45</a>      @Test
 <a class="jxr_linenumber" name="L46" href="#L46">46</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testDuplicateSimple()
 <a class="jxr_linenumber" name="L47" href="#L47">47</a>      {
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>          Options opts = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          <strong class="jxr_keyword">final</strong> Options opts = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L49" href="#L49">49</a>          opts.addOption(<span class="jxr_string">"a"</span>, false, <span class="jxr_string">"toggle -a"</span>);
 <a class="jxr_linenumber" name="L50" href="#L50">50</a>          opts.addOption(<span class="jxr_string">"a"</span>, <strong class="jxr_keyword">true</strong>, <span class="jxr_string">"toggle -a*"</span>);
 <a class="jxr_linenumber" name="L51" href="#L51">51</a>  
@@ -63,7 +63,7 @@
 <a class="jxr_linenumber" name="L55" href="#L55">55</a>      @Test
 <a class="jxr_linenumber" name="L56" href="#L56">56</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLong()
 <a class="jxr_linenumber" name="L57" href="#L57">57</a>      {
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>          Options opts = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>          <strong class="jxr_keyword">final</strong> Options opts = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L59" href="#L59">59</a>  
 <a class="jxr_linenumber" name="L60" href="#L60">60</a>          opts.addOption(<span class="jxr_string">"a"</span>, <span class="jxr_string">"--a"</span>, false, <span class="jxr_string">"toggle -a"</span>);
 <a class="jxr_linenumber" name="L61" href="#L61">61</a>          opts.addOption(<span class="jxr_string">"b"</span>, <span class="jxr_string">"--b"</span>, <strong class="jxr_keyword">true</strong>, <span class="jxr_string">"set -b"</span>);
@@ -75,7 +75,7 @@
 <a class="jxr_linenumber" name="L67" href="#L67">67</a>      @Test
 <a class="jxr_linenumber" name="L68" href="#L68">68</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testDuplicateLong()
 <a class="jxr_linenumber" name="L69" href="#L69">69</a>      {
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>          Options opts = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          <strong class="jxr_keyword">final</strong> Options opts = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L71" href="#L71">71</a>          opts.addOption(<span class="jxr_string">"a"</span>, <span class="jxr_string">"--a"</span>, false, <span class="jxr_string">"toggle -a"</span>);
 <a class="jxr_linenumber" name="L72" href="#L72">72</a>          opts.addOption(<span class="jxr_string">"a"</span>, <span class="jxr_string">"--a"</span>, false, <span class="jxr_string">"toggle -a*"</span>);
 <a class="jxr_linenumber" name="L73" href="#L73">73</a>          assertEquals(<span class="jxr_string">"last one in wins"</span>, <span class="jxr_string">"toggle -a*"</span>, opts.getOption(<span class="jxr_string">"a"</span>).getDescription());
@@ -84,14 +84,14 @@
 <a class="jxr_linenumber" name="L76" href="#L76">76</a>      @Test
 <a class="jxr_linenumber" name="L77" href="#L77">77</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testHelpOptions()
 <a class="jxr_linenumber" name="L78" href="#L78">78</a>      {
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>          Option longOnly1 = OptionBuilder.withLongOpt(<span class="jxr_string">"long-only1"</span>).create();
-<a class="jxr_linenumber" name="L80" href="#L80">80</a>          Option longOnly2 = OptionBuilder.withLongOpt(<span class="jxr_string">"long-only2"</span>).create();
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>          Option shortOnly1 = OptionBuilder.create(<span class="jxr_string">"1"</span>);
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>          Option shortOnly2 = OptionBuilder.create(<span class="jxr_string">"2"</span>);
-<a class="jxr_linenumber" name="L83" href="#L83">83</a>          Option bothA = OptionBuilder.withLongOpt(<span class="jxr_string">"bothA"</span>).create(<span class="jxr_string">"a"</span>);
-<a class="jxr_linenumber" name="L84" href="#L84">84</a>          Option bothB = OptionBuilder.withLongOpt(<span class="jxr_string">"bothB"</span>).create(<span class="jxr_string">"b"</span>);
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>          <strong class="jxr_keyword">final</strong> Option longOnly1 = OptionBuilder.withLongOpt(<span class="jxr_string">"long-only1"</span>).create();
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>          <strong class="jxr_keyword">final</strong> Option longOnly2 = OptionBuilder.withLongOpt(<span class="jxr_string">"long-only2"</span>).create();
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>          <strong class="jxr_keyword">final</strong> Option shortOnly1 = OptionBuilder.create(<span class="jxr_string">"1"</span>);
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>          <strong class="jxr_keyword">final</strong> Option shortOnly2 = OptionBuilder.create(<span class="jxr_string">"2"</span>);
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>          <strong class="jxr_keyword">final</strong> Option bothA = OptionBuilder.withLongOpt(<span class="jxr_string">"bothA"</span>).create(<span class="jxr_string">"a"</span>);
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>          <strong class="jxr_keyword">final</strong> Option bothB = OptionBuilder.withLongOpt(<span class="jxr_string">"bothB"</span>).create(<span class="jxr_string">"b"</span>);
 <a class="jxr_linenumber" name="L85" href="#L85">85</a>          
-<a class="jxr_linenumber" name="L86" href="#L86">86</a>          Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>          <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L87" href="#L87">87</a>          options.addOption(longOnly1);
 <a class="jxr_linenumber" name="L88" href="#L88">88</a>          options.addOption(longOnly2);
 <a class="jxr_linenumber" name="L89" href="#L89">89</a>          options.addOption(shortOnly1);
@@ -99,7 +99,7 @@
 <a class="jxr_linenumber" name="L91" href="#L91">91</a>          options.addOption(bothA);
 <a class="jxr_linenumber" name="L92" href="#L92">92</a>          options.addOption(bothB);
 <a class="jxr_linenumber" name="L93" href="#L93">93</a>          
-<a class="jxr_linenumber" name="L94" href="#L94">94</a>          Collection&lt;Option&gt; allOptions = <strong class="jxr_keyword">new</strong> ArrayList&lt;Option&gt;();
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>          <strong class="jxr_keyword">final</strong> Collection&lt;Option&gt; allOptions = <strong class="jxr_keyword">new</strong> ArrayList&lt;Option&gt;();
 <a class="jxr_linenumber" name="L95" href="#L95">95</a>          allOptions.add(longOnly1);
 <a class="jxr_linenumber" name="L96" href="#L96">96</a>          allOptions.add(longOnly2);
 <a class="jxr_linenumber" name="L97" href="#L97">97</a>          allOptions.add(shortOnly1);
@@ -107,7 +107,7 @@
 <a class="jxr_linenumber" name="L99" href="#L99">99</a>          allOptions.add(bothA);
 <a class="jxr_linenumber" name="L100" href="#L100">100</a>         allOptions.add(bothB);
 <a class="jxr_linenumber" name="L101" href="#L101">101</a>         
-<a class="jxr_linenumber" name="L102" href="#L102">102</a>         Collection&lt;Option&gt; helpOptions = options.helpOptions();
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>         <strong class="jxr_keyword">final</strong> Collection&lt;Option&gt; helpOptions = options.helpOptions();
 <a class="jxr_linenumber" name="L103" href="#L103">103</a>         
 <a class="jxr_linenumber" name="L104" href="#L104">104</a>         assertTrue(<span class="jxr_string">"Everything in all should be in help"</span>, helpOptions.containsAll(allOptions));
 <a class="jxr_linenumber" name="L105" href="#L105">105</a>         assertTrue(<span class="jxr_string">"Everything in help should be in all"</span>, allOptions.containsAll(helpOptions));        
@@ -116,14 +116,14 @@
 <a class="jxr_linenumber" name="L108" href="#L108">108</a>     @Test
 <a class="jxr_linenumber" name="L109" href="#L109">109</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testMissingOptionException() <strong class="jxr_keyword">throws</strong> ParseException
 <a class="jxr_linenumber" name="L110" href="#L110">110</a>     {
-<a class="jxr_linenumber" name="L111" href="#L111">111</a>         Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>         <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L112" href="#L112">112</a>         options.addOption(OptionBuilder.isRequired().create(<span class="jxr_string">"f"</span>));
 <a class="jxr_linenumber" name="L113" href="#L113">113</a>         <strong class="jxr_keyword">try</strong>
 <a class="jxr_linenumber" name="L114" href="#L114">114</a>         {
 <a class="jxr_linenumber" name="L115" href="#L115">115</a>             <strong class="jxr_keyword">new</strong> PosixParser().parse(options, <strong class="jxr_keyword">new</strong> String[0]);
 <a class="jxr_linenumber" name="L116" href="#L116">116</a>             fail(<span class="jxr_string">"Expected MissingOptionException to be thrown"</span>);
 <a class="jxr_linenumber" name="L117" href="#L117">117</a>         }
-<a class="jxr_linenumber" name="L118" href="#L118">118</a>         <strong class="jxr_keyword">catch</strong> (MissingOptionException e)
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> MissingOptionException e)
 <a class="jxr_linenumber" name="L119" href="#L119">119</a>         {
 <a class="jxr_linenumber" name="L120" href="#L120">120</a>             assertEquals(<span class="jxr_string">"Missing required option: f"</span>, e.getMessage());
 <a class="jxr_linenumber" name="L121" href="#L121">121</a>         }
@@ -132,7 +132,7 @@
 <a class="jxr_linenumber" name="L124" href="#L124">124</a>     @Test
 <a class="jxr_linenumber" name="L125" href="#L125">125</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testMissingOptionsException() <strong class="jxr_keyword">throws</strong> ParseException
 <a class="jxr_linenumber" name="L126" href="#L126">126</a>     {
-<a class="jxr_linenumber" name="L127" href="#L127">127</a>         Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>         <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L128" href="#L128">128</a>         options.addOption(OptionBuilder.isRequired().create(<span class="jxr_string">"f"</span>));
 <a class="jxr_linenumber" name="L129" href="#L129">129</a>         options.addOption(OptionBuilder.isRequired().create(<span class="jxr_string">"x"</span>));
 <a class="jxr_linenumber" name="L130" href="#L130">130</a>         <strong class="jxr_keyword">try</strong>
@@ -140,7 +140,7 @@
 <a class="jxr_linenumber" name="L132" href="#L132">132</a>             <strong class="jxr_keyword">new</strong> PosixParser().parse(options, <strong class="jxr_keyword">new</strong> String[0]);
 <a class="jxr_linenumber" name="L133" href="#L133">133</a>             fail(<span class="jxr_string">"Expected MissingOptionException to be thrown"</span>);
 <a class="jxr_linenumber" name="L134" href="#L134">134</a>         }
-<a class="jxr_linenumber" name="L135" href="#L135">135</a>         <strong class="jxr_keyword">catch</strong> (MissingOptionException e)
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> MissingOptionException e)
 <a class="jxr_linenumber" name="L136" href="#L136">136</a>         {
 <a class="jxr_linenumber" name="L137" href="#L137">137</a>             assertEquals(<span class="jxr_string">"Missing required options: f, x"</span>, e.getMessage());
 <a class="jxr_linenumber" name="L138" href="#L138">138</a>         }
@@ -149,11 +149,11 @@
 <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> testToString()
 <a class="jxr_linenumber" name="L143" href="#L143">143</a>     {
-<a class="jxr_linenumber" name="L144" href="#L144">144</a>         Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L144" href="#L144">144</a>         <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L145" href="#L145">145</a>         options.addOption(<span class="jxr_string">"f"</span>, <span class="jxr_string">"foo"</span>, <strong class="jxr_keyword">true</strong>, <span class="jxr_string">"Foo"</span>);
 <a class="jxr_linenumber" name="L146" href="#L146">146</a>         options.addOption(<span class="jxr_string">"b"</span>, <span class="jxr_string">"bar"</span>, false, <span class="jxr_string">"Bar"</span>);
 <a class="jxr_linenumber" name="L147" href="#L147">147</a> 
-<a class="jxr_linenumber" name="L148" href="#L148">148</a>         String s = options.toString();
+<a class="jxr_linenumber" name="L148" href="#L148">148</a>         <strong class="jxr_keyword">final</strong> String s = options.toString();
 <a class="jxr_linenumber" name="L149" href="#L149">149</a>         assertNotNull(<span class="jxr_string">"null string returned"</span>, s);
 <a class="jxr_linenumber" name="L150" href="#L150">150</a>         assertTrue(<span class="jxr_string">"foo option missing"</span>, s.toLowerCase().contains(<span class="jxr_string">"foo"</span>));
 <a class="jxr_linenumber" name="L151" href="#L151">151</a>         assertTrue(<span class="jxr_string">"bar option missing"</span>, s.toLowerCase().contains(<span class="jxr_string">"bar"</span>));
@@ -162,13 +162,13 @@
 <a class="jxr_linenumber" name="L154" href="#L154">154</a>     @Test
 <a class="jxr_linenumber" name="L155" href="#L155">155</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetOptionsGroups()
 <a class="jxr_linenumber" name="L156" href="#L156">156</a>     {
-<a class="jxr_linenumber" name="L157" href="#L157">157</a>         Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L157" href="#L157">157</a>         <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L158" href="#L158">158</a> 
-<a class="jxr_linenumber" name="L159" href="#L159">159</a>         OptionGroup group1 = <strong class="jxr_keyword">new</strong> OptionGroup();
+<a class="jxr_linenumber" name="L159" href="#L159">159</a>         <strong class="jxr_keyword">final</strong> OptionGroup group1 = <strong class="jxr_keyword">new</strong> OptionGroup();
 <a class="jxr_linenumber" name="L160" href="#L160">160</a>         group1.addOption(OptionBuilder.create('a'));
 <a class="jxr_linenumber" name="L161" href="#L161">161</a>         group1.addOption(OptionBuilder.create('b'));
 <a class="jxr_linenumber" name="L162" href="#L162">162</a> 
-<a class="jxr_linenumber" name="L163" href="#L163">163</a>         OptionGroup group2 = <strong class="jxr_keyword">new</strong> OptionGroup();
+<a class="jxr_linenumber" name="L163" href="#L163">163</a>         <strong class="jxr_keyword">final</strong> OptionGroup group2 = <strong class="jxr_keyword">new</strong> OptionGroup();
 <a class="jxr_linenumber" name="L164" href="#L164">164</a>         group2.addOption(OptionBuilder.create('x'));
 <a class="jxr_linenumber" name="L165" href="#L165">165</a>         group2.addOption(OptionBuilder.create('y'));
 <a class="jxr_linenumber" name="L166" href="#L166">166</a> 
@@ -182,7 +182,7 @@
 <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> testGetMatchingOpts()
 <a class="jxr_linenumber" name="L176" href="#L176">176</a>     {
-<a class="jxr_linenumber" name="L177" href="#L177">177</a>         Options options = <strong class="jxr_keyword">new</strong> Options();
+<a class="jxr_linenumber" name="L177" href="#L177">177</a>         <strong class="jxr_keyword">final</strong> Options options = <strong class="jxr_keyword">new</strong> Options();
 <a class="jxr_linenumber" name="L178" href="#L178">178</a>         options.addOption(OptionBuilder.withLongOpt(<span class="jxr_string">"version"</span>).create());
 <a class="jxr_linenumber" name="L179" href="#L179">179</a>         options.addOption(OptionBuilder.withLongOpt(<span class="jxr_string">"verbose"</span>).create());
 <a class="jxr_linenumber" name="L180" href="#L180">180</a>         



Mime
View raw message