Releases: phax/ph-commons
Releases · phax/ph-commons
ph-commons 9.4.5
- Added missing methods in
IMapBasedDAO
- Added static syntactic sugar methods in
HashCodeGenerator
- The default
ConfigFactory.getDefaultInstance()
now also considers system propertiesconfig.resource
,config.resources
,config.file
andconfig.url
or the environment variable alternativesCONFIG_RESOURCE
,CONFIG_RESOURCES
,CONFIG_FILE
andCONFIG_URL
. - Added possibility to
reload
for resource-based configuration sources - Fixed a potential NPE in
IJsonObject.getValue (String)
- Added
EqualsHelper.equalsCustom
using aBiPredicate
- Extended
IConfig
API to receive theIConfigurationSource
AND the value to determine the source of the configuration value (backwards incompatible change) - Changed the handling of the
Consumers
in theConfig
implementation in a backward incompatible way (setters vs. constructor, new parameter type)
ph-commons 9.4.4
- Fixed a backwards compatibility issue with
JsonObject.add(String,IJson)
ph-commons 9.4.3
- Extended tests - thanks to @dliang2000
- Extended
NonBlockingCharArrayWriter
with non-throwingwrite
overloads - Changed
IJsonObject
API to favouraddJson
instead ofadd
because of different nullness - Deprecated
IHasSchema
- Added
IConfigurationSourceResource.getAllConfigItems
URLResource.getAsFile()
is now nullable
ph-commons 9.4.2
- Reduced write locked section in
ScopeManager.onGlobalEnd
to reduce the possibility of a dead-lock - Made
ThreadGroup
ofBasicThreadFactory
customizable - Updated to BouncyCastle 1.65
- The
IMissingLocaleHandler
is now also called inLocaleHelper.getLocale
if the input strings are all empty - Improved the resolution rules for
LocaleCache
,LanguageCache
andCountryCache
on edge cases. - Extracted overridable
GenericJAXBMarshaller.getJAXBContext
- Added possibility to cache
JAXBContext
objects created via classes
ph-commons 9.4.1
- Added
SimpleLock.(read|write)LockedGet(Throwing)
- The exception handling of
URLHelper.urlDecode
is now backwards compatible - Added
URLHelper.urlDecodeOrNull
andurlDecodeOrDefault
ph-commons 9.4.0
- Added support for additional HTTP status codes (103, 308, 422, 425, 426, 428, 429, 431, 451, 506, 507, 508 and 511)
JAXBContextCache
has now a method to switch silent mode on or off- Added new constant
GlobalDebug.DEFAULT_SILENT_MODE
for the default silent mode setting - Added new method
CertificateHelper.convertByteArrayToCertficateOrNull
- Added new class
PDTDisplayHelper
- Added new method
CertificateHelper.convertStringToPrivateKey
- Extended the
JsonWriter
API to also write to an OutputStream - Added new methods
EmailAddress.createOnDemand
URLHelper.urlEncode
andURLHelper.urlDecode
now usesURLCodec
- Deprecated
ICommonsIterable.forEach
in favour offindAll
- Fixed a bug in the cloning of
MapBasedNamespaceContext
(see issue #17) - Added
ArrayHelper.EMPTY_CLASS_ARRAY
- Added new predefined licenses (GPL20CP, EPL20 and EDL10)
- Updated license URLs to https where applicable
- New parent POM 1.11.1 updates SLF4J to 1.7.30
PropertiesHelper
got new APIs withCharset
to read properties with character sets other than ISO-8859-1- Started new subproject
ph-config
with a more intelligent configuration handling - Added JDK 14 as a known version
- Added silent mode to
TypeConverter
,CountryCache
,LanguageCache
,ObjectPool
,LocaleCache
- Added new
JAXBDocumentType
constructor for more flexible use - Changed names of
SimpleReadWriteLock.(read|write)Locked
with primitive suppliers - Changed names of
SimpleLock.locked
with primitive suppliers - Added
SimpleReadWriteLock.(read|write)LockedGet(Throwing)
ph-commons 9.3.9
- Made
ClassLoaderHelper.getResource
more robust - Updated "mime-type-info.xml" list with shared-mime-info-spec 1.15
- Moved code from
AbstractWALDAO
down toAbstractDAO
for later reuse. - Reworked
FileIntIDFactory
andFileLongIDFactory
to be more error resistant. - Added support for the "jrt:" protocol
- Added support for JDK 13
- Extended
LocaleCache
with an API to specify what happens if a Locale is not present
ph-commons 9.3.8
- Fixed method name in
RFC2616Codec
-getMaximumEncodedLength
instead ofgetEncodedLength
; addedgetMaximumDecodedLength
- Avoid double quoting in
HttpHeaderMap.getUnifiedValue
if the value already seems to be quoted - Updated to BouncyCastle 1.64
- Added new interface
IBooleanConsumer
- Added new method
CertificateHelper.isCertificateValidPerNow
- Improved performance of
JsonParser
when position tracking is disabled - Added possibility to read multiple JSON objects from a single source
- Added new classes
LoggingReader
andLoggingWriter
- Added new classes
CountingReader
andCountingWriter
JsonParser.parse
now returns an enum indicating EOI or not (incompatible change)- Improved performance of JsonParser by reusing buffers internally
- Added new class
MappedCache
that is a generalization ofCache
. It adds a mapper to determine the cache key. - New parent POM 1.11.0 updates SLF4J to 1.7.29
ph-commons 9.3.7
- Extended
IJAXBValidator
API to have avalidate
method that takes an outsideErrorList
- Updated to BouncyCastle 1.63
- Converted some methods in
IMicroQName
to default methods - Extended
HttpHeaderMap
API to makequote if necessary
customizable
ph-commons 9.3.6
- Extended the
StreamHelper
API with an even more flexiblecopyInputStreamToOutputStream
method StreamHelper.getCopy[WithLimit]
can now returnnull
if copying fails- Added new classes around
com.helger.commons.codec.ICharArrayCodec
- Added new class
RFC2616Codec
to correctly encode and decode HTTP header values - Added new option in
HttpHeaderMap.getUnifiedValue
to automatically quote the values if necessary - Added new overloads in
StackTraceHelper
to use a custom line separator - Added new methods
CommonsAssert.assertNotEquals(boolean,boolean)