Release of commons Lang 2.5

Source: Internet
Author: User

Commons Lang is the most frequently used package in the Apache commons series. It is now released in version 2.5 and does not support Java 1.2. It also has some enhancements and fixed some bugs.

 

These are the release notes and advice for upgrading commons-lang from version 2.4 to version 2.5.

 

Introduction:

This document contains the release notes for the 2.5 version of Apache commons Lang.
Commons Lang is a set of utility functions and reusable components that shoshould be of use in any Java environment.

Lang 2.5 no longer attempts to target the Java 1.2 environment and now targets Java 1.3.

Improvements 2.5
==============================

* [LANG-583]-arrayutils-add isnotempty () Methods
* [LANG-534]-arrayutils-add nulltoempty () Methods
* [LANG-454]-charrange-provide an iterator that lets you walk the chars in the range
* [LANG-514]-charrange-add more readable static builder Methods
* []-Classutils-New isassignable () methods with autoboxing
* [LANG-535]-classutils-Add support to getmediaclassname and getpackagename for Arrays
* [LANG-434]-dateutils-add ceiling () method
* [LANG-486]-dateutils-add parsedatestrictly () method
* [LANG-466]-equalsbuilder-add reset () method
* [LANG-461]-numberutils-add tobyte () and toshort () Methods
* [LANG-522]-mutable numbers-add string Constructors
* []-Mutableboolean-add toboolean (), istrue () and isfalse () Methods
* [LANG-422]-strbuilder-add appendseparator () methods with an alternative default separator if the strbuilder is currently empty
* [The LANG-555]-systemutils-add is_ OS _windows_7 constant
* [LANG-554]-systemutils-add is_java_00007 constant for JDK 1.7
* [LANG-405]-stringutils-add abbreviatemiddle () method
* [LANG-569]-stringutils-add indexofignorecase () and lastindexofignorecase () Methods
* [LANG-471]-stringutils-add isalluppercase () and isalllowercase () Methods
* [LANG-469]-stringutils-add lastordinalindexof () method to complement the existing ordinalindexof () method
* [LANG-438]-stringutils-add repeat () method
* [LANG-445]-stringutils-add startswithany () method
* [LANG-430]-stringutils-add uppercase (string, locale) and lowercase (string, locale) Methods
* [LANG-416]-New reflection package containing constructorutils, fieldutils, memberutils and methodutils

Bugs fixes in 2.5
======================

* [LANG-494]-charset-synchronizing the common map so that getinstance doesn't miss a put from a subclass in another thread
* [LANG-500]-classutils-improving performance of getallinterfaces
* [LANG-587]-classutils-toclass () throws nullpointerexception on Null array element
* [LANG-530]-dateutils-fix parsedate () cannot parse iso8601 Dates Produced by fastdateformat
* [LANG-440]-dateutils-round () doesn't work correct for calendar. am_pm
* [LANG-443]-dateutils-improve tests
* [LANG-204]-entities-multithreaded Initialization
* [LANG-506]-entities-missing final modifiers; thread-safety issues
* [LANG-76]-enumutils-getenum () doesn't work well in 1.5 +
* [LANG-584]-exceptionutils-use immutable Lock target
* [LANG-477]-extendedmessageformat-outofmemory with a pattern containing single quotes
* [LANG-538]-fastdateformat-call gettime () on a calendar to ensure timezone is in the right state
* [LANG-547]-fastdateformat-Remove unused Field
* [LANG-511]-localeutils-initialization of available locales can be deferred
* [LANG-457]-numberutils-createnumber () thows A stringindexoutofboundsexception for "L"
* [LANG-521]-numberutils-isnumber (string) and createnumber (string) both modified to support '2 .'
* [LANG-432]-stringutils-improve handling of case-insensitive strings
* [LANG-552]-stringutils-replaceeach () no longer NPEs when null appears in the last string []
* [LANG-460]-stringutils-correct javadocs for startswith () and startswithignorecase ()
* [LANG-421]-stringescapeutils-escapejava () escapes '/'characters
* [LANG-450]-stringescapeutils-change escapejavastylestring () to throw unhandledexception instead swallowing ioexception
* [LANG-419]-wordutils-fix stringindexoutofboundsexception when lower is greater than the string length
* [LANG-523]-strbuilder-performance improvement by doubling the size of the string in ensurecapacity
* [LANG-575]-compare, equals and hashcode builders-use arrayutils to avoid creating a temporary list
* [LANG-467]-kerbersbuilder-removing the special handling of bigdecimal (LANG-393) to use compareto
* [LANG-574]-hashcodebuilder-Performance Improvement: Check for isarray to short-circuit the 9 instanceof checks
* [LANG-520]-hashcodebuilder-changing the hashcode () method to return tohashcode ()
* [LANG-459]-hashcodebuilder-reflectionhashcode () can generate incorrect hashcodes
* [LANG-586]-hashcodebuilder and tostringstyle-Use of threadlocal causes memory leaks in container Environments
* [LANG-487]-tostringbuilder-make default Style Thread-safe
* [LANG-472]-randomutils-nextlong () always produces even numbers
* [LANG-592]-randomutils tests are failing frequently

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.