Skip to content

Releases: phax/ph-commons

ph-commons 9.4.5

29 Jun 11:05
Compare
Choose a tag to compare
  • Added missing methods in IMapBasedDAO
  • Added static syntactic sugar methods in HashCodeGenerator
  • The default ConfigFactory.getDefaultInstance() now also considers system properties config.resource, config.resources, config.file and config.url or the environment variable alternatives CONFIG_RESOURCE, CONFIG_RESOURCES, CONFIG_FILE and CONFIG_URL.
  • Added possibility to reload for resource-based configuration sources
  • Fixed a potential NPE in IJsonObject.getValue (String)
  • Added EqualsHelper.equalsCustom using a BiPredicate
  • Extended IConfig API to receive the IConfigurationSource AND the value to determine the source of the configuration value (backwards incompatible change)
  • Changed the handling of the Consumers in the Config implementation in a backward incompatible way (setters vs. constructor, new parameter type)

ph-commons 9.4.4

26 May 14:13
Compare
Choose a tag to compare
  • Fixed a backwards compatibility issue with JsonObject.add(String,IJson)

ph-commons 9.4.3

26 May 14:08
Compare
Choose a tag to compare
  • Extended tests - thanks to @dliang2000
  • Extended NonBlockingCharArrayWriter with non-throwing write overloads
  • Changed IJsonObject API to favour addJson instead of add because of different nullness
  • Deprecated IHasSchema
  • Added IConfigurationSourceResource.getAllConfigItems
  • URLResource.getAsFile() is now nullable

ph-commons 9.4.2

25 Apr 11:31
Compare
Choose a tag to compare
  • Reduced write locked section in ScopeManager.onGlobalEnd to reduce the possibility of a dead-lock
  • Made ThreadGroup of BasicThreadFactory customizable
  • Updated to BouncyCastle 1.65
  • The IMissingLocaleHandler is now also called in LocaleHelper.getLocale if the input strings are all empty
  • Improved the resolution rules for LocaleCache, LanguageCache and CountryCache on edge cases.
  • Extracted overridable GenericJAXBMarshaller.getJAXBContext
  • Added possibility to cache JAXBContext objects created via classes

ph-commons 9.4.1

30 Mar 09:21
Compare
Choose a tag to compare
  • Added SimpleLock.(read|write)LockedGet(Throwing)
  • The exception handling of URLHelper.urlDecode is now backwards compatible
  • Added URLHelper.urlDecodeOrNull and urlDecodeOrDefault

ph-commons 9.4.0

27 Mar 19:59
Compare
Choose a tag to compare
  • 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 and URLHelper.urlDecode now uses URLCodec
  • Deprecated ICommonsIterable.forEach in favour of findAll
  • 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 with Charset 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

15 Dec 12:42
Compare
Choose a tag to compare
  • Made ClassLoaderHelper.getResource more robust
  • Updated "mime-type-info.xml" list with shared-mime-info-spec 1.15
  • Moved code from AbstractWALDAO down to AbstractDAO for later reuse.
  • Reworked FileIntIDFactory and FileLongIDFactory 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

08 Nov 06:49
Compare
Choose a tag to compare
  • Fixed method name in RFC2616Codec - getMaximumEncodedLength instead of getEncodedLength; added getMaximumDecodedLength
  • 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 and LoggingWriter
  • Added new classes CountingReader and CountingWriter
  • 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 of Cache. 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

26 Sep 19:01
Compare
Choose a tag to compare
  • Extended IJAXBValidator API to have a validate method that takes an outside ErrorList
  • Updated to BouncyCastle 1.63
  • Converted some methods in IMicroQName to default methods
  • Extended HttpHeaderMap API to make quote if necessary customizable

ph-commons 9.3.6

28 Aug 07:03
Compare
Choose a tag to compare
  • Extended the StreamHelper API with an even more flexible copyInputStreamToOutputStream method
  • StreamHelper.getCopy[WithLimit] can now return null 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)