1*455610afSAndroid Build Coastguard Worker 2*455610afSAndroid Build Coastguard WorkerLicensed to the Apache Software Foundation (ASF) under one or more 3*455610afSAndroid Build Coastguard Workercontributor license agreements. See the NOTICE file distributed with 4*455610afSAndroid Build Coastguard Workerthis work for additional information regarding copyright ownership. 5*455610afSAndroid Build Coastguard WorkerThe ASF licenses this file to You under the Apache License, Version 2.0 6*455610afSAndroid Build Coastguard Worker(the "License"); you may not use this file except in compliance with 7*455610afSAndroid Build Coastguard Workerthe License. You may obtain a copy of the License at 8*455610afSAndroid Build Coastguard Worker 9*455610afSAndroid Build Coastguard Workerhttp://www.apache.org/licenses/LICENSE-2.0 10*455610afSAndroid Build Coastguard Worker 11*455610afSAndroid Build Coastguard WorkerUnless required by applicable law or agreed to in writing, software 12*455610afSAndroid Build Coastguard Workerdistributed under the License is distributed on an "AS IS" BASIS, 13*455610afSAndroid Build Coastguard WorkerWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14*455610afSAndroid Build Coastguard WorkerSee the License for the specific language governing permissions and 15*455610afSAndroid Build Coastguard Workerlimitations under the License. 16*455610afSAndroid Build Coastguard Worker 17*455610afSAndroid Build Coastguard Worker============================================================================= 18*455610afSAndroid Build Coastguard Worker 19*455610afSAndroid Build Coastguard Worker Apache Commons Lang 20*455610afSAndroid Build Coastguard Worker Version 3.8 21*455610afSAndroid Build Coastguard Worker Release Notes 22*455610afSAndroid Build Coastguard Worker 23*455610afSAndroid Build Coastguard Worker 24*455610afSAndroid Build Coastguard WorkerINTRODUCTION: 25*455610afSAndroid Build Coastguard Worker 26*455610afSAndroid Build Coastguard WorkerThis document contains the release notes for the 3.8 version of Apache Commons Lang. 27*455610afSAndroid Build Coastguard WorkerCommons Lang is a set of utility functions and reusable components that should be of use in any 28*455610afSAndroid Build Coastguard WorkerJava environment. 29*455610afSAndroid Build Coastguard Worker 30*455610afSAndroid Build Coastguard WorkerLang 3.0 and onwards now targets Java 7.0, making use of features that arrived with Java 7.0. 31*455610afSAndroid Build Coastguard Worker 32*455610afSAndroid Build Coastguard WorkerFor the advice on upgrading from 2.x to 3.x, see the following page: 33*455610afSAndroid Build Coastguard Worker 34*455610afSAndroid Build Coastguard Worker https://commons.apache.org/lang/article3_0.html 35*455610afSAndroid Build Coastguard Worker 36*455610afSAndroid Build Coastguard WorkerApache Commons Lang, a package of Java utility classes for the 37*455610afSAndroid Build Coastguard Workerclasses that are in java.lang's hierarchy, or are considered to be so 38*455610afSAndroid Build Coastguard Workerstandard as to justify existence in java.lang. 39*455610afSAndroid Build Coastguard Worker 40*455610afSAndroid Build Coastguard WorkerNew features and bug fixes. Requires Java 7, supports Java 8, 9, 10. 41*455610afSAndroid Build Coastguard Worker 42*455610afSAndroid Build Coastguard WorkerChanges in this version include: 43*455610afSAndroid Build Coastguard Worker 44*455610afSAndroid Build Coastguard WorkerNew features: 45*455610afSAndroid Build Coastguard Workero LANG-1352: EnumUtils.getEnumIgnoreCase and isValidEnumIgnoreCase methods added Thanks to Ruslan Sibgatullin. 46*455610afSAndroid Build Coastguard Workero LANG-1372: Add ToStringSummary annotation Thanks to S�rgio Ozaki. 47*455610afSAndroid Build Coastguard Workero LANG-1356: Add bypass option for classes to recursive and reflective EqualsBuilder Thanks to Yathos UG. 48*455610afSAndroid Build Coastguard Workero LANG-1391: Improve Javadoc for StringUtils.isAnyEmpty(null) Thanks to Sauro Matulli, Oleg Chubaryov. 49*455610afSAndroid Build Coastguard Workero LANG-1393: Add API SystemUtils.String getEnvironmentVariable(final String name, final String defaultValue) Thanks to Gary Gregory. 50*455610afSAndroid Build Coastguard Workero LANG-1394: org.apache.commons.lang3.SystemUtils should not write to System.err. Thanks to Sebb, Gary Gregory. 51*455610afSAndroid Build Coastguard Workero LANG-1238: Add RegexUtils class instead of overloading methods in StringUtils that take a regex to take precompiled Pattern. Thanks to Christopher Cordeiro, Gary Gregory, Bruno P. Kinoshita, Oleg Chubaryov. 52*455610afSAndroid Build Coastguard Workero LANG-1390: StringUtils.join() with support for List<?> with configurable start/end indices. Thanks to Jochen Schalanda. 53*455610afSAndroid Build Coastguard Workero LANG-1392: Methods for getting first non empty or non blank value Thanks to Jeff Nelson. 54*455610afSAndroid Build Coastguard Workero LANG-1408: Rounding utilities for converting to BigDecimal 55*455610afSAndroid Build Coastguard Worker 56*455610afSAndroid Build Coastguard WorkerFixed Bugs: 57*455610afSAndroid Build Coastguard Workero LANG-1380: FastDateParser too strict on abbreviated short month symbols Thanks to Markus Jelsma. 58*455610afSAndroid Build Coastguard Workero LANG-1396: JsonToStringStyle does not escape string names 59*455610afSAndroid Build Coastguard Workero LANG-1395: JsonToStringStyle does not escape double quote in a string value Thanks to Jim Gan. 60*455610afSAndroid Build Coastguard Workero LANG-1384: New Java version ("11") must be handled Thanks to Ian Young. 61*455610afSAndroid Build Coastguard Workero LANG-1364: ExceptionUtils#getRootCause(Throwable t) should return t if no lower level cause exists Thanks to Zheng Xie. 62*455610afSAndroid Build Coastguard Workero LANG-1060: NumberUtils.isNumber assumes number starting with Zero Thanks to Piotr Kosmala. 63*455610afSAndroid Build Coastguard Workero LANG-1375: defaultString(final String str) in StringUtils to reuse defaultString(final String str, final String defaultStr) Thanks to Jerry Zhao. 64*455610afSAndroid Build Coastguard Workero LANG-1374: Parsing Json Array failed Thanks to Jaswanth Bala. 65*455610afSAndroid Build Coastguard Workero LANG-1371: Fix TypeUtils#parameterize to work correctly with narrower-typed array Thanks to Dmitry Ovchinnikov. 66*455610afSAndroid Build Coastguard Workero LANG-1370: Fix EventCountCircuitBreaker increment batch Thanks to Andre Dieb. 67*455610afSAndroid Build Coastguard Workero LANG-1385: NumberUtils.createNumber() throws StringIndexOutOfBoundsException instead of NumberFormatException Thanks to Rohan Padhye. 68*455610afSAndroid Build Coastguard Workero LANG-1397: WordUtils.wrap throws StringIndexOutOfBoundsException when wrapLength is Integer.MAX_VALUE. Thanks to Takanobu Asanuma. 69*455610afSAndroid Build Coastguard Workero LANG-1401: Typo in JavaDoc for lastIndexOf Thanks to Roman Golyshev, Alex Mamedov. 70*455610afSAndroid Build Coastguard Worker 71*455610afSAndroid Build Coastguard WorkerChanges: 72*455610afSAndroid Build Coastguard Workero LANG-1367: ObjectUtils.identityToString(Object) and friends should allocate builders and buffers with a size Thanks to Gary Gregory. 73*455610afSAndroid Build Coastguard Workero LANG-1405: Remove checks for java versions below the minimum supported one Thanks to Lars Grefer. 74*455610afSAndroid Build Coastguard Workero LANG-1402: Null/index safe get methods for ArrayUtils Thanks to Mark Dacek. 75*455610afSAndroid Build Coastguard Worker 76*455610afSAndroid Build Coastguard Worker 77*455610afSAndroid Build Coastguard WorkerHistorical list of changes: https://commons.apache.org/proper/commons-lang/changes-report.html 78*455610afSAndroid Build Coastguard Worker 79*455610afSAndroid Build Coastguard WorkerFor complete information on Apache Commons Lang, including instructions on how to submit bug reports, 80*455610afSAndroid Build Coastguard Workerpatches, or suggestions for improvement, see the Apache Commons Lang website: 81*455610afSAndroid Build Coastguard Worker 82*455610afSAndroid Build Coastguard Workerhttps://commons.apache.org/proper/commons-lang/ 83*455610afSAndroid Build Coastguard Worker 84*455610afSAndroid Build Coastguard Worker============================================================================= 85*455610afSAndroid Build Coastguard Worker 86*455610afSAndroid Build Coastguard Worker Apache Commons Lang 87*455610afSAndroid Build Coastguard Worker Version 3.7 88*455610afSAndroid Build Coastguard Worker Release Notes 89*455610afSAndroid Build Coastguard Worker 90*455610afSAndroid Build Coastguard Worker 91*455610afSAndroid Build Coastguard WorkerINTRODUCTION: 92*455610afSAndroid Build Coastguard Worker 93*455610afSAndroid Build Coastguard WorkerThis document contains the release notes for the 3.7 version of Apache Commons Lang. 94*455610afSAndroid Build Coastguard WorkerCommons Lang is a set of utility functions and reusable components that should be of use in any 95*455610afSAndroid Build Coastguard WorkerJava environment. 96*455610afSAndroid Build Coastguard Worker 97*455610afSAndroid Build Coastguard WorkerLang 3.0 and onwards now targets Java 5.0, making use of features that arrived with Java 5.0 such as generics, 98*455610afSAndroid Build Coastguard Workervariable arguments, autoboxing, concurrency and formatted output. 99*455610afSAndroid Build Coastguard Worker 100*455610afSAndroid Build Coastguard WorkerFor the advice on upgrading from 2.x to 3.x, see the following page: 101*455610afSAndroid Build Coastguard Worker 102*455610afSAndroid Build Coastguard Worker https://commons.apache.org/lang/article3_0.html 103*455610afSAndroid Build Coastguard Worker 104*455610afSAndroid Build Coastguard WorkerApache Commons Lang, a package of Java utility classes for the 105*455610afSAndroid Build Coastguard Workerclasses that are in java.lang's hierarchy, or are considered to be so 106*455610afSAndroid Build Coastguard Workerstandard as to justify existence in java.lang. 107*455610afSAndroid Build Coastguard Worker 108*455610afSAndroid Build Coastguard WorkerNew features and bug fixes. Requires Java 7, supports Java 8, 9, 10. 109*455610afSAndroid Build Coastguard Worker 110*455610afSAndroid Build Coastguard WorkerChanges in this version include: 111*455610afSAndroid Build Coastguard Worker 112*455610afSAndroid Build Coastguard WorkerNew features: 113*455610afSAndroid Build Coastguard Workero LANG-1355: TimeZone.getTimeZone() in FastDateParser causes resource contention (PR #296.) Thanks to Chas Honton. 114*455610afSAndroid Build Coastguard Workero LANG-1360: Add methods to ObjectUtils to get various forms of class names in a null-safe manner Thanks to Gary Gregory. 115*455610afSAndroid Build Coastguard Worker 116*455610afSAndroid Build Coastguard WorkerFixed Bugs: 117*455610afSAndroid Build Coastguard Workero LANG-1362: Fix tests DateUtilsTest for Java 9 with en_GB locale Thanks to Stephen Colebourne. 118*455610afSAndroid Build Coastguard Workero LANG-1365: Fix NullPointerException in isJavaVersionAtLeast on Java 10, add SystemUtils.IS_JAVA_10, add JavaVersion.JAVA_10 Thanks to Gary Gregory. 119*455610afSAndroid Build Coastguard Workero LANG-1348: StackOverflowError on TypeUtils.toString(...) for a generic return type of Enum.valueOf Thanks to mbusso. 120*455610afSAndroid Build Coastguard Workero LANG-1350: ConstructorUtils.invokeConstructor(Class, Object...) regression Thanks to Brett Kail. 121*455610afSAndroid Build Coastguard Workero LANG-1349: EqualsBuilder#isRegistered: swappedPair construction bug Thanks to Naman Nigam. 122*455610afSAndroid Build Coastguard Workero LANG-1357: org.apache.commons.lang3.time.FastDateParser should use toUpperCase(Locale) Thanks to BruceKuiLiu. 123*455610afSAndroid Build Coastguard Worker 124*455610afSAndroid Build Coastguard WorkerChanges: 125*455610afSAndroid Build Coastguard Workero LANG-1358: Improve StringUtils#replace throughput Thanks to Stephane Landelle. 126*455610afSAndroid Build Coastguard Workero LANG-1346: Remove deprecation from RandomStringUtils 127*455610afSAndroid Build Coastguard Workero LANG-1361: ExceptionUtils.getThrowableList() is using deprecated ExceptionUtils.getCause() Thanks to Ana. 128*455610afSAndroid Build Coastguard Worker 129*455610afSAndroid Build Coastguard Worker 130*455610afSAndroid Build Coastguard Worker============================================================================= 131*455610afSAndroid Build Coastguard Worker 132*455610afSAndroid Build Coastguard Worker Apache Commons Lang 133*455610afSAndroid Build Coastguard Worker Version 3.6 134*455610afSAndroid Build Coastguard Worker Release Notes 135*455610afSAndroid Build Coastguard Worker 136*455610afSAndroid Build Coastguard Worker 137*455610afSAndroid Build Coastguard WorkerINTRODUCTION: 138*455610afSAndroid Build Coastguard Worker 139*455610afSAndroid Build Coastguard WorkerThis document contains the release notes for the 3.6 version of 140*455610afSAndroid Build Coastguard WorkerApache Commons Lang as well as a history all changes in the Commons Lang 3.x 141*455610afSAndroid Build Coastguard Workerrelease line. Commons Lang is a set of utility functions and reusable 142*455610afSAndroid Build Coastguard Workercomponents that should be of use in any Java environment. Commons Lang 3.6 at 143*455610afSAndroid Build Coastguard Workerleast requires Java 7.0. Note that this has changed from Commons Lang 3.5, which 144*455610afSAndroid Build Coastguard Workeronly required Java 1.6. 145*455610afSAndroid Build Coastguard Worker 146*455610afSAndroid Build Coastguard WorkerFor the advice on upgrading from 2.x to 3.x, see the following page: 147*455610afSAndroid Build Coastguard Worker 148*455610afSAndroid Build Coastguard Worker https://commons.apache.org/lang/article3_0.html 149*455610afSAndroid Build Coastguard Worker 150*455610afSAndroid Build Coastguard WorkerHIGHLIGHTS 151*455610afSAndroid Build Coastguard Worker========== 152*455610afSAndroid Build Coastguard Worker 153*455610afSAndroid Build Coastguard WorkerSome of the highlights in this release include: 154*455610afSAndroid Build Coastguard Worker 155*455610afSAndroid Build Coastguard Workero The class org.apache.commons.lang3.concurrent.Memoizer is an implementation 156*455610afSAndroid Build Coastguard Worker of the Memoizer pattern as shown in 157*455610afSAndroid Build Coastguard Worker Goetz, Brian et al. (2006) - Java Concurrency in Practice, p. 108. 158*455610afSAndroid Build Coastguard Workero The class org.apache.commons.lang3.ArchUtils has been added. ArchUtils is 159*455610afSAndroid Build Coastguard Worker a utility class for the "os.arch" system property. 160*455610afSAndroid Build Coastguard Worker 161*455610afSAndroid Build Coastguard WorkerDEPRECATIONS 162*455610afSAndroid Build Coastguard Worker============ 163*455610afSAndroid Build Coastguard Worker 164*455610afSAndroid Build Coastguard WorkerThe Apache Commons Community has recently set up the Commons Text component 165*455610afSAndroid Build Coastguard Workeras a home for algorithms working on strings. For this reason most of the string 166*455610afSAndroid Build Coastguard Workerfocused functionality in Commons Lang has been deprecated and moved to 167*455610afSAndroid Build Coastguard WorkerCommons Text. This includes: 168*455610afSAndroid Build Coastguard Worker 169*455610afSAndroid Build Coastguard Workero All classes in the org.apache.commons.lang3.text and the 170*455610afSAndroid Build Coastguard Worker org.apache.commons.lang3.text.translate packages 171*455610afSAndroid Build Coastguard Workero org.apache.commons.lang3.StringEscapeUtils 172*455610afSAndroid Build Coastguard Workero org.apache.commons.lang3.RandomStringUtils 173*455610afSAndroid Build Coastguard Workero The methods org.apache.commons.lang3.StringUtils.getJaroWinklerDistance and 174*455610afSAndroid Build Coastguard Worker org.apache.commons.lang3.StringUtils.getLevenshteinDistance 175*455610afSAndroid Build Coastguard Worker 176*455610afSAndroid Build Coastguard WorkerFor more information see the Commons Text website: 177*455610afSAndroid Build Coastguard Worker 178*455610afSAndroid Build Coastguard Worker https://commons.apache.org/text 179*455610afSAndroid Build Coastguard Worker 180*455610afSAndroid Build Coastguard WorkerThe class org.apache.commons.lang3.CharEncoding has been deprecated in favor of 181*455610afSAndroid Build Coastguard Workerjava.nio.charset.StandardCharsets. 182*455610afSAndroid Build Coastguard Worker 183*455610afSAndroid Build Coastguard WorkerThe following methods have been deprecated in 184*455610afSAndroid Build Coastguard Workerorg.apache.commons.lang3.ArrayUtils in favor of the corresponding insert 185*455610afSAndroid Build Coastguard Workermethods. Note that the handling for null inputs differs between add and insert. 186*455610afSAndroid Build Coastguard Worker 187*455610afSAndroid Build Coastguard Workero add(boolean[], int, boolean) -> insert(int, boolean[], boolean...) 188*455610afSAndroid Build Coastguard Workero add(byte[], int, boolean) -> insert(int, byte[], byte...) 189*455610afSAndroid Build Coastguard Workero add(char[], int, boolean) -> insert(int, char[], char...) 190*455610afSAndroid Build Coastguard Workero add(double[], int, boolean) -> insert(int, double[], double...) 191*455610afSAndroid Build Coastguard Workero add(float[], int, boolean) -> insert(int, float[], float...) 192*455610afSAndroid Build Coastguard Workero add(int[], int, boolean) -> insert(int, int[], int...) 193*455610afSAndroid Build Coastguard Workero add(long[], int, boolean) -> insert(int, long[], long...) 194*455610afSAndroid Build Coastguard Workero add(short[], int, boolean) -> insert(int, short[], short...) 195*455610afSAndroid Build Coastguard Workero add(T[], int, boolean) -> insert(int, T[], T...) 196*455610afSAndroid Build Coastguard Worker 197*455610afSAndroid Build Coastguard Worker 198*455610afSAndroid Build Coastguard WorkerCOMPATIBILITY WITH JAVA 9 199*455610afSAndroid Build Coastguard Worker================== 200*455610afSAndroid Build Coastguard Worker 201*455610afSAndroid Build Coastguard WorkerThe MANIFEST.MF now contains an additional entry: 202*455610afSAndroid Build Coastguard Worker 203*455610afSAndroid Build Coastguard Worker Automatic-Module-Name: org.apache.commons.lang3 204*455610afSAndroid Build Coastguard Worker 205*455610afSAndroid Build Coastguard WorkerThis should make it possible to use Commons Lang 3.6 as a module in the Java 9 206*455610afSAndroid Build Coastguard Workermodule system. For more information see the corresponding issue and the 207*455610afSAndroid Build Coastguard Workerreferenced mailing list discussions: 208*455610afSAndroid Build Coastguard Worker 209*455610afSAndroid Build Coastguard Worker https://issues.apache.org/jira/browse/LANG-1338 210*455610afSAndroid Build Coastguard Worker 211*455610afSAndroid Build Coastguard WorkerThe build problems present in the 3.5 release have been resolved. Building 212*455610afSAndroid Build Coastguard WorkerCommons Lang 3.6 should work out of the box with the latest Java 9 EA build. 213*455610afSAndroid Build Coastguard WorkerPlease report any Java 9 related issues at: 214*455610afSAndroid Build Coastguard Worker 215*455610afSAndroid Build Coastguard Worker https://issues.apache.org/jira/browse/LANG 216*455610afSAndroid Build Coastguard Worker 217*455610afSAndroid Build Coastguard WorkerNEW FEATURES 218*455610afSAndroid Build Coastguard Worker============ 219*455610afSAndroid Build Coastguard Worker 220*455610afSAndroid Build Coastguard Workero LANG-1336: Add NUL Byte To CharUtils. Thanks to Beluga Behr. 221*455610afSAndroid Build Coastguard Workero LANG-1304: Add method in StringUtils to determine if string contains both 222*455610afSAndroid Build Coastguard Worker mixed cased characters. Thanks to Andy Klimczak. 223*455610afSAndroid Build Coastguard Workero LANG-1325: Increase test coverage of ToStringBuilder class to 100%. 224*455610afSAndroid Build Coastguard Worker Thanks to Arshad Basha. 225*455610afSAndroid Build Coastguard Workero LANG-1307: Add a method in StringUtils to extract only digits out of input 226*455610afSAndroid Build Coastguard Worker string. Thanks to Arshad Basha. 227*455610afSAndroid Build Coastguard Workero LANG-1256: Add JMH maven dependencies. Thanks to C0rWin. 228*455610afSAndroid Build Coastguard Workero LANG-1167: Add null filter to ReflectionToStringBuilder. 229*455610afSAndroid Build Coastguard Worker Thanks to Mark Dacek. 230*455610afSAndroid Build Coastguard Workero LANG-1299: Add method for converting string to an array of code points. 231*455610afSAndroid Build Coastguard Workero LANG-660: Add methods to insert arrays into arrays at an index. 232*455610afSAndroid Build Coastguard Workero LANG-1034: Add support for recursive comparison to 233*455610afSAndroid Build Coastguard Worker EqualsBuilder#reflectionEquals. Thanks to Yathos UG. 234*455610afSAndroid Build Coastguard Workero LANG-1067: Add a reflection-based variant of DiffBuilder. 235*455610afSAndroid Build Coastguard Workero LANG-740: Implementation of a Memoizer. Thanks to James Sawle. 236*455610afSAndroid Build Coastguard Workero LANG-1258: Add ArrayUtils#toStringArray method. 237*455610afSAndroid Build Coastguard Worker Thanks to IG, Grzegorz Ro?niecki. 238*455610afSAndroid Build Coastguard Workero LANG-1160: StringUtils#abbreviate should support 'custom ellipses' parameter. 239*455610afSAndroid Build Coastguard Workero LANG-1293: Add StringUtils#isAllEmpty and #isAllBlank methods. 240*455610afSAndroid Build Coastguard Worker Thanks to Pierre Templier, Martin Tarjanyi. 241*455610afSAndroid Build Coastguard Workero LANG-1313: Add ArchUtils - An utility class for the "os.arch" system property. 242*455610afSAndroid Build Coastguard Worker Thanks to Tomschi. 243*455610afSAndroid Build Coastguard Workero LANG-1272: Add shuffle methods to ArrayUtils. 244*455610afSAndroid Build Coastguard Workero LANG-1317: Add MethodUtils#findAnnotation and extend 245*455610afSAndroid Build Coastguard Worker MethodUtils#getMethodsWithAnnotation for non-public, super-class 246*455610afSAndroid Build Coastguard Worker and interface methods. Thanks to Yasser Zamani. 247*455610afSAndroid Build Coastguard Workero LANG-1331: Add ImmutablePair.nullPair(). 248*455610afSAndroid Build Coastguard Workero LANG-1332: Add ImmutableTriple.nullTriple(). 249*455610afSAndroid Build Coastguard Worker 250*455610afSAndroid Build Coastguard WorkerFIXED BUGS 251*455610afSAndroid Build Coastguard Worker========== 252*455610afSAndroid Build Coastguard Worker 253*455610afSAndroid Build Coastguard Workero LANG-1337: Fix test failures in IBM JDK 8 for ToStringBuilderTest. 254*455610afSAndroid Build Coastguard Workero LANG-1319: MultilineRecursiveToStringStyle StackOverflowError when object is 255*455610afSAndroid Build Coastguard Worker an array. 256*455610afSAndroid Build Coastguard Workero LANG-1320: LocaleUtils#toLocale does not support language followed by UN M.49 257*455610afSAndroid Build Coastguard Worker numeric-3 area code followed by variant. 258*455610afSAndroid Build Coastguard Workero LANG-1300: Clarify or improve behavior of int-based indexOf methods in 259*455610afSAndroid Build Coastguard Worker StringUtils. Thanks to Mark Dacek. 260*455610afSAndroid Build Coastguard Workero LANG-1286: RandomStringUtils random method can overflow and return characters 261*455610afSAndroid Build Coastguard Worker outside of specified range. 262*455610afSAndroid Build Coastguard Workero LANG-1292: WordUtils.wrap throws StringIndexOutOfBoundsException. 263*455610afSAndroid Build Coastguard Workero LANG-1287: RandomStringUtils#random can enter infinite loop if end parameter 264*455610afSAndroid Build Coastguard Worker is to small. Thanks to Ivan Morozov. 265*455610afSAndroid Build Coastguard Workero LANG-1285: NullPointerException in FastDateParser$TimeZoneStrategy. 266*455610afSAndroid Build Coastguard Worker Thanks to Francesco Chicchiricc�. 267*455610afSAndroid Build Coastguard Workero LANG-1281: Javadoc of StringUtils.ordinalIndexOf is contradictory. 268*455610afSAndroid Build Coastguard Worker Thanks to Andreas Lundblad. 269*455610afSAndroid Build Coastguard Workero LANG-1188: StringUtils#join(T...): warning: [unchecked] Possible heap 270*455610afSAndroid Build Coastguard Worker pollution from parameterized vararg type T. 271*455610afSAndroid Build Coastguard Workero LANG-1144: Multiple calls of 272*455610afSAndroid Build Coastguard Worker org.apache.commons.lang3.concurrent.LazyInitializer.initialize() 273*455610afSAndroid Build Coastguard Worker are possible. Thanks to Waldemar Maier, Gary Gregory. 274*455610afSAndroid Build Coastguard Workero LANG-1276: StrBuilder#replaceAll ArrayIndexOutOfBoundsException. 275*455610afSAndroid Build Coastguard Worker Thanks to Andy Klimczak. 276*455610afSAndroid Build Coastguard Workero LANG-1278: BooleanUtils javadoc issues. Thanks to Duke Yin. 277*455610afSAndroid Build Coastguard Workero LANG-1070: ArrayUtils#add confusing example in javadoc. 278*455610afSAndroid Build Coastguard Worker Thanks to Paul Pogonyshev. 279*455610afSAndroid Build Coastguard Workero LANG-1271: StringUtils#isAnyEmpty and #isAnyBlank should return false for an 280*455610afSAndroid Build Coastguard Worker empty array. Thanks to Pierre Templier. 281*455610afSAndroid Build Coastguard Workero LANG-1155: Add StringUtils#unwrap. Thanks to Saif Asif, Thiago Andrade. 282*455610afSAndroid Build Coastguard Workero LANG-1311: TypeUtils.toString() doesn't handle primitive and Object arrays 283*455610afSAndroid Build Coastguard Worker correctly. Thanks to Aaron Digulla. 284*455610afSAndroid Build Coastguard Workero LANG-1312: LocaleUtils#toLocale does not support language followed by UN M.49 285*455610afSAndroid Build Coastguard Worker numeric-3 area code. 286*455610afSAndroid Build Coastguard Workero LANG-1265: Build failures when building with Java 9 EA. 287*455610afSAndroid Build Coastguard Workero LANG-1314: javadoc creation broken with Java 8. Thanks to Allon Murienik. 288*455610afSAndroid Build Coastguard Workero LANG-1310: MethodUtils.invokeMethod throws ArrayStoreException if using 289*455610afSAndroid Build Coastguard Worker varargs arguments and smaller types than the method defines. 290*455610afSAndroid Build Coastguard Worker Thanks to Don Jeba. 291*455610afSAndroid Build Coastguard Worker 292*455610afSAndroid Build Coastguard WorkerCHANGES 293*455610afSAndroid Build Coastguard Worker======= 294*455610afSAndroid Build Coastguard Worker 295*455610afSAndroid Build Coastguard Workero LANG-1338: Add Automatic-Module-Name MANIFEST entry for Java 9 296*455610afSAndroid Build Coastguard Worker compatibility. 297*455610afSAndroid Build Coastguard Workero LANG-1334: Deprecate CharEncoding in favour of 298*455610afSAndroid Build Coastguard Worker java.nio.charset.StandardCharsets. 299*455610afSAndroid Build Coastguard Workero LANG-1110: Implement HashSetvBitSetTest using JMH. 300*455610afSAndroid Build Coastguard Worker Thanks to Bruno P. Kinoshita. 301*455610afSAndroid Build Coastguard Workero LANG-1290: Increase test coverage of org.apache.commons.lang3.ArrayUtils. 302*455610afSAndroid Build Coastguard Worker Thanks to Andrii Abramov. 303*455610afSAndroid Build Coastguard Workero LANG-1274: StrSubstitutor should state its thread safety. 304*455610afSAndroid Build Coastguard Workero LANG-1277: StringUtils#getLevenshteinDistance reduce memory consumption. 305*455610afSAndroid Build Coastguard Worker Thanks to yufcuy. 306*455610afSAndroid Build Coastguard Workero LANG-1279: Update Java requirement from Java 6 to 7. 307*455610afSAndroid Build Coastguard Workero LANG-1143: StringUtils should use toXxxxCase(int) rather than 308*455610afSAndroid Build Coastguard Worker toXxxxCase(char). Thanks to sebb. 309*455610afSAndroid Build Coastguard Workero LANG-1297: Add SystemUtils.getHostName() API. 310*455610afSAndroid Build Coastguard Workero LANG-1301: Moving apache-rat-plugin configuration into pluginManagement. 311*455610afSAndroid Build Coastguard Worker Thanks to Karl Heinz Marbaise. 312*455610afSAndroid Build Coastguard Workero LANG-1316: Deprecate classes/methods moved to commons-text. 313*455610afSAndroid Build Coastguard Worker 314*455610afSAndroid Build Coastguard Worker============================================================================= 315*455610afSAndroid Build Coastguard Worker 316*455610afSAndroid Build Coastguard Worker Release Notes for version 3.5 317*455610afSAndroid Build Coastguard Worker 318*455610afSAndroid Build Coastguard Worker 319*455610afSAndroid Build Coastguard WorkerHIGHLIGHTS 320*455610afSAndroid Build Coastguard Worker========== 321*455610afSAndroid Build Coastguard Worker 322*455610afSAndroid Build Coastguard WorkerSome of the highlights in this release include: 323*455610afSAndroid Build Coastguard Worker 324*455610afSAndroid Build Coastguard Workero Added Java 9 detection to org.apache.commons.lang3.SystemUtils. 325*455610afSAndroid Build Coastguard Workero Support for shifting and swapping elements in 326*455610afSAndroid Build Coastguard Worker org.apache.commons.lang3.ArrayUtils. 327*455610afSAndroid Build Coastguard Workero New methods for generating random strings from different character classes 328*455610afSAndroid Build Coastguard Worker including alphabetic, alpha-numeric and ASCII added to 329*455610afSAndroid Build Coastguard Worker org.apache.commons.lang3.RandomStringUtils. 330*455610afSAndroid Build Coastguard Workero Numerous extensions to org.apache.commons.lang3.StringUtils including 331*455610afSAndroid Build Coastguard Worker null safe compare variants, more remove and replace variants, rotation and 332*455610afSAndroid Build Coastguard Worker truncation. 333*455610afSAndroid Build Coastguard Workero Added org.apache.commons.lang3.ThreadUtils - a utility class to work with 334*455610afSAndroid Build Coastguard Worker instances of java.lang.Thread and java.lang.ThreadGroup. 335*455610afSAndroid Build Coastguard Workero Added annotations @EqualsExclude, @HashCodeExclude and @ToStringExclude to 336*455610afSAndroid Build Coastguard Worker mark fields which should be ignored by the reflective builders in the 337*455610afSAndroid Build Coastguard Worker org.apache.commons.lang3.builder package. 338*455610afSAndroid Build Coastguard Workero Support for various modify and retrieve value use cases added to the classes 339*455610afSAndroid Build Coastguard Worker in org.apache.commons.lang3.mutable. 340*455610afSAndroid Build Coastguard Worker 341*455610afSAndroid Build Coastguard WorkerCOMPATIBILITY 342*455610afSAndroid Build Coastguard Worker============= 343*455610afSAndroid Build Coastguard Worker 344*455610afSAndroid Build Coastguard WorkerApache Commons Lang 3.5 is binary compatible with the 3.4 release. Users 345*455610afSAndroid Build Coastguard Workershould not experience any problems when upgrading from 3.4 to 3.5. 346*455610afSAndroid Build Coastguard Worker 347*455610afSAndroid Build Coastguard WorkerThere has been an addition to the org.apache.commons.lang3.time.DatePrinter 348*455610afSAndroid Build Coastguard Workerinterface: 349*455610afSAndroid Build Coastguard Worker 350*455610afSAndroid Build Coastguard Workero Added method 'public boolean parse(java.lang.String, java.text.ParsePosition, 351*455610afSAndroid Build Coastguard Worker java.util.Calendar)' 352*455610afSAndroid Build Coastguard Workero Added method 'public java.lang.Appendable format(long, java.lang.Appendable)' 353*455610afSAndroid Build Coastguard Workero Added method 'public java.lang.Appendable format(java.util.Date, 354*455610afSAndroid Build Coastguard Worker java.lang.Appendable)' 355*455610afSAndroid Build Coastguard Workero Added method 'public java.lang.Appendable format(java.util.Calendar, 356*455610afSAndroid Build Coastguard Worker java.lang.Appendable)' 357*455610afSAndroid Build Coastguard Worker 358*455610afSAndroid Build Coastguard WorkerFor this reason 3.5 is not strictly source compatible to 3.4. Since the 359*455610afSAndroid Build Coastguard WorkerDatePrinter interface is not meant to be implemented by clients, this 360*455610afSAndroid Build Coastguard Workerchange it not considered to cause any problems. 361*455610afSAndroid Build Coastguard Worker 362*455610afSAndroid Build Coastguard WorkerJAVA 9 SUPPORT 363*455610afSAndroid Build Coastguard Worker============== 364*455610afSAndroid Build Coastguard Worker 365*455610afSAndroid Build Coastguard WorkerJava 9 introduces a new version-string scheme. Details of this new scheme are 366*455610afSAndroid Build Coastguard Workerdocumented in JEP-223 (https://openjdk.org/jeps/223). In order to support 367*455610afSAndroid Build Coastguard WorkerJEP-223 two classes had to be changed: 368*455610afSAndroid Build Coastguard Worker 369*455610afSAndroid Build Coastguard Workero org.apache.commons.lang3.JavaVersion 370*455610afSAndroid Build Coastguard Worker deprecated enum constant JAVA_1_9 371*455610afSAndroid Build Coastguard Worker introduced enum constant JAVA_9 372*455610afSAndroid Build Coastguard Worker 373*455610afSAndroid Build Coastguard Workero org.apache.commons.lang3.SystemUtils 374*455610afSAndroid Build Coastguard Worker deprecated constant IS_JAVA_1_9 375*455610afSAndroid Build Coastguard Worker introduced constant IS_JAVA_9 376*455610afSAndroid Build Coastguard Worker 377*455610afSAndroid Build Coastguard WorkerFor more information see LANG-1197 378*455610afSAndroid Build Coastguard Worker(https://issues.apache.org/jira/browse/LANG-1197). All other APIs are expected 379*455610afSAndroid Build Coastguard Workerto work with Java 9. 380*455610afSAndroid Build Coastguard Worker 381*455610afSAndroid Build Coastguard WorkerBUILDING ON JAVA 9 382*455610afSAndroid Build Coastguard Worker================== 383*455610afSAndroid Build Coastguard Worker 384*455610afSAndroid Build Coastguard WorkerJava 8 introduced the Unicode Consortium's Common Locale Data Repository as 385*455610afSAndroid Build Coastguard Workeralternative source for locale data. Java 9 will use the CLDR provider as 386*455610afSAndroid Build Coastguard Workerdefault provider for locale data (see https://openjdk.org/jeps/252). This 387*455610afSAndroid Build Coastguard Workercauses an number of locale-sensitive test in Commons Lang to fail. In order 388*455610afSAndroid Build Coastguard Workerto build Commons Lang 3.5 on Java 9, the locale provider has to be set to 389*455610afSAndroid Build Coastguard Worker'JRE': 390*455610afSAndroid Build Coastguard Worker 391*455610afSAndroid Build Coastguard Worker mvn -Djava.locale.providers=JRE clean install 392*455610afSAndroid Build Coastguard Worker 393*455610afSAndroid Build Coastguard WorkerWe are currently investigating ways to support building on Java 9 without 394*455610afSAndroid Build Coastguard Workerfurther configuration. For more information see: 395*455610afSAndroid Build Coastguard Workerhttps://issues.apache.org/jira/browse/LANG-1265 396*455610afSAndroid Build Coastguard Worker 397*455610afSAndroid Build Coastguard Worker 398*455610afSAndroid Build Coastguard WorkerNEW FEATURES 399*455610afSAndroid Build Coastguard Worker============== 400*455610afSAndroid Build Coastguard Worker 401*455610afSAndroid Build Coastguard Workero LANG-1275: Added a tryAcquire() method to TimedSemaphore. 402*455610afSAndroid Build Coastguard Workero LANG-1255: Add DateUtils.toCalendar(Date, TimeZone). Thanks to Kaiyuan Wang. 403*455610afSAndroid Build Coastguard Workero LANG-1023: Add WordUtils.wrap overload with customizable breakable character. 404*455610afSAndroid Build Coastguard Worker Thanks to Marko Bekhta. 405*455610afSAndroid Build Coastguard Workero LANG-787: Add method removeIgnoreCase(String, String) to StringUtils. Thanks 406*455610afSAndroid Build Coastguard Worker to Gokul Nanthakumar C. 407*455610afSAndroid Build Coastguard Workero LANG-1224: Extend RandomStringUtils with methods that generate strings 408*455610afSAndroid Build Coastguard Worker between a min and max length. Thanks to Caleb Cushing. 409*455610afSAndroid Build Coastguard Workero LANG-1257: Add APIs StringUtils.wrapIfMissing(String, char|String). Thanks to 410*455610afSAndroid Build Coastguard Worker Gary Gregory. 411*455610afSAndroid Build Coastguard Workero LANG-1253: Add RandomUtils#nextBoolean() method. Thanks to adilek. 412*455610afSAndroid Build Coastguard Workero LANG-1085: Add a circuit breaker implementation. Thanks to Oliver Heger and 413*455610afSAndroid Build Coastguard Worker Bruno P. Kinoshita. 414*455610afSAndroid Build Coastguard Workero LANG-1013: Add StringUtils.truncate(). Thanks to Thiago Andrade. 415*455610afSAndroid Build Coastguard Workero LANG-1195: Enhance MethodUtils to allow invocation of private methods. Thanks 416*455610afSAndroid Build Coastguard Worker to Derek C. Ashmore. 417*455610afSAndroid Build Coastguard Workero LANG-1189: Add getAndIncrement/getAndDecrement/getAndAdd/incrementAndGet/ 418*455610afSAndroid Build Coastguard Worker decrementAndGet/addAndGet in Mutable* classes. Thanks to 419*455610afSAndroid Build Coastguard Worker Haiyang Li and Matthew Bartenschlag. 420*455610afSAndroid Build Coastguard Workero LANG-1225: Add RandomStringUtils#randomGraph and #randomPrint which match 421*455610afSAndroid Build Coastguard Worker corresponding regular expression class. Thanks to Caleb Cushing. 422*455610afSAndroid Build Coastguard Workero LANG-1223: Add StopWatch#getTime(TimeUnit). Thanks to Nick Manley. 423*455610afSAndroid Build Coastguard Workero LANG-781: Add methods to ObjectUtils class to check for null elements in the 424*455610afSAndroid Build Coastguard Worker array. Thanks to Krzysztof Wolny. 425*455610afSAndroid Build Coastguard Workero LANG-1228: Prefer Throwable.getCause() in ExceptionUtils.getCause(). 426*455610afSAndroid Build Coastguard Worker Thanks to Brad Hess. 427*455610afSAndroid Build Coastguard Workero LANG-1233: DiffBuilder add method to allow appending from a DiffResult. 428*455610afSAndroid Build Coastguard Worker Thanks to Nick Manley. 429*455610afSAndroid Build Coastguard Workero LANG-1168: Add SystemUtils.IS_OS_WINDOWS_10 property. 430*455610afSAndroid Build Coastguard Worker Thanks to Pascal Schumacher. 431*455610afSAndroid Build Coastguard Workero LANG-1115: Add support for varargs in ConstructorUtils, MemberUtils, and 432*455610afSAndroid Build Coastguard Worker MethodUtils. Thanks to Jim Lloyd and Joe Ferner. 433*455610afSAndroid Build Coastguard Workero LANG-1134: Add methods to check numbers against NaN and infinite to 434*455610afSAndroid Build Coastguard Worker Validate. Thanks to Alan Smithee. 435*455610afSAndroid Build Coastguard Workero LANG-1220: Add tests for missed branches in DateUtils. 436*455610afSAndroid Build Coastguard Worker Thanks to Casey Scarborough. 437*455610afSAndroid Build Coastguard Workero LANG-1146: z/OS identification in SystemUtils. 438*455610afSAndroid Build Coastguard Worker Thanks to Gabor Liptak. 439*455610afSAndroid Build Coastguard Workero LANG-1192: FastDateFormat support of the week-year component (uppercase 'Y'). 440*455610afSAndroid Build Coastguard Worker Thanks to Dominik Stadler. 441*455610afSAndroid Build Coastguard Workero LANG-1169: Add StringUtils methods to compare a string to multiple strings. 442*455610afSAndroid Build Coastguard Worker Thanks to Rafal Glowinski, Robert Parr and Arman Sharif. 443*455610afSAndroid Build Coastguard Workero LANG-1185: Add remove by regular expression methods in StringUtils. 444*455610afSAndroid Build Coastguard Workero LANG-1139: Add replace by regular expression methods in StringUtils. 445*455610afSAndroid Build Coastguard Workero LANG-1171: Add compare methods in StringUtils. 446*455610afSAndroid Build Coastguard Workero LANG-1174: Add sugar to RandomUtils. Thanks to Punkratz312. 447*455610afSAndroid Build Coastguard Workero LANG-1154: FastDateFormat APIs that use a StringBuilder. Thanks to 448*455610afSAndroid Build Coastguard Worker Gary Gregory. 449*455610afSAndroid Build Coastguard Workero LANG-1149: Ability to throw checked exceptions without declaring them. Thanks 450*455610afSAndroid Build Coastguard Worker to Gregory Zak. 451*455610afSAndroid Build Coastguard Workero LANG-1153: Implement ParsePosition api for FastDateParser. 452*455610afSAndroid Build Coastguard Workero LANG-1137: Add check for duplicate event listener in EventListenerSupport. 453*455610afSAndroid Build Coastguard Worker Thanks to Matthew Aguirre. 454*455610afSAndroid Build Coastguard Workero LANG-1135: Add method containsAllWords to WordUtils. Thanks to 455*455610afSAndroid Build Coastguard Worker Eduardo Martins. 456*455610afSAndroid Build Coastguard Workero LANG-1132: ReflectionToStringBuilder doesn't throw IllegalArgumentException 457*455610afSAndroid Build Coastguard Worker when the constructor's object param is null. Thanks to Jack Tan. 458*455610afSAndroid Build Coastguard Workero LANG-701: StringUtils join with var args. Thanks to James Sawle. 459*455610afSAndroid Build Coastguard Workero LANG-1105: Add ThreadUtils - A utility class which provides helper methods 460*455610afSAndroid Build Coastguard Worker related to java.lang.Thread Issue: LANG-1105. Thanks to 461*455610afSAndroid Build Coastguard Worker Hendrik Saly. 462*455610afSAndroid Build Coastguard Workero LANG-1031: Add annotations to exclude fields from ReflectionEqualsBuilder, 463*455610afSAndroid Build Coastguard Worker ReflectionToStringBuilder and ReflectionHashCodeBuilder. Thanks 464*455610afSAndroid Build Coastguard Worker to Felipe Adorno. 465*455610afSAndroid Build Coastguard Workero LANG-1127: Use JUnit rules to set and reset the default Locale and TimeZone. 466*455610afSAndroid Build Coastguard Workero LANG-1119: Add rotate(string, int) method to StringUtils. Thanks to 467*455610afSAndroid Build Coastguard Worker Loic Guibert. 468*455610afSAndroid Build Coastguard Workero LANG-1099: Add swap and shift operations for arrays to ArrayUtils. Thanks to 469*455610afSAndroid Build Coastguard Worker Adrian Ber. 470*455610afSAndroid Build Coastguard Workero LANG-1050: Change nullToEmpty methods to generics. Thanks to James Sawle. 471*455610afSAndroid Build Coastguard Workero LANG-1074: Add a method to ArrayUtils for removing all occurrences of a given 472*455610afSAndroid Build Coastguard Worker element Issue: LANG-1074. Thanks to Haiyang Li. 473*455610afSAndroid Build Coastguard Worker 474*455610afSAndroid Build Coastguard WorkerFIXED BUGS 475*455610afSAndroid Build Coastguard Worker============ 476*455610afSAndroid Build Coastguard Worker 477*455610afSAndroid Build Coastguard Workero LANG-1261: ArrayUtils.contains returns false for instances of subtypes. 478*455610afSAndroid Build Coastguard Workero LANG-1252: Rename NumberUtils.isNumber, isCreatable to better reflect 479*455610afSAndroid Build Coastguard Worker createNumber. Also, accommodated for "+" symbol as prefix in 480*455610afSAndroid Build Coastguard Worker isCreatable and isNumber. Thanks to Rob Tompkins. 481*455610afSAndroid Build Coastguard Workero LANG-1230: Remove unnecessary synchronization from registry lookup in 482*455610afSAndroid Build Coastguard Worker EqualsBuilder and HashCodeBuilder. Thanks to Philippe Marschall. 483*455610afSAndroid Build Coastguard Workero LANG-1214: Handle "void" in ClassUtils.getClass(). Thanks to Henry Tung. 484*455610afSAndroid Build Coastguard Workero LANG-1250: SerializationUtils#deserialize has unnecessary code and a comment 485*455610afSAndroid Build Coastguard Worker for that. Thanks to Glease Wang. 486*455610afSAndroid Build Coastguard Workero LANG-1190: TypeUtils.isAssignable throws NullPointerException when fromType 487*455610afSAndroid Build Coastguard Worker has type variables and toType generic superclass specifies type 488*455610afSAndroid Build Coastguard Worker variable. Thanks to Pascal Schumacher. 489*455610afSAndroid Build Coastguard Workero LANG-1226: StringUtils#normalizeSpace does not trim the string anymore. 490*455610afSAndroid Build Coastguard Worker Thanks to Pascal Schumacher. 491*455610afSAndroid Build Coastguard Workero LANG-1251: SerializationUtils.ClassLoaderAwareObjectInputStream should use 492*455610afSAndroid Build Coastguard Worker static initializer to initialize primitiveTypes map. Thanks to 493*455610afSAndroid Build Coastguard Worker Takuya Ueshin. 494*455610afSAndroid Build Coastguard Workero LANG-1248: FastDatePrinter Memory allocation regression. Thanks to 495*455610afSAndroid Build Coastguard Worker Benoit Wiart. 496*455610afSAndroid Build Coastguard Workero LANG-1018: Fix precision loss on NumberUtils.createNumber(String). Thanks to 497*455610afSAndroid Build Coastguard Worker Nick Manley. 498*455610afSAndroid Build Coastguard Workero LANG-1199: Fix implementation of StringUtils.getJaroWinklerDistance(). Thanks 499*455610afSAndroid Build Coastguard Worker to M. Steiger. 500*455610afSAndroid Build Coastguard Workero LANG-1244: Fix dead links in StringUtils.getLevenshteinDistance() javadoc. 501*455610afSAndroid Build Coastguard Worker Thanks to jjbankert. 502*455610afSAndroid Build Coastguard Workero LANG-1242: "\u2284":"?" mapping missing from 503*455610afSAndroid Build Coastguard Worker EntityArrays#HTML40_EXTENDED_ESCAPE. Thanks to Neal Stewart. 504*455610afSAndroid Build Coastguard Workero LANG-901: StringUtils#startsWithAny/endsWithAny is case sensitive - 505*455610afSAndroid Build Coastguard Worker documented as case insensitive. Thanks to Matthew Bartenschlag. 506*455610afSAndroid Build Coastguard Workero LANG-1232: DiffBuilder: Add null check on fieldName when appending Object or 507*455610afSAndroid Build Coastguard Worker Object[]. Thanks to Nick Manley. 508*455610afSAndroid Build Coastguard Workero LANG-1178: ArrayUtils.removeAll(Object array, int... indices) should do the 509*455610afSAndroid Build Coastguard Worker clone, not its callers. Thanks to Henri Yandell. 510*455610afSAndroid Build Coastguard Workero LANG-1120: StringUtils.stripAccents should remove accents from "?" and "?". 511*455610afSAndroid Build Coastguard Worker Thanks to kaching88. 512*455610afSAndroid Build Coastguard Workero LANG-1205: NumberUtils.createNumber() behaves inconsistently with 513*455610afSAndroid Build Coastguard Worker NumberUtils.isNumber(). Thanks to pbrose. 514*455610afSAndroid Build Coastguard Workero LANG-1222: Fix for incorrect comment on StringUtils.containsIgnoreCase 515*455610afSAndroid Build Coastguard Worker method. Thanks to Adam J. 516*455610afSAndroid Build Coastguard Workero LANG-1221: Fix typo on appendIfMissing javadoc. Thanks to Pierre Templier. 517*455610afSAndroid Build Coastguard Workero LANG-1202: parseDateStrictly doesn't pass specified locale. Thanks to 518*455610afSAndroid Build Coastguard Worker Markus Jelsma. 519*455610afSAndroid Build Coastguard Workero LANG-1219: FastDateFormat doesn't respect summer daylight in some localized 520*455610afSAndroid Build Coastguard Worker strings. Thanks to Jarek. 521*455610afSAndroid Build Coastguard Workero LANG-1175: Remove Ant-based build. 522*455610afSAndroid Build Coastguard Workero LANG-1194: Limit max heap memory for consistent Travis CI build. 523*455610afSAndroid Build Coastguard Workero LANG-1186: Fix NullPointerException in FastDateParser$TimeZoneStrategy. 524*455610afSAndroid Build Coastguard Worker Thanks to NickManley. 525*455610afSAndroid Build Coastguard Workero LANG-1193: ordinalIndexOf("abc", "ab", 1) gives incorrect answer of -1 526*455610afSAndroid Build Coastguard Worker (correct answer should be 0); revert fix for LANG-1077. Thanks to 527*455610afSAndroid Build Coastguard Worker Qin Li. 528*455610afSAndroid Build Coastguard Workero LANG-1002: Several predefined ISO FastDateFormats in DateFormatUtils are 529*455610afSAndroid Build Coastguard Worker incorrect. Thanks to Michael Osipov. 530*455610afSAndroid Build Coastguard Workero LANG-1152: StringIndexOutOfBoundsException or field over-write for large year 531*455610afSAndroid Build Coastguard Worker fields in FastDateParser. Thanks to Pas Filip. 532*455610afSAndroid Build Coastguard Workero LANG-1141: StrLookup.systemPropertiesLookup() no longer reacts on changes on 533*455610afSAndroid Build Coastguard Worker system properties. 534*455610afSAndroid Build Coastguard Workero LANG-1147: EnumUtils *BitVector issue with more than 32 values Enum. Thanks 535*455610afSAndroid Build Coastguard Worker to Loic Guibert. 536*455610afSAndroid Build Coastguard Workero LANG-1059: Capitalize javadoc is incorrect. Thanks to Colin Casey. 537*455610afSAndroid Build Coastguard Workero LANG-1122: Inconsistent behavior of swap for malformed inputs. Thanks to 538*455610afSAndroid Build Coastguard Worker Adrian Ber. 539*455610afSAndroid Build Coastguard Workero LANG-1130: Fix critical issues reported by SonarQube. 540*455610afSAndroid Build Coastguard Workero LANG-1131: StrBuilder.equals(StrBuilder) doesn't check for null inputs. 541*455610afSAndroid Build Coastguard Workero LANG-1128: JsonToStringStyle doesn't handle chars and objects correctly. 542*455610afSAndroid Build Coastguard Worker Thanks to Jack Tan. 543*455610afSAndroid Build Coastguard Workero LANG-1126: DateFormatUtilsTest.testSMTP depends on the default Locale. 544*455610afSAndroid Build Coastguard Workero LANG-1123: Unit test FastDatePrinterTimeZonesTest needs a timezone set. 545*455610afSAndroid Build Coastguard Worker Thanks to Christian P. Momon. 546*455610afSAndroid Build Coastguard Workero LANG-916: DateFormatUtils.format does not correctly change Calendar 547*455610afSAndroid Build Coastguard Worker TimeZone in certain situations. Thanks to Christian P. Momon. 548*455610afSAndroid Build Coastguard Workero LANG-1116: DateUtilsTest.testLang530 fails for some timezones. Thanks to 549*455610afSAndroid Build Coastguard Worker Aaron Sheldon. 550*455610afSAndroid Build Coastguard Workero LANG-1114: TypeUtils.ParameterizedType#equals doesn't work with wildcard 551*455610afSAndroid Build Coastguard Worker types. Thanks to Andy Coates. 552*455610afSAndroid Build Coastguard Workero LANG-1118: StringUtils.repeat('z', -1) throws NegativeArraySizeException. 553*455610afSAndroid Build Coastguard Worker Thanks to Loic Guibert. 554*455610afSAndroid Build Coastguard Workero LANG-1111: Fix FindBugs warnings in DurationFormatUtils. 555*455610afSAndroid Build Coastguard Workero LANG-1162: StringUtils#equals fails with Index OOBE on non-Strings with 556*455610afSAndroid Build Coastguard Worker identical leading prefix.. 557*455610afSAndroid Build Coastguard Workero LANG-1163: There are no tests for CharSequenceUtils.regionMatches. 558*455610afSAndroid Build Coastguard Workero LANG-1200: Fix Javadoc of StringUtils.ordinalIndexOf. Thanks to BarkZhang. 559*455610afSAndroid Build Coastguard Workero LANG-1191: Incorrect Javadoc 560*455610afSAndroid Build Coastguard Worker StringUtils.containsAny(CharSequence, CharSequence...). Thanks to 561*455610afSAndroid Build Coastguard Worker qed, Brent Worden and Gary Gregory. 562*455610afSAndroid Build Coastguard Worker 563*455610afSAndroid Build Coastguard WorkerCHANGES 564*455610afSAndroid Build Coastguard Worker========= 565*455610afSAndroid Build Coastguard Workero LANG-1197: Prepare Java 9 detection. 566*455610afSAndroid Build Coastguard Workero LANG-1262: CompareToBuilder.append(Object, Object, Comparator) method is too 567*455610afSAndroid Build Coastguard Worker big to be inlined. Thanks to Ruslan Cheremin. 568*455610afSAndroid Build Coastguard Workero LANG-1259: Javadoc for ArrayUtils.isNotEmpty() is slightly misleading. Thanks 569*455610afSAndroid Build Coastguard Worker to Dominik Stadler. 570*455610afSAndroid Build Coastguard Workero LANG-1247: FastDatePrinter generates extra Date objects. Thanks to 571*455610afSAndroid Build Coastguard Worker Benoit Wiart. 572*455610afSAndroid Build Coastguard Workero LANG-1229: HashCodeBuilder.append(Object,Object) is too big to be inlined, 573*455610afSAndroid Build Coastguard Worker which prevents whole builder to be scalarized. Thanks to 574*455610afSAndroid Build Coastguard Worker Ruslan Cheremin. 575*455610afSAndroid Build Coastguard Workero LANG-1243: Simplify ArrayUtils removeElements by using new decrementAndGet() 576*455610afSAndroid Build Coastguard Worker method. 577*455610afSAndroid Build Coastguard Workero LANG-1240: Optimize BitField constructor implementation. Thanks to zhanhb. 578*455610afSAndroid Build Coastguard Workero LANG-1206: Improve CharSetUtils.squeeze() performance. Thanks to 579*455610afSAndroid Build Coastguard Worker Mohammed Alfallaj. 580*455610afSAndroid Build Coastguard Workero LANG-1176: Improve ArrayUtils removeElements time complexity to O(n). Thanks 581*455610afSAndroid Build Coastguard Worker to Jeffery Yuan. 582*455610afSAndroid Build Coastguard Workero LANG-1234: getLevenshteinDistance with a threshold: optimize implementation 583*455610afSAndroid Build Coastguard Worker if the strings lengths differ more than the threshold. Thanks to 584*455610afSAndroid Build Coastguard Worker Jonatan J�nsson. 585*455610afSAndroid Build Coastguard Workero LANG-1151: Performance improvements for NumberUtils.isParsable. Thanks to 586*455610afSAndroid Build Coastguard Worker Juan Pablo Santos Rodr�guez. 587*455610afSAndroid Build Coastguard Workero LANG-1218: EqualsBuilder.append(Object,Object) is too big to be inlined, 588*455610afSAndroid Build Coastguard Worker which prevents whole builder to be scalarized. Thanks to 589*455610afSAndroid Build Coastguard Worker Ruslan Cheremin. 590*455610afSAndroid Build Coastguard Workero LANG-1210: StringUtils#startsWithAny has error in Javadoc. Thanks to 591*455610afSAndroid Build Coastguard Worker Matthias Niehoff. 592*455610afSAndroid Build Coastguard Workero LANG-1208: StrSubstitutor can preserve escapes. Thanks to Samuel Karp. 593*455610afSAndroid Build Coastguard Workero LANG-1182: Clarify Javadoc of StringUtils.containsAny(). Thanks to 594*455610afSAndroid Build Coastguard Worker Larry West and Pascal Schumacher. 595*455610afSAndroid Build Coastguard Workero LANG-1183: Making replacePattern/removePattern methods null safe in 596*455610afSAndroid Build Coastguard Worker StringUtils. 597*455610afSAndroid Build Coastguard Workero LANG-1057: Replace StringBuilder with String concatenation for better 598*455610afSAndroid Build Coastguard Worker optimization. Thanks to Ot�vio Santana. 599*455610afSAndroid Build Coastguard Workero LANG-1075: Deprecate SystemUtils.FILE_SEPARATOR and 600*455610afSAndroid Build Coastguard Worker SystemUtils.PATH_SEPARATOR. 601*455610afSAndroid Build Coastguard Workero LANG-979: TypeUtils.parameterizeWithOwner - wrong format descriptor for 602*455610afSAndroid Build Coastguard Worker "invalid number of type parameters". Thanks to Bruno P. Kinoshita. 603*455610afSAndroid Build Coastguard Workero LANG-1112: MultilineRecursiveToStringStyle largely unusable due to being 604*455610afSAndroid Build Coastguard Worker package-private. 605*455610afSAndroid Build Coastguard Workero LANG-1058: StringUtils.uncapitalize performance improvement. Thanks to 606*455610afSAndroid Build Coastguard Worker Leo Wang. 607*455610afSAndroid Build Coastguard Workero LANG-1069: CharSet.getInstance documentation does not clearly explain how 608*455610afSAndroid Build Coastguard Worker to include negation character in set. Thanks to Arno Noordover. 609*455610afSAndroid Build Coastguard Workero LANG-1107: Fix parsing edge cases in FastDateParser. 610*455610afSAndroid Build Coastguard Workero LANG-1273: Added new property IS_OS_MAC_OSX_EL_CAPITAN in SystemUtils. Thanks 611*455610afSAndroid Build Coastguard Worker to Jake Wang. 612*455610afSAndroid Build Coastguard Worker 613*455610afSAndroid Build Coastguard Worker============================================================================= 614*455610afSAndroid Build Coastguard Worker 615*455610afSAndroid Build Coastguard Worker Release Notes for version 3.4 616*455610afSAndroid Build Coastguard Worker 617*455610afSAndroid Build Coastguard Worker 618*455610afSAndroid Build Coastguard WorkerCOMPATIBILITY 619*455610afSAndroid Build Coastguard Worker============= 620*455610afSAndroid Build Coastguard Worker 621*455610afSAndroid Build Coastguard WorkerCommons Lang 3.4 is fully binary compatible to the last release and can 622*455610afSAndroid Build Coastguard Workertherefore be used as a drop in replacement for 3.3.2. Note that the value of 623*455610afSAndroid Build Coastguard Workerorg.apache.commons.lang3.time.DurationFormatUtils.ISO_EXTENDED_FORMAT_PATTERN 624*455610afSAndroid Build Coastguard Workerhas changed, which may affect clients using the constant. Furthermore the 625*455610afSAndroid Build Coastguard Workerconstant is used internally in 626*455610afSAndroid Build Coastguard Workero DurationFormatUtils.formatDurationISO(long) 627*455610afSAndroid Build Coastguard Workero DurationFormatUtils.formatPeriodISO(long, long) 628*455610afSAndroid Build Coastguard Worker 629*455610afSAndroid Build Coastguard WorkerFor more information see https://issues.apache.org/jira/browse/LANG-1000. 630*455610afSAndroid Build Coastguard Worker 631*455610afSAndroid Build Coastguard WorkerNEW FEATURES 632*455610afSAndroid Build Coastguard Worker============== 633*455610afSAndroid Build Coastguard Worker 634*455610afSAndroid Build Coastguard Workero LANG-821: Support OS X versions in SystemUtils. Thanks to Timo Kockert. 635*455610afSAndroid Build Coastguard Workero LANG-1103: Add SystemUtils.IS_JAVA_1_9 636*455610afSAndroid Build Coastguard Workero LANG-1093: Add ClassUtils.getAbbreviatedName(). Thanks to Fabian Lange. 637*455610afSAndroid Build Coastguard Workero LANG-1082: Add option to disable the "objectsTriviallyEqual" test in 638*455610afSAndroid Build Coastguard Worker DiffBuilder. Thanks to Jonathan Baker. 639*455610afSAndroid Build Coastguard Workero LANG-1015: Add JsonToStringStyle implementation to ToStringStyle. Thanks to 640*455610afSAndroid Build Coastguard Worker Thiago Andrade. 641*455610afSAndroid Build Coastguard Workero LANG-1080: Add NoClassNameToStringStyle implementation of ToStringStyle. 642*455610afSAndroid Build Coastguard Worker Thanks to Innokenty Shuvalov. 643*455610afSAndroid Build Coastguard Workero LANG-883: Add StringUtils.containsAny(CharSequence, CharSequence...) method. 644*455610afSAndroid Build Coastguard Worker Thanks to Daniel Stewart. 645*455610afSAndroid Build Coastguard Workero LANG-1052: Multiline recursive to string style. Thanks to Jan Mat�rne. 646*455610afSAndroid Build Coastguard Workero LANG-536: Add isSorted() to ArrayUtils. Thanks to James Sawle. 647*455610afSAndroid Build Coastguard Workero LANG-1033: Add StringUtils.countMatches(CharSequence, char) 648*455610afSAndroid Build Coastguard Workero LANG-1021: Provide methods to retrieve all fields/methods annotated with a 649*455610afSAndroid Build Coastguard Worker specific type. Thanks to Alexander M�ller. 650*455610afSAndroid Build Coastguard Workero LANG-1016: NumberUtils#isParsable method(s). Thanks to 651*455610afSAndroid Build Coastguard Worker Juan Pablo Santos Rodr�guez. 652*455610afSAndroid Build Coastguard Workero LANG-999: Add fuzzy String matching logic to StringUtils. Thanks to 653*455610afSAndroid Build Coastguard Worker Ben Ripkens. 654*455610afSAndroid Build Coastguard Workero LANG-994: Add zero copy read method to StrBuilder. Thanks to 655*455610afSAndroid Build Coastguard Worker Mikhail Mazursky. 656*455610afSAndroid Build Coastguard Workero LANG-993: Add zero copy write method to StrBuilder. Thanks to 657*455610afSAndroid Build Coastguard Worker Mikhail Mazursky. 658*455610afSAndroid Build Coastguard Workero LANG-1044: Add method MethodUtils.invokeExactMethod(Object, String) 659*455610afSAndroid Build Coastguard Workero LANG-1045: Add method MethodUtils.invokeMethod(Object, String) 660*455610afSAndroid Build Coastguard Worker 661*455610afSAndroid Build Coastguard WorkerFIXED BUGS 662*455610afSAndroid Build Coastguard Worker============ 663*455610afSAndroid Build Coastguard Worker 664*455610afSAndroid Build Coastguard Workero LANG-794: SystemUtils.IS_OS_WINDOWS_2008, VISTA are incorrect. Thanks to 665*455610afSAndroid Build Coastguard Worker Timo Kockert. 666*455610afSAndroid Build Coastguard Workero LANG-1104: Parse test fails for TimeZone America/Sao_Paulo 667*455610afSAndroid Build Coastguard Workero LANG-948: Exception while using ExtendedMessageFormat and escaping braces. 668*455610afSAndroid Build Coastguard Worker Thanks to Andrey Khobnya. 669*455610afSAndroid Build Coastguard Workero LANG-1092: Wrong formatting of time zones with daylight saving time in 670*455610afSAndroid Build Coastguard Worker FastDatePrinter 671*455610afSAndroid Build Coastguard Workero LANG-1090: FastDateParser does not set error indication in ParsePosition 672*455610afSAndroid Build Coastguard Workero LANG-1089: FastDateParser does not handle excess hours as per 673*455610afSAndroid Build Coastguard Worker SimpleDateFormat 674*455610afSAndroid Build Coastguard Workero LANG-1061: FastDateParser error - timezones not handled correctly. Thanks to 675*455610afSAndroid Build Coastguard Worker dmeneses. 676*455610afSAndroid Build Coastguard Workero LANG-1087: NumberUtils#createNumber() returns positive BigDecimal when 677*455610afSAndroid Build Coastguard Worker negative Float is expected. Thanks to Renat Zhilkibaev. 678*455610afSAndroid Build Coastguard Workero LANG-1081: DiffBuilder.append(String, Object left, Object right) does not do 679*455610afSAndroid Build Coastguard Worker a left.equals(right) check. Thanks to Jonathan Baker. 680*455610afSAndroid Build Coastguard Workero LANG-1055: StrSubstitutor.replaceSystemProperties does not work consistently. 681*455610afSAndroid Build Coastguard Worker Thanks to Jonathan Baker. 682*455610afSAndroid Build Coastguard Workero LANG-1083: Add (T) casts to get unit tests to pass in old JDK. Thanks to 683*455610afSAndroid Build Coastguard Worker Jonathan Baker. 684*455610afSAndroid Build Coastguard Workero LANG-1073: Read wrong component type of array in add in ArrayUtils. 685*455610afSAndroid Build Coastguard Worker Thanks to haiyang li. 686*455610afSAndroid Build Coastguard Workero LANG-1077: StringUtils.ordinalIndexOf("aaaaaa", "aa", 2) != 3 in StringUtils. 687*455610afSAndroid Build Coastguard Worker Thanks to haiyang li. 688*455610afSAndroid Build Coastguard Workero LANG-1072: Duplicated "0x" check in createBigInteger in NumberUtils. Thanks 689*455610afSAndroid Build Coastguard Worker to haiyang li. 690*455610afSAndroid Build Coastguard Workero LANG-1064: StringUtils.abbreviate description doesn't agree with the 691*455610afSAndroid Build Coastguard Worker examples. Thanks to B.J. Herbison. 692*455610afSAndroid Build Coastguard Workero LANG-1041: Fix MethodUtilsTest so it does not depend on JDK method ordering. 693*455610afSAndroid Build Coastguard Worker Thanks to Alexandre Bartel. 694*455610afSAndroid Build Coastguard Workero LANG-1000: ParseException when trying to parse UTC dates with Z as zone 695*455610afSAndroid Build Coastguard Worker designator using DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT 696*455610afSAndroid Build Coastguard Workero LANG-1035: Javadoc for EqualsBuilder.reflectionEquals() is unclear 697*455610afSAndroid Build Coastguard Workero LANG-1001: ISO 8601 misspelled throughout the Javadocs. Thanks to 698*455610afSAndroid Build Coastguard Worker Michael Osipov. 699*455610afSAndroid Build Coastguard Workero LANG-1088: FastDateParser should be case insensitive 700*455610afSAndroid Build Coastguard Workero LANG-995: Fix bug with stripping spaces on last line in WordUtils.wrap(). 701*455610afSAndroid Build Coastguard Worker Thanks to Andrey Khobnya. 702*455610afSAndroid Build Coastguard Worker 703*455610afSAndroid Build Coastguard WorkerCHANGES 704*455610afSAndroid Build Coastguard Worker========= 705*455610afSAndroid Build Coastguard Worker 706*455610afSAndroid Build Coastguard Workero LANG-1102: Make logic for comparing OS versions in SystemUtils smarter 707*455610afSAndroid Build Coastguard Workero LANG-1091: Shutdown thread pools in test cases. Thanks to Fabian Lange. 708*455610afSAndroid Build Coastguard Workero LANG-1101: FastDateParser and FastDatePrinter support 'X' format 709*455610afSAndroid Build Coastguard Workero LANG-1100: Avoid memory allocation when using date formatting to StringBuffer. 710*455610afSAndroid Build Coastguard Worker Thanks to mbracher. 711*455610afSAndroid Build Coastguard Workero LANG-935: Possible performance improvement on string escape functions. 712*455610afSAndroid Build Coastguard Worker Thanks to Fabian Lange, Thomas Neidhart. 713*455610afSAndroid Build Coastguard Workero LANG-1098: Avoid String allocation in StrBuilder.append(CharSequence). Thanks 714*455610afSAndroid Build Coastguard Worker to Mikhail Mazurskiy, Fabian Lange. 715*455610afSAndroid Build Coastguard Workero LANG-1098: Update maven-checkstyle-plugin to 2.14. Thanks to Micha? Kordas. 716*455610afSAndroid Build Coastguard Workero LANG-1097: Update org.easymock:easymock to 3.3.1. Thanks to Micha? Kordas. 717*455610afSAndroid Build Coastguard Workero LANG-1096: Update maven-pmd-plugin to 3.4. Thanks to Micha? Kordas. 718*455610afSAndroid Build Coastguard Workero LANG-1095: Update maven-antrun-plugin to 1.8. Thanks to Micha? Kordas. 719*455610afSAndroid Build Coastguard Workero LANG-877: Performance improvements for StringEscapeUtils. Thanks to 720*455610afSAndroid Build Coastguard Worker Fabian Lange. 721*455610afSAndroid Build Coastguard Workero LANG-1071: Fix wrong examples in Javadoc of 722*455610afSAndroid Build Coastguard Worker StringUtils.replaceEachRepeatedly(...), 723*455610afSAndroid Build Coastguard Worker StringUtils.replaceEach(...) Thanks to Arno Noordover. 724*455610afSAndroid Build Coastguard Workero LANG-827: CompareToBuilder's doc doesn't specify precedence of fields it 725*455610afSAndroid Build Coastguard Worker uses in performing comparisons 726*455610afSAndroid Build Coastguard Workero LANG-1020: Improve performance of normalize space. Thanks to Libor Ondrusek. 727*455610afSAndroid Build Coastguard Workero LANG-1027: org.apache.commons.lang3.SystemUtils#isJavaVersionAtLeast should 728*455610afSAndroid Build Coastguard Worker return true by default 729*455610afSAndroid Build Coastguard Workero LANG-1026: Bring static method references in StringUtils to consistent style. 730*455610afSAndroid Build Coastguard Worker Thanks to Alex Yursha. 731*455610afSAndroid Build Coastguard Workero LANG-1017: Use non-ASCII digits in Javadoc examples for 732*455610afSAndroid Build Coastguard Worker StringUtils.isNumeric. Thanks to Christoph Schneegans. 733*455610afSAndroid Build Coastguard Workero LANG-1008: Change min/max methods in NumberUtils/IEEE754rUtils from array 734*455610afSAndroid Build Coastguard Worker input parameters to varargs. Thanks to Thiago Andrade. 735*455610afSAndroid Build Coastguard Workero LANG-1006: Add wrap (with String or char) to StringUtils. Thanks to 736*455610afSAndroid Build Coastguard Worker Thiago Andrade. 737*455610afSAndroid Build Coastguard Workero LANG-1005: Extend DurationFormatUtils#formatDurationISO default pattern to 738*455610afSAndroid Build Coastguard Worker match #formatDurationHMS. Thanks to Michael Osipov. 739*455610afSAndroid Build Coastguard Workero LANG-1007: Fixing NumberUtils JAVADoc comments for max methods. Thanks to 740*455610afSAndroid Build Coastguard Worker Thiago Andrade. 741*455610afSAndroid Build Coastguard Workero LANG-731: Better Javadoc for BitField class 742*455610afSAndroid Build Coastguard Workero LANG-1004: DurationFormatUtils#formatDurationHMS implementation does not 743*455610afSAndroid Build Coastguard Worker correspond to Javadoc and vice versa. Thanks to Michael Osipov. 744*455610afSAndroid Build Coastguard Workero LANG-1003: DurationFormatUtils are not able to handle negative 745*455610afSAndroid Build Coastguard Worker durations/periods 746*455610afSAndroid Build Coastguard Workero LANG-998: Javadoc is not clear on preferred pattern to instantiate 747*455610afSAndroid Build Coastguard Worker FastDateParser / FastDatePrinter 748*455610afSAndroid Build Coastguard Worker 749*455610afSAndroid Build Coastguard Worker============================================================================= 750*455610afSAndroid Build Coastguard Worker 751*455610afSAndroid Build Coastguard Worker Release Notes for version 3.3.2 752*455610afSAndroid Build Coastguard Worker 753*455610afSAndroid Build Coastguard WorkerNEW FEATURES 754*455610afSAndroid Build Coastguard Worker============== 755*455610afSAndroid Build Coastguard Worker 756*455610afSAndroid Build Coastguard Workero LANG-989: Add org.apache.commons.lang3.SystemUtils.IS_JAVA_1_8 757*455610afSAndroid Build Coastguard Worker 758*455610afSAndroid Build Coastguard WorkerFIXED BUGS 759*455610afSAndroid Build Coastguard Worker============ 760*455610afSAndroid Build Coastguard Worker 761*455610afSAndroid Build Coastguard Workero LANG-992: NumberUtils#isNumber() returns false for "0.0", "0.4790", et al 762*455610afSAndroid Build Coastguard Worker 763*455610afSAndroid Build Coastguard Worker============================================================================= 764*455610afSAndroid Build Coastguard Worker 765*455610afSAndroid Build Coastguard Worker Release Notes for version 3.3.1 766*455610afSAndroid Build Coastguard Worker 767*455610afSAndroid Build Coastguard WorkerFIXED BUGS 768*455610afSAndroid Build Coastguard Worker============ 769*455610afSAndroid Build Coastguard Worker 770*455610afSAndroid Build Coastguard Workero LANG-987: DateUtils.getFragmentInDays(Date, Calendar.MONTH) returns wrong 771*455610afSAndroid Build Coastguard Worker days 772*455610afSAndroid Build Coastguard Workero LANG-983: DurationFormatUtils does not describe format string fully 773*455610afSAndroid Build Coastguard Workero LANG-981: DurationFormatUtils#lexx does not detect unmatched quote char 774*455610afSAndroid Build Coastguard Workero LANG-984: DurationFormatUtils does not handle large durations correctly 775*455610afSAndroid Build Coastguard Workero LANG-982: DurationFormatUtils.formatDuration(61999, "s.SSSS") - ms field 776*455610afSAndroid Build Coastguard Worker size should be 4 digits 777*455610afSAndroid Build Coastguard Workero LANG-978: Failing tests with Java 8 b128 778*455610afSAndroid Build Coastguard Worker 779*455610afSAndroid Build Coastguard Worker============================================================================= 780*455610afSAndroid Build Coastguard Worker 781*455610afSAndroid Build Coastguard Worker Release Notes for version 3.3 782*455610afSAndroid Build Coastguard Worker 783*455610afSAndroid Build Coastguard WorkerNEW FEATURES 784*455610afSAndroid Build Coastguard Worker============== 785*455610afSAndroid Build Coastguard Worker 786*455610afSAndroid Build Coastguard Workero LANG-955: Add methods for removing all invalid characters according to 787*455610afSAndroid Build Coastguard Worker XML 1.0 and XML 1.1 in an input string to StringEscapeUtils. 788*455610afSAndroid Build Coastguard Worker Thanks to Adam Hooper. 789*455610afSAndroid Build Coastguard Workero LANG-970: Add APIs MutableBoolean setTrue() and setFalse() 790*455610afSAndroid Build Coastguard Workero LANG-962: Add SerializationUtils.roundtrip(T extends Serializable) to 791*455610afSAndroid Build Coastguard Worker serialize then deserialize 792*455610afSAndroid Build Coastguard Workero LANG-637: There should be a DifferenceBuilder with a 793*455610afSAndroid Build Coastguard Worker ReflectionDifferenceBuilder implementation 794*455610afSAndroid Build Coastguard Workero LANG-944: Add the Jaro-Winkler string distance algorithm to StringUtils. 795*455610afSAndroid Build Coastguard Worker Thanks to Rekha Joshi. 796*455610afSAndroid Build Coastguard Workero LANG-417: New class ClassPathUtils with methods for turning FQN into 797*455610afSAndroid Build Coastguard Worker resource path 798*455610afSAndroid Build Coastguard Workero LANG-834: Validate: add inclusiveBetween and exclusiveBetween overloads 799*455610afSAndroid Build Coastguard Worker for primitive types 800*455610afSAndroid Build Coastguard Workero LANG-900: New RandomUtils class. Thanks to Duncan Jones. 801*455610afSAndroid Build Coastguard Workero LANG-966: Add IBM OS/400 detection 802*455610afSAndroid Build Coastguard Worker 803*455610afSAndroid Build Coastguard WorkerFIXED BUGS 804*455610afSAndroid Build Coastguard Worker============ 805*455610afSAndroid Build Coastguard Worker 806*455610afSAndroid Build Coastguard Workero LANG-621: ReflectionToStringBuilder.toString does not debug 3rd party object 807*455610afSAndroid Build Coastguard Worker fields within 3rd party object. Thanks to Philip Hodges, 808*455610afSAndroid Build Coastguard Worker Thomas Neidhart. 809*455610afSAndroid Build Coastguard Workero LANG-977: NumericEntityEscaper incorrectly encodes supplementary characters. 810*455610afSAndroid Build Coastguard Worker Thanks to Chris Karcher. 811*455610afSAndroid Build Coastguard Workero LANG-973: Make some private fields final 812*455610afSAndroid Build Coastguard Workero LANG-971: NumberUtils#isNumber(String) fails to reject invalid Octal numbers 813*455610afSAndroid Build Coastguard Workero LANG-972: NumberUtils#isNumber does not allow for hex 0XABCD 814*455610afSAndroid Build Coastguard Workero LANG-969: StringUtils.toEncodedString(byte[], Charset) needlessly throws 815*455610afSAndroid Build Coastguard Worker UnsupportedEncodingException. Thanks to Matt Bishop. 816*455610afSAndroid Build Coastguard Workero LANG-946: ConstantInitializerTest fails when building with IBM JDK 7 817*455610afSAndroid Build Coastguard Workero LANG-954: uncaught PatternSyntaxException in FastDateFormat on Android. 818*455610afSAndroid Build Coastguard Worker Thanks to Michael Keppler. 819*455610afSAndroid Build Coastguard Workero LANG-936: StringUtils.getLevenshteinDistance with too big of a threshold 820*455610afSAndroid Build Coastguard Worker returns wrong result. Thanks to Yaniv Kunda, Eli Lindsey. 821*455610afSAndroid Build Coastguard Workero LANG-943: Test DurationFormatUtilsTest.testEdgeDuration fails in 822*455610afSAndroid Build Coastguard Worker JDK 1.6, 1.7 and 1.8, BRST time zone 823*455610afSAndroid Build Coastguard Workero LANG-613: ConstructorUtils.getAccessibleConstructor() Does Not Check the 824*455610afSAndroid Build Coastguard Worker Accessibility of Enclosing Classes 825*455610afSAndroid Build Coastguard Workero LANG-951: Fragments are wrong by 1 day when using fragment YEAR or MONTH. 826*455610afSAndroid Build Coastguard Worker Thanks to Sebastian G�tz. 827*455610afSAndroid Build Coastguard Workero LANG-950: FastDateParser does not handle two digit year parsing like 828*455610afSAndroid Build Coastguard Worker SimpleDateFormat 829*455610afSAndroid Build Coastguard Workero LANG-949: FastDateParserTest.testParses does not test FastDateParser 830*455610afSAndroid Build Coastguard Workero LANG-915: Wrong locale handling in LocaleUtils.toLocale(). 831*455610afSAndroid Build Coastguard Worker Thanks to Sergio Fern�ndez. 832*455610afSAndroid Build Coastguard Worker 833*455610afSAndroid Build Coastguard WorkerCHANGES 834*455610afSAndroid Build Coastguard Worker========= 835*455610afSAndroid Build Coastguard Worker 836*455610afSAndroid Build Coastguard Workero LANG-961: org.apache.commons.lang3.reflect.FieldUtils.removeFinalModifier(Field) 837*455610afSAndroid Build Coastguard Worker does not clean up after itself 838*455610afSAndroid Build Coastguard Workero LANG-958: FastDateParser javadoc incorrectly states that SimpleDateFormat 839*455610afSAndroid Build Coastguard Worker is used internally 840*455610afSAndroid Build Coastguard Workero LANG-956: Improve Javadoc of WordUtils.wrap methods 841*455610afSAndroid Build Coastguard Workero LANG-939: Move Documentation from user guide to package-info files 842*455610afSAndroid Build Coastguard Workero LANG-953: Convert package.html files to package-info.java files 843*455610afSAndroid Build Coastguard Workero LANG-940: Fix deprecation warnings 844*455610afSAndroid Build Coastguard Workero LANG-819: EnumUtils.generateBitVector needs a "? extends" 845*455610afSAndroid Build Coastguard Worker 846*455610afSAndroid Build Coastguard Worker============================================================================= 847*455610afSAndroid Build Coastguard Worker 848*455610afSAndroid Build Coastguard Worker Release Notes for version 3.2.1 849*455610afSAndroid Build Coastguard Worker 850*455610afSAndroid Build Coastguard WorkerBUG FIXES 851*455610afSAndroid Build Coastguard Worker=========== 852*455610afSAndroid Build Coastguard Worker 853*455610afSAndroid Build Coastguard Workero LANG-937: Fix missing Hamcrest dependency in Ant Build 854*455610afSAndroid Build Coastguard Workero LANG-941: Test failure in LocaleUtilsTest when building with JDK 8 855*455610afSAndroid Build Coastguard Workero LANG-942: Test failure in FastDateParserTest and FastDateFormat_ParserTest 856*455610afSAndroid Build Coastguard Worker when building with JDK8. Thanks to Bruno P. Kinoshita, 857*455610afSAndroid Build Coastguard Worker Henri Yandell. 858*455610afSAndroid Build Coastguard Workero LANG-938: Build fails with test failures when building with JDK 8 859*455610afSAndroid Build Coastguard Worker 860*455610afSAndroid Build Coastguard Worker============================================================================= 861*455610afSAndroid Build Coastguard Worker 862*455610afSAndroid Build Coastguard Worker Release Notes for version 3.2 863*455610afSAndroid Build Coastguard Worker 864*455610afSAndroid Build Coastguard WorkerCOMPATIBILITY WITH 3.1 865*455610afSAndroid Build Coastguard Worker======================== 866*455610afSAndroid Build Coastguard Worker 867*455610afSAndroid Build Coastguard WorkerThis release introduces backwards incompatible changes in 868*455610afSAndroid Build Coastguard Workerorg.apache.commons.lang3.time.FastDateFormat: 869*455610afSAndroid Build Coastguard Workero Method 'protected java.util.List parsePattern()' has been removed 870*455610afSAndroid Build Coastguard Workero Method 'protected java.lang.String parseToken(java.lang.String, int[])' has 871*455610afSAndroid Build Coastguard Worker been removed 872*455610afSAndroid Build Coastguard Workero Method 'protected org.apache.commons.lang3.time.FastDateFormat$NumberRule 873*455610afSAndroid Build Coastguard Worker selectNumberRule(int, int)' has been removed 874*455610afSAndroid Build Coastguard Worker 875*455610afSAndroid Build Coastguard WorkerThese changes were the result of [LANG-462]. It is assumed that this change 876*455610afSAndroid Build Coastguard Workerwill not break clients as Charles Honton pointed out on 25/Jan/12: 877*455610afSAndroid Build Coastguard Worker" 878*455610afSAndroid Build Coastguard Worker 1. Methods "FastDateFormat$NumberRule selectNumberRule(int, int)" and 879*455610afSAndroid Build Coastguard Worker "List<Rule> parsePattern()" couldn't have been overridden because 880*455610afSAndroid Build Coastguard Worker NumberRule and Rule were private to FastDateFormat. 881*455610afSAndroid Build Coastguard Worker 2. Due to the factory pattern used, it's unlikely other two methods would have 882*455610afSAndroid Build Coastguard Worker been overridden. 883*455610afSAndroid Build Coastguard Worker 3. The four methods are highly implementation specific. I consider it a 884*455610afSAndroid Build Coastguard Worker mistake that the methods were exposed. 885*455610afSAndroid Build Coastguard Worker" 886*455610afSAndroid Build Coastguard WorkerFor more information see https://issues.apache.org/jira/browse/LANG-462. 887*455610afSAndroid Build Coastguard Worker 888*455610afSAndroid Build Coastguard WorkerNEW FEATURES 889*455610afSAndroid Build Coastguard Worker============== 890*455610afSAndroid Build Coastguard Worker 891*455610afSAndroid Build Coastguard Workero LANG-934: Add removeFinalModifier to FieldUtils 892*455610afSAndroid Build Coastguard Workero LANG-863: Method returns number of inheritance hops between parent and 893*455610afSAndroid Build Coastguard Worker subclass. Thanks to Daneel S. Yaitskov. 894*455610afSAndroid Build Coastguard Workero LANG-774: Added isStarted, isSuspended and isStopped to StopWatch. 895*455610afSAndroid Build Coastguard Worker Thanks to Erhan Bagdemir. 896*455610afSAndroid Build Coastguard Workero LANG-848: Added StringUtils.isBlank/isEmpty CharSequence... methods. 897*455610afSAndroid Build Coastguard Worker Thanks to Alexander Muthmann. 898*455610afSAndroid Build Coastguard Workero LANG-926: Added ArrayUtils.reverse(array, from, to) methods. 899*455610afSAndroid Build Coastguard Workero LANG-795: StringUtils.toString(byte[], String) deprecated in favour of a new 900*455610afSAndroid Build Coastguard Worker StringUtils.toString(byte[], CharSet). Thanks to Aaron Digulla. 901*455610afSAndroid Build Coastguard Workero LANG-893: StrSubstitutor now supports default values for variables. 902*455610afSAndroid Build Coastguard Worker Thanks to Woonsan Ko. 903*455610afSAndroid Build Coastguard Workero LANG-913: Adding .gitignore to commons-lang. Thanks to Allon Mureinik. 904*455610afSAndroid Build Coastguard Workero LANG-837: Add ObjectUtils.toIdentityString methods that support 905*455610afSAndroid Build Coastguard Worker StringBuilder, StrBuilder, and Appendable. 906*455610afSAndroid Build Coastguard Workero LANG-886: Added CharSetUtils.containsAny(String, String). 907*455610afSAndroid Build Coastguard Workero LANG-797: Added escape/unescapeJson to StringEscapeUtils. 908*455610afSAndroid Build Coastguard Workero LANG-875: Added appendIfMissing and prependIfMissing methods to StringUtils. 909*455610afSAndroid Build Coastguard Workero LANG-870: Add StringUtils.LF and StringUtils.CR values. 910*455610afSAndroid Build Coastguard Workero LANG-873: Add FieldUtils getAllFields() to return all the fields defined in 911*455610afSAndroid Build Coastguard Worker the given class and super classes. 912*455610afSAndroid Build Coastguard Workero LANG-835: StrBuilder should support StringBuilder as an input parameter. 913*455610afSAndroid Build Coastguard Workero LANG-857: StringIndexOutOfBoundsException in CharSequenceTranslator. 914*455610afSAndroid Build Coastguard Workero LANG-856: Code refactoring in NumberUtils. 915*455610afSAndroid Build Coastguard Workero LANG-855: NumberUtils#createBigInteger does not allow for hex and octal 916*455610afSAndroid Build Coastguard Worker numbers. 917*455610afSAndroid Build Coastguard Workero LANG-854: NumberUtils#createNumber - does not allow for hex numbers to be 918*455610afSAndroid Build Coastguard Worker larger than Long. 919*455610afSAndroid Build Coastguard Workero LANG-853: StringUtils join APIs for primitives. 920*455610afSAndroid Build Coastguard Workero LANG-841: Add StringUtils API to call String.replaceAll in DOTALL a.k.a. 921*455610afSAndroid Build Coastguard Worker single-line mode. 922*455610afSAndroid Build Coastguard Workero LANG-825: Create StrBuilder APIs similar to 923*455610afSAndroid Build Coastguard Worker String.format(String, Object...). 924*455610afSAndroid Build Coastguard Workero LANG-675: Add Triple class (ternary version of Pair). 925*455610afSAndroid Build Coastguard Workero LANG-462: FastDateFormat supports parse methods. 926*455610afSAndroid Build Coastguard Worker 927*455610afSAndroid Build Coastguard WorkerBUG FIXES 928*455610afSAndroid Build Coastguard Worker=========== 929*455610afSAndroid Build Coastguard Worker 930*455610afSAndroid Build Coastguard Workero LANG-932: Spelling fixes. Thanks to Ville Skytt�. 931*455610afSAndroid Build Coastguard Workero LANG-929: OctalUnescaper tried to parse all of \279. 932*455610afSAndroid Build Coastguard Workero LANG-928: OctalUnescaper had bugs when parsing octals starting with a zero. 933*455610afSAndroid Build Coastguard Workero LANG-905: EqualsBuilder returned true when comparing arrays, even when the 934*455610afSAndroid Build Coastguard Worker elements are different. 935*455610afSAndroid Build Coastguard Workero LANG-917: Fixed exception when combining custom and choice format in 936*455610afSAndroid Build Coastguard Worker ExtendedMessageFormat. Thanks to Arne Burmeister. 937*455610afSAndroid Build Coastguard Workero LANG-902: RandomStringUtils.random javadoc was incorrectly promising letters 938*455610afSAndroid Build Coastguard Worker and numbers would, as opposed to may, appear Issue:. Thanks to 939*455610afSAndroid Build Coastguard Worker Andrzej Winnicki. 940*455610afSAndroid Build Coastguard Workero LANG-921: BooleanUtils.xor(boolean...) produces wrong results. 941*455610afSAndroid Build Coastguard Workero LANG-896: BooleanUtils.toBoolean(String str) javadoc is not updated. Thanks 942*455610afSAndroid Build Coastguard Worker to Mark Bryan Yu. 943*455610afSAndroid Build Coastguard Workero LANG-879: LocaleUtils test fails with new Locale "ja_JP_JP_#u-ca-japanese" 944*455610afSAndroid Build Coastguard Worker of JDK7. 945*455610afSAndroid Build Coastguard Workero LANG-836: StrSubstitutor does not support StringBuilder or CharSequence. 946*455610afSAndroid Build Coastguard Worker Thanks to Arnaud Brunet. 947*455610afSAndroid Build Coastguard Workero LANG-693: Method createNumber from NumberUtils doesn't work for floating 948*455610afSAndroid Build Coastguard Worker point numbers other than Float Issue: LANG-693. Thanks to 949*455610afSAndroid Build Coastguard Worker Calvin Echols. 950*455610afSAndroid Build Coastguard Workero LANG-887: FastDateFormat does not use the locale specific cache correctly. 951*455610afSAndroid Build Coastguard Workero LANG-754: ClassUtils.getShortName(String) will now only do a reverse lookup 952*455610afSAndroid Build Coastguard Worker for array types. 953*455610afSAndroid Build Coastguard Workero LANG-881: NumberUtils.createNumber() Javadoc says it does not work for octal 954*455610afSAndroid Build Coastguard Worker numbers. 955*455610afSAndroid Build Coastguard Workero LANG-865: LocaleUtils.toLocale does not parse strings starting with an 956*455610afSAndroid Build Coastguard Worker underscore. 957*455610afSAndroid Build Coastguard Workero LANG-858: StringEscapeUtils.escapeJava() and escapeEcmaScript() do not 958*455610afSAndroid Build Coastguard Worker output the escaped surrogate pairs that are Java parsable. 959*455610afSAndroid Build Coastguard Workero LANG-849: FastDateFormat and FastDatePrinter generates Date objects 960*455610afSAndroid Build Coastguard Worker wastefully. 961*455610afSAndroid Build Coastguard Workero LANG-845: Spelling fixes. 962*455610afSAndroid Build Coastguard Workero LANG-844: Fix examples contained in javadoc of StringUtils.center methods. 963*455610afSAndroid Build Coastguard Workero LANG-832: FastDateParser does not handle unterminated quotes correctly. 964*455610afSAndroid Build Coastguard Workero LANG-831: FastDateParser does not handle white-space properly. 965*455610afSAndroid Build Coastguard Workero LANG-830: FastDateParser could use \Q \E to quote regexes. 966*455610afSAndroid Build Coastguard Workero LANG-828: FastDateParser does not handle non-Gregorian calendars properly. 967*455610afSAndroid Build Coastguard Workero LANG-826: FastDateParser does not handle non-ASCII digits correctly. 968*455610afSAndroid Build Coastguard Workero LANG-822: NumberUtils#createNumber - bad behavior for leading "--". 969*455610afSAndroid Build Coastguard Workero LANG-818: FastDateFormat's "z" pattern does not respect timezone of Calendar 970*455610afSAndroid Build Coastguard Worker instances passed to format(). 971*455610afSAndroid Build Coastguard Workero LANG-817: Add org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS_8. 972*455610afSAndroid Build Coastguard Workero LANG-813: StringUtils.equalsIgnoreCase doesn't check string reference 973*455610afSAndroid Build Coastguard Worker equality. 974*455610afSAndroid Build Coastguard Workero LANG-810: StringUtils.join() endIndex, bugged for loop. 975*455610afSAndroid Build Coastguard Workero LANG-807: RandomStringUtils throws confusing IAE when end <= start. 976*455610afSAndroid Build Coastguard Workero LANG-805: RandomStringUtils.random(count, 0, 0, false, false, universe, 977*455610afSAndroid Build Coastguard Worker random) always throws java.lang.ArrayIndexOutOfBoundsException. 978*455610afSAndroid Build Coastguard Workero LANG-802: LocaleUtils - unnecessary recursive call in SyncAvoid class. 979*455610afSAndroid Build Coastguard Workero LANG-800: Javadoc bug in DateUtils#ceiling for Calendar and Object versions. 980*455610afSAndroid Build Coastguard Workero LANG-788: SerializationUtils throws ClassNotFoundException when cloning 981*455610afSAndroid Build Coastguard Worker primitive classes. 982*455610afSAndroid Build Coastguard Workero LANG-786: StringUtils equals() relies on undefined behavior. 983*455610afSAndroid Build Coastguard Workero LANG-783: Documentation bug: StringUtils.split. 984*455610afSAndroid Build Coastguard Workero LANG-777: jar contains velocity template of release notes. 985*455610afSAndroid Build Coastguard Workero LANG-776: TypeUtilsTest contains incorrect type assignability assertion. 986*455610afSAndroid Build Coastguard Workero LANG-775: TypeUtils.getTypeArguments() misses type arguments for 987*455610afSAndroid Build Coastguard Worker partially-assigned classes. 988*455610afSAndroid Build Coastguard Workero LANG-773: ImmutablePair doc contains nonsense text. 989*455610afSAndroid Build Coastguard Workero LANG-772: ClassUtils.PACKAGE_SEPARATOR Javadoc contains garbage text. 990*455610afSAndroid Build Coastguard Workero LANG-765: EventListenerSupport.ProxyInvocationHandler no longer defines 991*455610afSAndroid Build Coastguard Worker serialVersionUID. 992*455610afSAndroid Build Coastguard Workero LANG-764: StrBuilder is now serializable. 993*455610afSAndroid Build Coastguard Workero LANG-761: Fix Javadoc Ant warnings. 994*455610afSAndroid Build Coastguard Workero LANG-747: NumberUtils does not handle Long Hex numbers. 995*455610afSAndroid Build Coastguard Workero LANG-743: Javadoc bug in static inner class DateIterator. 996*455610afSAndroid Build Coastguard Worker 997*455610afSAndroid Build Coastguard WorkerCHANGES 998*455610afSAndroid Build Coastguard Worker========= 999*455610afSAndroid Build Coastguard Worker 1000*455610afSAndroid Build Coastguard Workero LANG-931: Misleading Javadoc comment in StrBuilderReader class. Thanks 1001*455610afSAndroid Build Coastguard Worker to Christoph Schneegans. 1002*455610afSAndroid Build Coastguard Workero LANG-910: StringUtils.normalizeSpace now handles non-breaking spaces 1003*455610afSAndroid Build Coastguard Worker (Unicode 00A0). Thanks to Timur Yarosh. 1004*455610afSAndroid Build Coastguard Workero LANG-804: Redundant check for zero in HashCodeBuilder ctor. Thanks to 1005*455610afSAndroid Build Coastguard Worker Allon Mureinik. 1006*455610afSAndroid Build Coastguard Workero LANG-884: Simplify FastDateFormat; eliminate boxing. 1007*455610afSAndroid Build Coastguard Workero LANG-882: LookupTranslator now works with implementations of CharSequence 1008*455610afSAndroid Build Coastguard Worker other than String. 1009*455610afSAndroid Build Coastguard Workero LANG-846: Provide CharSequenceUtils.regionMatches with a proper green 1010*455610afSAndroid Build Coastguard Worker implementation instead of inefficiently converting to Strings. 1011*455610afSAndroid Build Coastguard Workero LANG-839: ArrayUtils removeElements methods use unnecessary HashSet. 1012*455610afSAndroid Build Coastguard Workero LANG-838: ArrayUtils removeElements methods clone temporary index arrays 1013*455610afSAndroid Build Coastguard Worker unnecessarily. 1014*455610afSAndroid Build Coastguard Workero LANG-799: DateUtils#parseDate uses default locale; add Locale support. 1015*455610afSAndroid Build Coastguard Workero LANG-798: Use generics in SerializationUtils. 1016*455610afSAndroid Build Coastguard Worker 1017*455610afSAndroid Build Coastguard WorkerCHANGES WITHOUT TICKET 1018*455610afSAndroid Build Coastguard Worker======================== 1019*455610afSAndroid Build Coastguard Worker 1020*455610afSAndroid Build Coastguard Workero Fixed URLs in javadoc to point to new oracle.com pages 1021*455610afSAndroid Build Coastguard Worker 1022*455610afSAndroid Build Coastguard Worker============================================================================= 1023*455610afSAndroid Build Coastguard Worker 1024*455610afSAndroid Build Coastguard Worker Release Notes for version 3.1 1025*455610afSAndroid Build Coastguard Worker 1026*455610afSAndroid Build Coastguard WorkerNEW FEATURES 1027*455610afSAndroid Build Coastguard Worker============== 1028*455610afSAndroid Build Coastguard Worker 1029*455610afSAndroid Build Coastguard Workero LANG-801: Add Conversion utility to convert between data types on byte level 1030*455610afSAndroid Build Coastguard Workero LANG-760: Add API StringUtils.toString(byte[] input, String charsetName) 1031*455610afSAndroid Build Coastguard Workero LANG-756: Add APIs ClassUtils.isPrimitiveWrapper(Class<?>) and 1032*455610afSAndroid Build Coastguard Worker isPrimitiveOrWrapper(Class<?>) 1033*455610afSAndroid Build Coastguard Workero LANG-695: SystemUtils.IS_OS_UNIX doesn't recognize FreeBSD as a Unix system 1034*455610afSAndroid Build Coastguard Worker 1035*455610afSAndroid Build Coastguard WorkerBUG FIXES 1036*455610afSAndroid Build Coastguard Worker=========== 1037*455610afSAndroid Build Coastguard Worker 1038*455610afSAndroid Build Coastguard Workero LANG-749: Incorrect Bundle-SymbolicName in Manifest 1039*455610afSAndroid Build Coastguard Workero LANG-746: NumberUtils does not handle upper-case hex: 0X and -0X 1040*455610afSAndroid Build Coastguard Workero LANG-744: StringUtils throws java.security.AccessControlException on Google 1041*455610afSAndroid Build Coastguard Worker App Engine 1042*455610afSAndroid Build Coastguard Workero LANG-741: Ant build has wrong component.name 1043*455610afSAndroid Build Coastguard Workero LANG-698: Document that the Mutable numbers don't work as expected with 1044*455610afSAndroid Build Coastguard Worker String.format 1045*455610afSAndroid Build Coastguard Worker 1046*455610afSAndroid Build Coastguard WorkerCHANGES 1047*455610afSAndroid Build Coastguard Worker========= 1048*455610afSAndroid Build Coastguard Worker 1049*455610afSAndroid Build Coastguard Workero LANG-758: Add an example with whitespace in StringUtils.defaultIfEmpty 1050*455610afSAndroid Build Coastguard Workero LANG-752: Fix createLong() so it behaves like createInteger() 1051*455610afSAndroid Build Coastguard Workero LANG-751: Include the actual type in the Validate.isInstance and 1052*455610afSAndroid Build Coastguard Worker isAssignableFrom exception messages 1053*455610afSAndroid Build Coastguard Workero LANG-748: Deprecating chomp(String, String) 1054*455610afSAndroid Build Coastguard Workero LANG-736: CharUtils static final array CHAR_STRING is not needed to compute 1055*455610afSAndroid Build Coastguard Worker CHAR_STRING_ARRAY 1056*455610afSAndroid Build Coastguard Worker 1057*455610afSAndroid Build Coastguard Worker============================================================================= 1058*455610afSAndroid Build Coastguard Worker 1059*455610afSAndroid Build Coastguard Worker Release Notes for version 3.0 1060*455610afSAndroid Build Coastguard Worker 1061*455610afSAndroid Build Coastguard WorkerADDITIONS 1062*455610afSAndroid Build Coastguard Worker=========== 1063*455610afSAndroid Build Coastguard Worker 1064*455610afSAndroid Build Coastguard Workero LANG-276: MutableBigDecimal and MutableBigInteger. 1065*455610afSAndroid Build Coastguard Workero LANG-285: Wish : method unaccent. 1066*455610afSAndroid Build Coastguard Workero LANG-358: ObjectUtils.coalesce. 1067*455610afSAndroid Build Coastguard Workero LANG-386: LeftOf/RightOfNumber in Range convenience methods necessary. 1068*455610afSAndroid Build Coastguard Workero LANG-435: Add ClassUtils.isAssignable() variants with autoboxing. 1069*455610afSAndroid Build Coastguard Workero LANG-444: StringUtils.emptyToNull. 1070*455610afSAndroid Build Coastguard Workero LANG-482: Enhance StrSubstitutor to support nested ${var-${subvr}} expansion 1071*455610afSAndroid Build Coastguard Workero LANG-482: StrSubstitutor now supports substitution in variable names. 1072*455610afSAndroid Build Coastguard Workero LANG-496: A generic implementation of the Lazy initialization pattern. 1073*455610afSAndroid Build Coastguard Workero LANG-497: Addition of ContextedException and ContextedRuntimeException. 1074*455610afSAndroid Build Coastguard Workero LANG-498: Add StringEscapeUtils.escapeText() methods. 1075*455610afSAndroid Build Coastguard Workero LANG-499: Add support for the handling of ExecutionExceptions. 1076*455610afSAndroid Build Coastguard Workero LANG-501: Add support for background initialization. 1077*455610afSAndroid Build Coastguard Workero LANG-529: Add a concurrent package. 1078*455610afSAndroid Build Coastguard Workero LANG-533: Validate: support for validating blank strings. 1079*455610afSAndroid Build Coastguard Workero LANG-537: Add ArrayUtils.toArray to create generic arrays. 1080*455610afSAndroid Build Coastguard Workero LANG-545: Add ability to create a Future for a constant. 1081*455610afSAndroid Build Coastguard Workero LANG-546: Add methods to Validate to check whether the index is valid for 1082*455610afSAndroid Build Coastguard Worker the array/list/string. 1083*455610afSAndroid Build Coastguard Workero LANG-553: Add TypeUtils class to provide utility code for working with generic 1084*455610afSAndroid Build Coastguard Worker types. 1085*455610afSAndroid Build Coastguard Workero LANG-559: Added isAssignableFrom and isInstanceOf validation methods. 1086*455610afSAndroid Build Coastguard Workero LANG-559: Added validState validation method. 1087*455610afSAndroid Build Coastguard Workero LANG-560: New TimedSemaphore class. 1088*455610afSAndroid Build Coastguard Workero LANG-582: Provide an implementation of the ThreadFactory interface. 1089*455610afSAndroid Build Coastguard Workero LANG-588: Create a basic Pair<L, R> class. 1090*455610afSAndroid Build Coastguard Workero LANG-594: DateUtils equal & compare functions up to most significant field. 1091*455610afSAndroid Build Coastguard Workero LANG-601: Add Builder Interface / Update Builders to Implement It. 1092*455610afSAndroid Build Coastguard Workero LANG-609: Support lazy initialization using atomic variables 1093*455610afSAndroid Build Coastguard Workero LANG-610: Extend exception handling in ConcurrentUtils to runtime exceptions. 1094*455610afSAndroid Build Coastguard Workero LANG-614: StringUtils.endsWithAny method 1095*455610afSAndroid Build Coastguard Workero LANG-640: Add normalizeSpace to StringUtils 1096*455610afSAndroid Build Coastguard Workero LANG-644: Provide documentation about the new concurrent package 1097*455610afSAndroid Build Coastguard Workero LANG-649: BooleanUtils.toBooleanObject to support single character input 1098*455610afSAndroid Build Coastguard Workero LANG-651: Add AnnotationUtils 1099*455610afSAndroid Build Coastguard Workero LANG-653: Provide a very basic ConcurrentInitializer implementation 1100*455610afSAndroid Build Coastguard Workero LANG-655: Add StringUtils.defaultIfBlank() 1101*455610afSAndroid Build Coastguard Workero LANG-667: Add a Null-safe compare() method to ObjectUtils 1102*455610afSAndroid Build Coastguard Workero LANG-676: Documented potential NPE if auto-boxing occurs for some BooleanUtils 1103*455610afSAndroid Build Coastguard Worker methods 1104*455610afSAndroid Build Coastguard Workero LANG-678: Add support for ConcurrentMap.putIfAbsent() 1105*455610afSAndroid Build Coastguard Workero LANG-692: Add hashCodeMulti varargs method 1106*455610afSAndroid Build Coastguard Workero LANG-697: Add FormattableUtils class 1107*455610afSAndroid Build Coastguard Workero LANG-684: Levenshtein Distance Within a Given Threshold 1108*455610afSAndroid Build Coastguard Worker 1109*455610afSAndroid Build Coastguard WorkerREMOVALS 1110*455610afSAndroid Build Coastguard Worker========== 1111*455610afSAndroid Build Coastguard Worker 1112*455610afSAndroid Build Coastguard Workero LANG-438: Remove @deprecateds. 1113*455610afSAndroid Build Coastguard Workero LANG-492: Remove code handled now by the JDK. 1114*455610afSAndroid Build Coastguard Workero LANG-493: Remove code that does not hold enough value to remain. 1115*455610afSAndroid Build Coastguard Workero LANG-590: Remove JDK 1.2/1.3 bug handling in 1116*455610afSAndroid Build Coastguard Worker StringUtils.indexOf(String, String, int). 1117*455610afSAndroid Build Coastguard Workero LANG-673: WordUtils.abbreviate() removed 1118*455610afSAndroid Build Coastguard Workero LANG-691: Removed DateUtils.UTC_TIME_ZONE 1119*455610afSAndroid Build Coastguard Worker 1120*455610afSAndroid Build Coastguard WorkerIMPROVEMENTS 1121*455610afSAndroid Build Coastguard Worker============== 1122*455610afSAndroid Build Coastguard Worker 1123*455610afSAndroid Build Coastguard Workero LANG-290: EnumUtils for JDK 5.0. 1124*455610afSAndroid Build Coastguard Workero LANG-336: Finally start using generics. 1125*455610afSAndroid Build Coastguard Workero LANG-355: StrBuilder should implement CharSequence and Appendable. 1126*455610afSAndroid Build Coastguard Workero LANG-396: Investigate for vararg usages. 1127*455610afSAndroid Build Coastguard Workero LANG-424: Improve Javadoc for StringUtils class. 1128*455610afSAndroid Build Coastguard Workero LANG-458: Refactor Validate.java to eliminate code redundancy. 1129*455610afSAndroid Build Coastguard Workero LANG-479: Document where in SVN trunk is. 1130*455610afSAndroid Build Coastguard Workero LANG-504: bring ArrayUtils.isEmpty to the generics world. 1131*455610afSAndroid Build Coastguard Workero LANG-505: Rewrite StringEscapeUtils. 1132*455610afSAndroid Build Coastguard Workero LANG-507: StringEscapeUtils.unescapeJava should support \u+ notation. 1133*455610afSAndroid Build Coastguard Workero LANG-510: Convert StringUtils API to take CharSequence. 1134*455610afSAndroid Build Coastguard Workero LANG-513: Better EnumUtils. 1135*455610afSAndroid Build Coastguard Workero LANG-528: Mutable classes should implement an appropriately typed Mutable 1136*455610afSAndroid Build Coastguard Worker interface. 1137*455610afSAndroid Build Coastguard Workero LANG-539: Compile commons.lang for CDC 1.1/Foundation 1.1. 1138*455610afSAndroid Build Coastguard Workero LANG-540: Make NumericEntityEscaper immutable. 1139*455610afSAndroid Build Coastguard Workero LANG-541: Replace StringBuffer with StringBuilder. 1140*455610afSAndroid Build Coastguard Workero LANG-548: Use Iterable on API instead of Collection. 1141*455610afSAndroid Build Coastguard Workero LANG-551: Replace Range classes with generic version. 1142*455610afSAndroid Build Coastguard Workero LANG-562: Change Maven groupId. 1143*455610afSAndroid Build Coastguard Workero LANG-563: Change Java package name. 1144*455610afSAndroid Build Coastguard Workero LANG-570: Do the test cases really still require main() and suite() methods? 1145*455610afSAndroid Build Coastguard Workero LANG-579: Add new Validate methods. 1146*455610afSAndroid Build Coastguard Workero LANG-599: ClassUtils.getClass(): Allow Dots as Inner Class Separators. 1147*455610afSAndroid Build Coastguard Workero LANG-605: DefaultExceptionContext overwrites values in recursive situations. 1148*455610afSAndroid Build Coastguard Workero LANG-668: Change ObjectUtils min() & max() functions to use varargs rather 1149*455610afSAndroid Build Coastguard Worker than just two parameters 1150*455610afSAndroid Build Coastguard Workero LANG-681: Push down WordUtils to "text" sub-package. 1151*455610afSAndroid Build Coastguard Workero LANG-711: Add includeantruntime=false to javac targets to quell warnings in 1152*455610afSAndroid Build Coastguard Worker ant 1.8.1 and better (and modest performance gain). 1153*455610afSAndroid Build Coastguard Workero LANG-713: Increase test coverage of FieldUtils read methods and tweak 1154*455610afSAndroid Build Coastguard Worker javadoc. 1155*455610afSAndroid Build Coastguard Workero LANG-718: build.xml Java 1.5+ updates. 1156*455610afSAndroid Build Coastguard Worker 1157*455610afSAndroid Build Coastguard WorkerBUG FIXES 1158*455610afSAndroid Build Coastguard Worker=========== 1159*455610afSAndroid Build Coastguard Worker 1160*455610afSAndroid Build Coastguard Workero LANG-11: Depend on JDK 1.5+. 1161*455610afSAndroid Build Coastguard Workero LANG-302: StrBuilder does not implement clone(). 1162*455610afSAndroid Build Coastguard Workero LANG-339: StringEscapeUtils.escapeHtml() escapes multibyte characters like 1163*455610afSAndroid Build Coastguard Worker Chinese, Japanese, etc. 1164*455610afSAndroid Build Coastguard Workero LANG-369: ExceptionUtils not thread-safe. 1165*455610afSAndroid Build Coastguard Workero LANG-418: Javadoc incorrect for StringUtils.endsWithIgnoreCase. 1166*455610afSAndroid Build Coastguard Workero LANG-428: StringUtils.isAlpha, isAlphanumeric and isNumeric now return false 1167*455610afSAndroid Build Coastguard Worker for "" 1168*455610afSAndroid Build Coastguard Workero LANG-439: StringEscapeUtils.escapeHTML() does not escape chars (0x00-0x20). 1169*455610afSAndroid Build Coastguard Workero LANG-448: Lower Ascii Characters don't get encoded by Entities.java. 1170*455610afSAndroid Build Coastguard Workero LANG-468: JDK 1.5 build/runtime failure on LANG-393 (EqualsBuilder). 1171*455610afSAndroid Build Coastguard Workero LANG-474: Fixes for thread safety. 1172*455610afSAndroid Build Coastguard Workero LANG-478: StopWatch does not resist to system time changes. 1173*455610afSAndroid Build Coastguard Workero LANG-480: StringEscapeUtils.escapeHtml incorrectly converts unicode 1174*455610afSAndroid Build Coastguard Worker characters above U+00FFFF into 2 characters. 1175*455610afSAndroid Build Coastguard Workero LANG-481: Possible race-conditions in hashCode of the range classes. 1176*455610afSAndroid Build Coastguard Workero LANG-564: Improve StrLookup API documentation. 1177*455610afSAndroid Build Coastguard Workero LANG-568: @SuppressWarnings("unchecked") is used too generally. 1178*455610afSAndroid Build Coastguard Workero LANG-571: ArrayUtils.add(T[: array, T element) can create unexpected 1179*455610afSAndroid Build Coastguard Worker ClassCastException. 1180*455610afSAndroid Build Coastguard Workero LANG-585: exception.DefaultExceptionContext.getFormattedExceptionMessage 1181*455610afSAndroid Build Coastguard Worker catches Throwable. 1182*455610afSAndroid Build Coastguard Workero LANG-596: StrSubstitutor should also handle the default properties of a 1183*455610afSAndroid Build Coastguard Worker java.util.Properties class 1184*455610afSAndroid Build Coastguard Workero LANG-600: Javadoc is incorrect for public static int 1185*455610afSAndroid Build Coastguard Worker lastIndexOf(String str, String searchStr). 1186*455610afSAndroid Build Coastguard Workero LANG-602: ContextedRuntimeException no longer an 'unchecked' exception. 1187*455610afSAndroid Build Coastguard Workero LANG-606: EqualsBuilder causes StackOverflowException. 1188*455610afSAndroid Build Coastguard Workero LANG-608: Some StringUtils methods should take an int character instead of 1189*455610afSAndroid Build Coastguard Worker char to use String API features. 1190*455610afSAndroid Build Coastguard Workero LANG-617: StringEscapeUtils.escapeXML() can't process UTF-16 supplementary 1191*455610afSAndroid Build Coastguard Worker characters 1192*455610afSAndroid Build Coastguard Workero LANG-624: SystemUtils.getJavaVersionAsFloat throws 1193*455610afSAndroid Build Coastguard Worker StringIndexOutOfBoundsException on Android runtime/Dalvik VM 1194*455610afSAndroid Build Coastguard Workero LANG-629: Charset may not be threadsafe, because the HashSet is not synch. 1195*455610afSAndroid Build Coastguard Workero LANG-638: NumberUtils createNumber throws a StringIndexOutOfBoundsException 1196*455610afSAndroid Build Coastguard Worker when argument containing "e" and "E" is passed in 1197*455610afSAndroid Build Coastguard Workero LANG-643: Javadoc StringUtils.left() claims to throw on negative len, but 1198*455610afSAndroid Build Coastguard Worker doesn't 1199*455610afSAndroid Build Coastguard Workero LANG-645: FastDateFormat.format() outputs incorrect week of year because 1200*455610afSAndroid Build Coastguard Worker locale isn't respected 1201*455610afSAndroid Build Coastguard Workero LANG-646: StringEscapeUtils.unescapeJava doesn't handle octal escapes and 1202*455610afSAndroid Build Coastguard Worker Unicode with extra u 1203*455610afSAndroid Build Coastguard Workero LANG-656: Example StringUtils.indexOfAnyBut("zzabyycdxx", '') = 0 incorrect 1204*455610afSAndroid Build Coastguard Workero LANG-658: Some entities like Ö are not matched properly against its 1205*455610afSAndroid Build Coastguard Worker ISO8859-1 representation 1206*455610afSAndroid Build Coastguard Workero LANG-659: EntityArrays typo: {"\u2122", "−"}, // minus sign, U+2212 1207*455610afSAndroid Build Coastguard Worker ISOtech 1208*455610afSAndroid Build Coastguard Workero LANG-66: StringEscaper.escapeXml() escapes characters > 0x7f. 1209*455610afSAndroid Build Coastguard Workero LANG-662: org.apache.commons.lang3.math.Fraction does not reduce 1210*455610afSAndroid Build Coastguard Worker (Integer.MIN_VALUE, 2^k) 1211*455610afSAndroid Build Coastguard Workero LANG-663: org.apache.commons.lang3.math.Fraction does not always succeed in 1212*455610afSAndroid Build Coastguard Worker multiplyBy and divideBy 1213*455610afSAndroid Build Coastguard Workero LANG-664: NumberUtils.isNumber(String) is not right when the String is 1214*455610afSAndroid Build Coastguard Worker "1.1L" 1215*455610afSAndroid Build Coastguard Workero LANG-672: Doc bug in DateUtils#ceiling 1216*455610afSAndroid Build Coastguard Workero LANG-677: DateUtils.isSameLocalTime compares using 12 hour clock and not 1217*455610afSAndroid Build Coastguard Worker 24 hour 1218*455610afSAndroid Build Coastguard Workero LANG-685: EqualsBuilder synchronizes on HashCodeBuilder. 1219*455610afSAndroid Build Coastguard Workero LANG-703: StringUtils.join throws NPE when toString returns null for one of 1220*455610afSAndroid Build Coastguard Worker objects in collection 1221*455610afSAndroid Build Coastguard Workero LANG-710: StringIndexOutOfBoundsException when calling unescapeHtml4("") 1222*455610afSAndroid Build Coastguard Workero LANG-714: StringUtils doc/comment spelling fixes. 1223*455610afSAndroid Build Coastguard Workero LANG-715: CharSetUtils.squeeze() speedup. 1224*455610afSAndroid Build Coastguard Workero LANG-716: swapCase and *capitalize speedups. 1225*455610afSAndroid Build Coastguard Worker 1226*455610afSAndroid Build Coastguard Worker 1227*455610afSAndroid Build Coastguard WorkerHistorical list of changes: https://commons.apache.org/lang/changes-report.html 1228*455610afSAndroid Build Coastguard Worker 1229*455610afSAndroid Build Coastguard WorkerFor complete information on Commons Lang, including instructions on how to 1230*455610afSAndroid Build Coastguard Workersubmit bug reports, patches, or suggestions for improvement, see the 1231*455610afSAndroid Build Coastguard WorkerApache Commons Lang website: 1232*455610afSAndroid Build Coastguard Worker 1233*455610afSAndroid Build Coastguard Workerhttps://commons.apache.org/lang/ 1234*455610afSAndroid Build Coastguard Worker 1235*455610afSAndroid Build Coastguard WorkerHave fun! 1236*455610afSAndroid Build Coastguard Worker-Apache Commons Lang team 1237*455610afSAndroid Build Coastguard Worker 1238