@@ -23,20 +23,21 @@ limitations under the License.
2323<body >
2424<!-- ================================================== -->
2525<section name =" Upgrading from 1.0 to 1.1" >
26- <p >CLI 1.1 is a bugfix release of CLI. The following changes were not backward compatible : </p >
26+ <p >CLI 1.1 is a bugfix release of CLI. The following changes notable API changes were made : </p >
2727
2828 <ul >
29- <li >The CommandLineParser interface has two additional methods. If you were extending this,
30- then you will need to add methods to your classes. If you were extending the abstract
31- Parser class, then you should be okay . </li >
32- <li >The HelpFormatter class had publicly accessible fields. These are now accessed via
33- get/set methods . </li >
34- <li >Two of HelpFormatter 's methods no longer throw IllegalArgumentException . </li >
35- <li >The Option class is no longer cloneable, and no longer has an addValue (String) method . </li >
29+ <li >The Parser abstract class has two additional parse methods that take a Properties parameter. </ li >
30+ < li >The HelpFormatter class had publicly accessible fields. These should now be accessed via
31+ get/set methods and the public fields are deprecated . </li >
32+ <li >The Option class addValue(String) method now throws UnsupportedOperationException. </ li >
33+ < li >OptionValidator is a newly added class . </li >
34+ <li >Option 's now have equals(Object) and hashCode() methods . </li >
35+ <li >The Option class also received two new methods, setDescription (String) and hasValueSeparator();boolean . </li >
3636 </ul >
3737
38- <p >The best way to test any of the above is to recompile your code against CLI 1.1. All of the above
39- should result in compile time errors. </p >
38+ <p >The jar should be API backwards compatible, though if you were calling addValue(String) then you won't be happy. Please
39+ let us know your use case if that is so. </p >
40+
4041</section >
4142<section name =" Bugs fixed in 1.1" >
4243 <p >The list of bugs fixed in 1.1 may be seen via the
0 commit comments