Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Won't Fix
-
1.2
-
None
-
None
Description
Please check page http://commons.apache.org/proper/commons-cli/usage.html, "OptionBuilder" session:
Option logfile = OptionBuilder.withArgName( "file" )
.hasArg()
.withDescription( "use given file for log" )
.create( "logfile" );
Here "create" method, which is a static one is called on the "OptionBuilder" instance of the object.
fix:
Usually "create" method in builder classes should not be declared static.