commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1013656 [45/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/org/apache/commons/cli/PosixParser.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/PosixParser.html
(original)
+++ websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/PosixParser.html
Thu Jun  8 17:47:18 2017
@@ -34,7 +34,7 @@
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_javadoccomment">
* The class PosixParser provides an implementation of the</em>
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment">
* {@link Parser#flatten(Options,String[],boolean) flatten} method.</em>
 <a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment">
*</em>
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment">
* @version $Id: PosixParser.java 1783175 2017-02-16 07:52:05Z britter $</em>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment">
* @version $Id$</em>
 <a class="jxr_linenumber" name="L30" href="#L30">30</a>  <em class="jxr_javadoccomment">
* @deprecated since 1.3, use the {@link DefaultParser} instead</em>
 <a class="jxr_linenumber" name="L31" href="#L31">31</a>  <em class="jxr_javadoccomment">
*/</em>
 <a class="jxr_linenumber" name="L32" href="#L32">32</a>  @Deprecated
@@ -101,19 +101,19 @@
 <a class="jxr_linenumber" name="L93" href="#L93">93</a>  <em class="jxr_javadoccomment">
    * @return The flattened &lt;code&gt;arguments&lt;/code&gt; String array.</em>
 <a class="jxr_linenumber" name="L94" href="#L94">94</a>  <em class="jxr_javadoccomment">
    */</em>
 <a class="jxr_linenumber" name="L95" href="#L95">95</a>      @Override
-<a class="jxr_linenumber" name="L96" href="#L96">96</a>      <strong class="jxr_keyword">protected</strong>
String[] flatten(<a href="../../../../org/apache/commons/cli/Options.html">Options</a>
options, String[] arguments, <strong class="jxr_keyword">boolean</strong> stopAtNonOption)
<strong class="jxr_keyword">throws</strong> ParseException
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>      <strong class="jxr_keyword">protected</strong>
String[] flatten(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/commons/cli/Options.html">Options</a>
options, <strong class="jxr_keyword">final</strong> String[] arguments, <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong>
stopAtNonOption) <strong class="jxr_keyword">throws</strong> ParseException
 <a class="jxr_linenumber" name="L97" href="#L97">97</a>      {
 <a class="jxr_linenumber" name="L98" href="#L98">98</a>          init();
 <a class="jxr_linenumber" name="L99" href="#L99">99</a>          <strong class="jxr_keyword">this</strong>.options
= options;
 <a class="jxr_linenumber" name="L100" href="#L100">100</a> 
 <a class="jxr_linenumber" name="L101" href="#L101">101</a>         <em class="jxr_comment">//
an iterator for the command line tokens</em>
-<a class="jxr_linenumber" name="L102" href="#L102">102</a>         Iterator&lt;String&gt;
iter = Arrays.asList(arguments).iterator();
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>         <strong
class="jxr_keyword">final</strong> Iterator&lt;String&gt; iter = Arrays.asList(arguments).iterator();
 <a class="jxr_linenumber" name="L103" href="#L103">103</a> 
 <a class="jxr_linenumber" name="L104" href="#L104">104</a>         <em class="jxr_comment">//
process each command line token</em>
 <a class="jxr_linenumber" name="L105" href="#L105">105</a>         <strong
class="jxr_keyword">while</strong> (iter.hasNext())
 <a class="jxr_linenumber" name="L106" href="#L106">106</a>         {
 <a class="jxr_linenumber" name="L107" href="#L107">107</a>             <em
class="jxr_comment">// get the next command line token</em>
-<a class="jxr_linenumber" name="L108" href="#L108">108</a>             String
token = iter.next();
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>             <strong
class="jxr_keyword">final</strong> String token = iter.next();
 <a class="jxr_linenumber" name="L109" href="#L109">109</a> 
 <a class="jxr_linenumber" name="L110" href="#L110">110</a>             <em
class="jxr_comment">// single or double hyphen</em>
 <a class="jxr_linenumber" name="L111" href="#L111">111</a>             <strong
class="jxr_keyword">if</strong> (<span class="jxr_string">"-"</span>.equals(token)
|| <span class="jxr_string">"--"</span>.equals(token))
@@ -124,10 +124,10 @@
 <a class="jxr_linenumber" name="L116" href="#L116">116</a>             <em
class="jxr_comment">// handle long option --foo or --foo=bar</em>
 <a class="jxr_linenumber" name="L117" href="#L117">117</a>             <strong
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
(token.startsWith(<span class="jxr_string">"--"</span>))
 <a class="jxr_linenumber" name="L118" href="#L118">118</a>             {
-<a class="jxr_linenumber" name="L119" href="#L119">119</a>                 <strong
class="jxr_keyword">int</strong> pos = token.indexOf('=');
-<a class="jxr_linenumber" name="L120" href="#L120">120</a>                 String
opt = pos == -1 ? token : token.substring(0, pos); <em class="jxr_comment">// --foo</em>
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>                 <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
pos = token.indexOf('=');
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>                 <strong
class="jxr_keyword">final</strong> String opt = pos == -1 ? token : token.substring(0,
pos); <em class="jxr_comment">// --foo</em>
 <a class="jxr_linenumber" name="L121" href="#L121">121</a>                 
-<a class="jxr_linenumber" name="L122" href="#L122">122</a>                 List&lt;String&gt;
matchingOpts = options.getMatchingOptions(opt);
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>                 <strong
class="jxr_keyword">final</strong> List&lt;String&gt; matchingOpts = options.getMatchingOptions(opt);
 <a class="jxr_linenumber" name="L123" href="#L123">123</a> 
 <a class="jxr_linenumber" name="L124" href="#L124">124</a>                 <strong
class="jxr_keyword">if</strong> (matchingOpts.isEmpty())
 <a class="jxr_linenumber" name="L125" href="#L125">125</a>                 {
@@ -157,12 +157,12 @@
 <a class="jxr_linenumber" name="L149" href="#L149">149</a>                 }
 <a class="jxr_linenumber" name="L150" href="#L150">150</a>                 <strong
class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
(!options.getMatchingOptions(token).isEmpty())
 <a class="jxr_linenumber" name="L151" href="#L151">151</a>                 {
-<a class="jxr_linenumber" name="L152" href="#L152">152</a>                  
  List&lt;String&gt; matchingOpts = options.getMatchingOptions(token);
+<a class="jxr_linenumber" name="L152" href="#L152">152</a>                  
  <strong class="jxr_keyword">final</strong> List&lt;String&gt; matchingOpts
= options.getMatchingOptions(token);
 <a class="jxr_linenumber" name="L153" href="#L153">153</a>                  
  <strong class="jxr_keyword">if</strong> (matchingOpts.size() &gt; 1)
 <a class="jxr_linenumber" name="L154" href="#L154">154</a>                  
  {
 <a class="jxr_linenumber" name="L155" href="#L155">155</a>                  
      <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong>
<a href="../../../../org/apache/commons/cli/AmbiguousOptionException.html">AmbiguousOptionException</a>(token,
matchingOpts);
 <a class="jxr_linenumber" name="L156" href="#L156">156</a>                  
  }
-<a class="jxr_linenumber" name="L157" href="#L157">157</a>                  
  <a href="../../../../org/apache/commons/cli/Option.html">Option</a> opt = options.getOption(matchingOpts.get(0));
+<a class="jxr_linenumber" name="L157" href="#L157">157</a>                  
  <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/commons/cli/Option.html">Option</a>
opt = options.getOption(matchingOpts.get(0));
 <a class="jxr_linenumber" name="L158" href="#L158">158</a>                  
  processOptionToken(<span class="jxr_string">"-"</span> + opt.getLongOpt(), stopAtNonOption);
 <a class="jxr_linenumber" name="L159" href="#L159">159</a>                 }
 <a class="jxr_linenumber" name="L160" href="#L160">160</a>                 <em
class="jxr_comment">// requires bursting</em>
@@ -187,7 +187,7 @@
 <a class="jxr_linenumber" name="L179" href="#L179">179</a> <em class="jxr_javadoccomment">
    *</em>
 <a class="jxr_linenumber" name="L180" href="#L180">180</a> <em class="jxr_javadoccomment">
    * @param iter An iterator over the remaining tokens</em>
 <a class="jxr_linenumber" name="L181" href="#L181">181</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L182" href="#L182">182</a>     <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">void</strong> gobble(Iterator&lt;String&gt;
iter)
+<a class="jxr_linenumber" name="L182" href="#L182">182</a>     <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">void</strong> gobble(<strong class="jxr_keyword">final</strong>
Iterator&lt;String&gt; iter)
 <a class="jxr_linenumber" name="L183" href="#L183">183</a>     {
 <a class="jxr_linenumber" name="L184" href="#L184">184</a>         <strong
class="jxr_keyword">if</strong> (eatTheRest)
 <a class="jxr_linenumber" name="L185" href="#L185">185</a>         {
@@ -205,7 +205,7 @@
 <a class="jxr_linenumber" name="L197" href="#L197">197</a> <em class="jxr_javadoccomment">
    *</em>
 <a class="jxr_linenumber" name="L198" href="#L198">198</a> <em class="jxr_javadoccomment">
    * @param value The current token</em>
 <a class="jxr_linenumber" name="L199" href="#L199">199</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L200" href="#L200">200</a>     <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">void</strong> processNonOptionToken(String value,
<strong class="jxr_keyword">boolean</strong> stopAtNonOption)
+<a class="jxr_linenumber" name="L200" href="#L200">200</a>     <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">void</strong> processNonOptionToken(<strong class="jxr_keyword">final</strong>
String value, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong>
stopAtNonOption)
 <a class="jxr_linenumber" name="L201" href="#L201">201</a>     {
 <a class="jxr_linenumber" name="L202" href="#L202">202</a>         <strong
class="jxr_keyword">if</strong> (stopAtNonOption &amp;&amp; (currentOption
== <strong class="jxr_keyword">null</strong> || !currentOption.hasArg()))
 <a class="jxr_linenumber" name="L203" href="#L203">203</a>         {
@@ -228,7 +228,7 @@
 <a class="jxr_linenumber" name="L220" href="#L220">220</a> <em class="jxr_javadoccomment">
    * @param stopAtNonOption Specifies whether flattening should halt</em>
 <a class="jxr_linenumber" name="L221" href="#L221">221</a> <em class="jxr_javadoccomment">
    * at the first non option.</em>
 <a class="jxr_linenumber" name="L222" href="#L222">222</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L223" href="#L223">223</a>     <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">void</strong> processOptionToken(String token, <strong
class="jxr_keyword">boolean</strong> stopAtNonOption)
+<a class="jxr_linenumber" name="L223" href="#L223">223</a>     <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">void</strong> processOptionToken(<strong class="jxr_keyword">final</strong>
String token, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong>
stopAtNonOption)
 <a class="jxr_linenumber" name="L224" href="#L224">224</a>     {
 <a class="jxr_linenumber" name="L225" href="#L225">225</a>         <strong
class="jxr_keyword">if</strong> (stopAtNonOption &amp;&amp; !options.hasOption(token))
 <a class="jxr_linenumber" name="L226" href="#L226">226</a>         {
@@ -269,11 +269,11 @@
 <a class="jxr_linenumber" name="L261" href="#L261">261</a> <em class="jxr_javadoccomment">
    * @param stopAtNonOption Specifies whether to stop processing</em>
 <a class="jxr_linenumber" name="L262" href="#L262">262</a> <em class="jxr_javadoccomment">
    * at the first non-Option encountered.</em>
 <a class="jxr_linenumber" name="L263" href="#L263">263</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L264" href="#L264">264</a>     <strong class="jxr_keyword">protected</strong>
<strong class="jxr_keyword">void</strong> burstToken(String token, <strong
class="jxr_keyword">boolean</strong> stopAtNonOption)
+<a class="jxr_linenumber" name="L264" href="#L264">264</a>     <strong class="jxr_keyword">protected</strong>
<strong class="jxr_keyword">void</strong> burstToken(<strong class="jxr_keyword">final</strong>
String token, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong>
stopAtNonOption)
 <a class="jxr_linenumber" name="L265" href="#L265">265</a>     {
 <a class="jxr_linenumber" name="L266" href="#L266">266</a>         <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong>
i = 1; i &lt; token.length(); i++)
 <a class="jxr_linenumber" name="L267" href="#L267">267</a>         {
-<a class="jxr_linenumber" name="L268" href="#L268">268</a>             String
ch = String.valueOf(token.charAt(i));
+<a class="jxr_linenumber" name="L268" href="#L268">268</a>             <strong
class="jxr_keyword">final</strong> String ch = String.valueOf(token.charAt(i));
 <a class="jxr_linenumber" name="L269" href="#L269">269</a> 
 <a class="jxr_linenumber" name="L270" href="#L270">270</a>             <strong
class="jxr_keyword">if</strong> (options.hasOption(ch))
 <a class="jxr_linenumber" name="L271" href="#L271">271</a>             {

Modified: websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/TypeHandler.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/TypeHandler.html
(original)
+++ websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/TypeHandler.html
Thu Jun  8 17:47:18 2017
@@ -38,7 +38,7 @@
 <a class="jxr_linenumber" name="L30" href="#L30">30</a>  <em class="jxr_javadoccomment">
* of conversion functionalities to ConvertUtils component in Commons</em>
 <a class="jxr_linenumber" name="L31" href="#L31">31</a>  <em class="jxr_javadoccomment">
* already. BeanUtils I think.</em>
 <a class="jxr_linenumber" name="L32" href="#L32">32</a>  <em class="jxr_javadoccomment">
*</em>
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <em class="jxr_javadoccomment">
* @version $Id: TypeHandler.java 1677452 2015-05-03 17:10:00Z ggregory $</em>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <em class="jxr_javadoccomment">
* @version $Id$</em>
 <a class="jxr_linenumber" name="L34" href="#L34">34</a>  <em class="jxr_javadoccomment">
*/</em>
 <a class="jxr_linenumber" name="L35" href="#L35">35</a>  <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/cli/TypeHandler.html">TypeHandler</a>
 <a class="jxr_linenumber" name="L36" href="#L36">36</a>  {
@@ -52,7 +52,7 @@
 <a class="jxr_linenumber" name="L44" href="#L44">44</a>  <em class="jxr_javadoccomment">
    * the value of &lt;code&gt;str&lt;/code&gt;.</em>
 <a class="jxr_linenumber" name="L45" href="#L45">45</a>  <em class="jxr_javadoccomment">
    * @throws ParseException if the value creation for the given object type failed</em>
 <a class="jxr_linenumber" name="L46" href="#L46">46</a>  <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Object createValue(String str, Object
obj) <strong class="jxr_keyword">throws</strong> ParseException
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Object createValue(<strong class="jxr_keyword">final</strong>
String str, <strong class="jxr_keyword">final</strong> Object obj) <strong
class="jxr_keyword">throws</strong> ParseException
 <a class="jxr_linenumber" name="L48" href="#L48">48</a>      {
 <a class="jxr_linenumber" name="L49" href="#L49">49</a>          <strong class="jxr_keyword">return</strong>
createValue(str, (Class&lt;?&gt;) obj);
 <a class="jxr_linenumber" name="L50" href="#L50">50</a>      }
@@ -67,7 +67,7 @@
 <a class="jxr_linenumber" name="L59" href="#L59">59</a>  <em class="jxr_javadoccomment">
    * the value of &lt;code&gt;str&lt;/code&gt;.</em>
 <a class="jxr_linenumber" name="L60" href="#L60">60</a>  <em class="jxr_javadoccomment">
    * @throws ParseException if the value creation for the given class failed</em>
 <a class="jxr_linenumber" name="L61" href="#L61">61</a>  <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Object createValue(String str, Class&lt;?&gt;
clazz) <strong class="jxr_keyword">throws</strong> ParseException
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Object createValue(<strong class="jxr_keyword">final</strong>
String str, <strong class="jxr_keyword">final</strong> Class&lt;?&gt;
clazz) <strong class="jxr_keyword">throws</strong> ParseException
 <a class="jxr_linenumber" name="L63" href="#L63">63</a>      {
 <a class="jxr_linenumber" name="L64" href="#L64">64</a>          <strong class="jxr_keyword">if</strong>
(PatternOptionBuilder.STRING_VALUE == clazz)
 <a class="jxr_linenumber" name="L65" href="#L65">65</a>          {
@@ -118,7 +118,7 @@
 <a class="jxr_linenumber" name="L110" href="#L110">110</a> <em class="jxr_javadoccomment">
     * @return the initialised object</em>
 <a class="jxr_linenumber" name="L111" href="#L111">111</a> <em class="jxr_javadoccomment">
     * @throws ParseException if the class could not be found or the object could not be created</em>
 <a class="jxr_linenumber" name="L112" href="#L112">112</a> <em class="jxr_javadoccomment">
     */</em>
-<a class="jxr_linenumber" name="L113" href="#L113">113</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Object createObject(String classname)
<strong class="jxr_keyword">throws</strong> ParseException
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Object createObject(<strong class="jxr_keyword">final</strong>
String classname) <strong class="jxr_keyword">throws</strong> ParseException
 <a class="jxr_linenumber" name="L114" href="#L114">114</a>     {
 <a class="jxr_linenumber" name="L115" href="#L115">115</a>         Class&lt;?&gt;
cl;
 <a class="jxr_linenumber" name="L116" href="#L116">116</a> 
@@ -126,7 +126,7 @@
 <a class="jxr_linenumber" name="L118" href="#L118">118</a>         {
 <a class="jxr_linenumber" name="L119" href="#L119">119</a>             cl = Class.forName(classname);
 <a class="jxr_linenumber" name="L120" href="#L120">120</a>         }
-<a class="jxr_linenumber" name="L121" href="#L121">121</a>         <strong
class="jxr_keyword">catch</strong> (ClassNotFoundException cnfe)
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>         <strong
class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong>
ClassNotFoundException cnfe)
 <a class="jxr_linenumber" name="L122" href="#L122">122</a>         {
 <a class="jxr_linenumber" name="L123" href="#L123">123</a>             <strong
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong>
<a href="../../../../org/apache/commons/cli/ParseException.html">ParseException</a>(<span
class="jxr_string">"Unable to find the class: "</span> + classname);
 <a class="jxr_linenumber" name="L124" href="#L124">124</a>         }
@@ -135,7 +135,7 @@
 <a class="jxr_linenumber" name="L127" href="#L127">127</a>         {
 <a class="jxr_linenumber" name="L128" href="#L128">128</a>             <strong
class="jxr_keyword">return</strong> cl.newInstance();
 <a class="jxr_linenumber" name="L129" href="#L129">129</a>         }
-<a class="jxr_linenumber" name="L130" href="#L130">130</a>         <strong
class="jxr_keyword">catch</strong> (Exception e)
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>         <strong
class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong>
Exception e)
 <a class="jxr_linenumber" name="L131" href="#L131">131</a>         {
 <a class="jxr_linenumber" name="L132" href="#L132">132</a>             <strong
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong>
<a href="../../../../org/apache/commons/cli/ParseException.html">ParseException</a>(e.getClass().getName()
+ <span class="jxr_string">"; Unable to create an instance of: "</span> + classname);
 <a class="jxr_linenumber" name="L133" href="#L133">133</a>         }
@@ -149,7 +149,7 @@
 <a class="jxr_linenumber" name="L141" href="#L141">141</a> <em class="jxr_javadoccomment">
    * @return the number represented by &lt;code&gt;str&lt;/code&gt;</em>
 <a class="jxr_linenumber" name="L142" href="#L142">142</a> <em class="jxr_javadoccomment">
    * @throws ParseException if &lt;code&gt;str&lt;/code&gt; is not a number</em>
 <a class="jxr_linenumber" name="L143" href="#L143">143</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L144" href="#L144">144</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Number createNumber(String str) <strong
class="jxr_keyword">throws</strong> ParseException
+<a class="jxr_linenumber" name="L144" href="#L144">144</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Number createNumber(<strong class="jxr_keyword">final</strong>
String str) <strong class="jxr_keyword">throws</strong> ParseException
 <a class="jxr_linenumber" name="L145" href="#L145">145</a>     {
 <a class="jxr_linenumber" name="L146" href="#L146">146</a>         <strong
class="jxr_keyword">try</strong>
 <a class="jxr_linenumber" name="L147" href="#L147">147</a>         {
@@ -159,7 +159,7 @@
 <a class="jxr_linenumber" name="L151" href="#L151">151</a>             }
 <a class="jxr_linenumber" name="L152" href="#L152">152</a>             <strong
class="jxr_keyword">return</strong> Long.valueOf(str);
 <a class="jxr_linenumber" name="L153" href="#L153">153</a>         }
-<a class="jxr_linenumber" name="L154" href="#L154">154</a>         <strong
class="jxr_keyword">catch</strong> (NumberFormatException e)
+<a class="jxr_linenumber" name="L154" href="#L154">154</a>         <strong
class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong>
NumberFormatException e)
 <a class="jxr_linenumber" name="L155" href="#L155">155</a>         {
 <a class="jxr_linenumber" name="L156" href="#L156">156</a>             <strong
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong>
<a href="../../../../org/apache/commons/cli/ParseException.html">ParseException</a>(e.getMessage());
 <a class="jxr_linenumber" name="L157" href="#L157">157</a>         }
@@ -172,13 +172,13 @@
 <a class="jxr_linenumber" name="L164" href="#L164">164</a> <em class="jxr_javadoccomment">
    * @return The class if it is found</em>
 <a class="jxr_linenumber" name="L165" href="#L165">165</a> <em class="jxr_javadoccomment">
    * @throws ParseException if the class could not be found</em>
 <a class="jxr_linenumber" name="L166" href="#L166">166</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L167" href="#L167">167</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Class&lt;?&gt; createClass(String
classname) <strong class="jxr_keyword">throws</strong> ParseException
+<a class="jxr_linenumber" name="L167" href="#L167">167</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Class&lt;?&gt; createClass(<strong
class="jxr_keyword">final</strong> String classname) <strong class="jxr_keyword">throws</strong>
ParseException
 <a class="jxr_linenumber" name="L168" href="#L168">168</a>     {
 <a class="jxr_linenumber" name="L169" href="#L169">169</a>         <strong
class="jxr_keyword">try</strong>
 <a class="jxr_linenumber" name="L170" href="#L170">170</a>         {
 <a class="jxr_linenumber" name="L171" href="#L171">171</a>             <strong
class="jxr_keyword">return</strong> Class.forName(classname);
 <a class="jxr_linenumber" name="L172" href="#L172">172</a>         }
-<a class="jxr_linenumber" name="L173" href="#L173">173</a>         <strong
class="jxr_keyword">catch</strong> (ClassNotFoundException e)
+<a class="jxr_linenumber" name="L173" href="#L173">173</a>         <strong
class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong>
ClassNotFoundException e)
 <a class="jxr_linenumber" name="L174" href="#L174">174</a>         {
 <a class="jxr_linenumber" name="L175" href="#L175">175</a>             <strong
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong>
<a href="../../../../org/apache/commons/cli/ParseException.html">ParseException</a>(<span
class="jxr_string">"Unable to find the class: "</span> + classname);
 <a class="jxr_linenumber" name="L176" href="#L176">176</a>         }
@@ -195,7 +195,7 @@
 <a class="jxr_linenumber" name="L187" href="#L187">187</a> <em class="jxr_javadoccomment">
    * otherwise return null.</em>
 <a class="jxr_linenumber" name="L188" href="#L188">188</a> <em class="jxr_javadoccomment">
    * @throws UnsupportedOperationException always</em>
 <a class="jxr_linenumber" name="L189" href="#L189">189</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L190" href="#L190">190</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Date createDate(String str)
+<a class="jxr_linenumber" name="L190" href="#L190">190</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Date createDate(<strong class="jxr_keyword">final</strong>
String str)
 <a class="jxr_linenumber" name="L191" href="#L191">191</a>     {
 <a class="jxr_linenumber" name="L192" href="#L192">192</a>         <strong
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong>
UnsupportedOperationException(<span class="jxr_string">"Not yet implemented"</span>);
 <a class="jxr_linenumber" name="L193" href="#L193">193</a>     }
@@ -207,13 +207,13 @@
 <a class="jxr_linenumber" name="L199" href="#L199">199</a> <em class="jxr_javadoccomment">
    * @return The URL in &lt;code&gt;str&lt;/code&gt; is well-formed</em>
 <a class="jxr_linenumber" name="L200" href="#L200">200</a> <em class="jxr_javadoccomment">
    * @throws ParseException if the URL in &lt;code&gt;str&lt;/code&gt; is
not well-formed</em>
 <a class="jxr_linenumber" name="L201" href="#L201">201</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L202" href="#L202">202</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> URL createURL(String str) <strong
class="jxr_keyword">throws</strong> ParseException
+<a class="jxr_linenumber" name="L202" href="#L202">202</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> URL createURL(<strong class="jxr_keyword">final</strong>
String str) <strong class="jxr_keyword">throws</strong> ParseException
 <a class="jxr_linenumber" name="L203" href="#L203">203</a>     {
 <a class="jxr_linenumber" name="L204" href="#L204">204</a>         <strong
class="jxr_keyword">try</strong>
 <a class="jxr_linenumber" name="L205" href="#L205">205</a>         {
 <a class="jxr_linenumber" name="L206" href="#L206">206</a>             <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong>
URL(str);
 <a class="jxr_linenumber" name="L207" href="#L207">207</a>         }
-<a class="jxr_linenumber" name="L208" href="#L208">208</a>         <strong
class="jxr_keyword">catch</strong> (MalformedURLException e)
+<a class="jxr_linenumber" name="L208" href="#L208">208</a>         <strong
class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong>
MalformedURLException e)
 <a class="jxr_linenumber" name="L209" href="#L209">209</a>         {
 <a class="jxr_linenumber" name="L210" href="#L210">210</a>             <strong
class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong>
<a href="../../../../org/apache/commons/cli/ParseException.html">ParseException</a>(<span
class="jxr_string">"Unable to parse the URL: "</span> + str);
 <a class="jxr_linenumber" name="L211" href="#L211">211</a>         }
@@ -225,7 +225,7 @@
 <a class="jxr_linenumber" name="L217" href="#L217">217</a> <em class="jxr_javadoccomment">
    * @param str the File location</em>
 <a class="jxr_linenumber" name="L218" href="#L218">218</a> <em class="jxr_javadoccomment">
    * @return The file represented by &lt;code&gt;str&lt;/code&gt;.</em>
 <a class="jxr_linenumber" name="L219" href="#L219">219</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L220" href="#L220">220</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> File createFile(String str)
+<a class="jxr_linenumber" name="L220" href="#L220">220</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> File createFile(<strong class="jxr_keyword">final</strong>
String str)
 <a class="jxr_linenumber" name="L221" href="#L221">221</a>     {
 <a class="jxr_linenumber" name="L222" href="#L222">222</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong>
File(str);
 <a class="jxr_linenumber" name="L223" href="#L223">223</a>     }
@@ -240,7 +240,7 @@
 <a class="jxr_linenumber" name="L232" href="#L232">232</a> <em class="jxr_javadoccomment">
    * @return The File[] represented by &lt;code&gt;str&lt;/code&gt;.</em>
 <a class="jxr_linenumber" name="L233" href="#L233">233</a> <em class="jxr_javadoccomment">
    * @throws UnsupportedOperationException always</em>
 <a class="jxr_linenumber" name="L234" href="#L234">234</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L235" href="#L235">235</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> File[] createFiles(String str)
+<a class="jxr_linenumber" name="L235" href="#L235">235</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> File[] createFiles(<strong class="jxr_keyword">final</strong>
String str)
 <a class="jxr_linenumber" name="L236" href="#L236">236</a>     {
 <a class="jxr_linenumber" name="L237" href="#L237">237</a>         <em class="jxr_comment">//
to implement/port:</em>
 <a class="jxr_linenumber" name="L238" href="#L238">238</a>         <em class="jxr_comment">//
       return FileW.findFiles(str);</em>

Modified: websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/UnrecognizedOptionException.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/UnrecognizedOptionException.html
(original)
+++ websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/UnrecognizedOptionException.html
Thu Jun  8 17:47:18 2017
@@ -29,7 +29,7 @@
 <a class="jxr_linenumber" name="L21" href="#L21">21</a>  <em class="jxr_javadoccomment">
* Exception thrown during parsing signalling an unrecognized</em>
 <a class="jxr_linenumber" name="L22" href="#L22">22</a>  <em class="jxr_javadoccomment">
* option was seen.</em>
 <a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment">
*</em>
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment">
* @version $Id: UnrecognizedOptionException.java 1443102 2013-02-06 18:12:16Z tn $</em>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment">
* @version $Id$</em>
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment">
*/</em>
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/cli/UnrecognizedOptionException.html">UnrecognizedOptionException</a>
<strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/commons/cli/ParseException.html">ParseException</a>
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>  {
@@ -47,7 +47,7 @@
 <a class="jxr_linenumber" name="L39" href="#L39">39</a>  <em class="jxr_javadoccomment">
    *</em>
 <a class="jxr_linenumber" name="L40" href="#L40">40</a>  <em class="jxr_javadoccomment">
    * @param message the detail message</em>
 <a class="jxr_linenumber" name="L41" href="#L41">41</a>  <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>      <strong class="jxr_keyword">public</strong>
<a href="../../../../org/apache/commons/cli/UnrecognizedOptionException.html">UnrecognizedOptionException</a>(String
message)
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      <strong class="jxr_keyword">public</strong>
<a href="../../../../org/apache/commons/cli/UnrecognizedOptionException.html">UnrecognizedOptionException</a>(<strong
class="jxr_keyword">final</strong> String message)
 <a class="jxr_linenumber" name="L43" href="#L43">43</a>      {
 <a class="jxr_linenumber" name="L44" href="#L44">44</a>          <strong class="jxr_keyword">super</strong>(message);
 <a class="jxr_linenumber" name="L45" href="#L45">45</a>      }
@@ -60,7 +60,7 @@
 <a class="jxr_linenumber" name="L52" href="#L52">52</a>  <em class="jxr_javadoccomment">
    * @param option  the unrecognized option</em>
 <a class="jxr_linenumber" name="L53" href="#L53">53</a>  <em class="jxr_javadoccomment">
    * @since 1.2</em>
 <a class="jxr_linenumber" name="L54" href="#L54">54</a>  <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>      <strong class="jxr_keyword">public</strong>
<a href="../../../../org/apache/commons/cli/UnrecognizedOptionException.html">UnrecognizedOptionException</a>(String
message, String option)
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>      <strong class="jxr_keyword">public</strong>
<a href="../../../../org/apache/commons/cli/UnrecognizedOptionException.html">UnrecognizedOptionException</a>(<strong
class="jxr_keyword">final</strong> String message, <strong class="jxr_keyword">final</strong>
String option)
 <a class="jxr_linenumber" name="L56" href="#L56">56</a>      {
 <a class="jxr_linenumber" name="L57" href="#L57">57</a>          <strong class="jxr_keyword">this</strong>(message);
 <a class="jxr_linenumber" name="L58" href="#L58">58</a>          <strong class="jxr_keyword">this</strong>.option
= option;

Modified: websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/Util.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/Util.html
(original)
+++ websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/Util.html
Thu Jun  8 17:47:18 2017
@@ -28,7 +28,7 @@
 <a class="jxr_linenumber" name="L20" href="#L20">20</a>  <em class="jxr_javadoccomment">/**</em>
 <a class="jxr_linenumber" name="L21" href="#L21">21</a>  <em class="jxr_javadoccomment">
* Contains useful helper methods for classes within this package.</em>
 <a class="jxr_linenumber" name="L22" href="#L22">22</a>  <em class="jxr_javadoccomment">
*</em>
-<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment">
* @version $Id: Util.java 1443102 2013-02-06 18:12:16Z tn $</em>
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment">
* @version $Id$</em>
 <a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment">
*/</em>
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/cli/Util.html">Util</a>
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>  {
@@ -40,7 +40,7 @@
 <a class="jxr_linenumber" name="L32" href="#L32">32</a>  <em class="jxr_javadoccomment">
    *</em>
 <a class="jxr_linenumber" name="L33" href="#L33">33</a>  <em class="jxr_javadoccomment">
    * @return the new String.</em>
 <a class="jxr_linenumber" name="L34" href="#L34">34</a>  <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <strong class="jxr_keyword">static</strong>
String stripLeadingHyphens(String str)
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <strong class="jxr_keyword">static</strong>
String stripLeadingHyphens(<strong class="jxr_keyword">final</strong> String str)
 <a class="jxr_linenumber" name="L36" href="#L36">36</a>      {
 <a class="jxr_linenumber" name="L37" href="#L37">37</a>          <strong class="jxr_keyword">if</strong>
(str == <strong class="jxr_keyword">null</strong>)
 <a class="jxr_linenumber" name="L38" href="#L38">38</a>          {
@@ -69,7 +69,7 @@
 <a class="jxr_linenumber" name="L61" href="#L61">61</a>  <em class="jxr_javadoccomment">
    */</em>
 <a class="jxr_linenumber" name="L62" href="#L62">62</a>      <strong class="jxr_keyword">static</strong>
String stripLeadingAndTrailingQuotes(String str)
 <a class="jxr_linenumber" name="L63" href="#L63">63</a>      {
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>          <strong class="jxr_keyword">int</strong>
length = str.length();
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>          <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">int</strong> length = str.length();
 <a class="jxr_linenumber" name="L65" href="#L65">65</a>          <strong class="jxr_keyword">if</strong>
(length &gt; 1 &amp;&amp; str.startsWith(<span class="jxr_string">"\&quot;"</span>)
&amp;&amp; str.endsWith(<span class="jxr_string">"\&quot;"</span>)
&amp;&amp; str.substring(1, length - 1).indexOf('&quot;') == -1)
 <a class="jxr_linenumber" name="L66" href="#L66">66</a>          {
 <a class="jxr_linenumber" name="L67" href="#L67">67</a>              str = str.substring(1,
length - 1);



Mime
View raw message