Releases: phax/ph-commons
Releases · phax/ph-commons
v12.1.1
- Updated to BouncyCastle 1.83
- Added methods
CertificateHelper.getPrincipalTypeValueOrNull - Added additional
CertificateHelper.getPrincipalTypeValueoverload - Added methods
StringHex.getHexEncodedByteArray - Deprecated the usage of XML 1.1 in
EXMLVersionandEXMLSerializeVersion- see w3ctag/obsoletion#6 for details - Added
IMissingLocaleHandler.NULL_INSTANCEas a constant - Added new class
CertificateDecodeHelperto help decode certificates more safely.
Full Changelog: ph-commons-parent-pom-12.1.0...ph-commons-parent-pom-12.1.1
ph-commons 12.1.0
- Changed from Jakarta Nullable annotations to JSpecify. See #54 - thx @vlsi. Backward incompatible change.
- Extracted submodule
ph-csvcontaining the CSV handling. This also changed the package of the classes fromcom.helger.commons.csvtocom.helger.csv. Backward incompatible change. SafeXMLStreamWriternow correctly honoursXMLWriterSettings.SerializeXMLDeclarationsetting
Full Changelog: ph-commons-parent-pom-12.0.4...ph-commons-parent-pom-12.1.0
ph-commons 12.0.4
- Reverted back from
Map.entrytonew MapEntry<>due tonull-issues
Full Changelog: ph-commons-parent-pom-12.0.3...ph-commons-parent-pom-12.0.4
ph-commons 12.0.3
- Updated to JAXB 4.0.6
- Added
JDK_25to enumEJavaVersion - Fixed bug in
PDTDisplayHelper.getPeriodTextin case where same day but earlier time is used. See phax/phoss-smp#383
Full Changelog: ph-commons-parent-pom-12.0.2...ph-commons-parent-pom-12.0.3
ph-commons 12.0.2
- Updated to BouncyCastle 1.82
- Made method
BigHelper.equalValuesnull-safe - Added overloads of
GenericReflection.newInstancewith a custom Exception consumer
Full Changelog: ph-commons-parent-pom-12.0.1...ph-commons-parent-pom-12.0.2
ph-commons 12.0.1
- Added overloads
SimpleUrl.add (String, int|long) - Added possibility to customize
GenericJAXBMarshaller.xmlWriterSettings
Full Changelog: ph-commons-parent-pom-12.0.0...ph-commons-parent-pom-12.0.1
ph-commons 12.0.0
- The baseline is now Java 17 - older Java versions are no longer supported
Changes compared to RC1:
- Added new annotation
UsedInGeneratedCode - Added new methods to
JAXBHelperto handle JAXBxs:anymappings - Renamed all methods in class
TestHelperso that it uses an uppercaseCinhashCodeorHashCode - Renamed class
URLCodectoRFC3986Codec - Renamed interface
IPrimitiveConverterTotoITypeConverterTo - Renamed interface
IHasPrimitiveConvertertoIHasTypeConverterToand renamed method togetTypeConverterTo() - Added new trait interface
IGenericMapAdderTrait - Renamed
ICommonsMap.addAlltoputAllIfNotNull - Added new class
TypeConverterToAny - Renamed class
PrimitiveConvererToIJsontoTypeConverterToIJson - Renamed package
com.helger.base.traitstocom.helger.base.trait - Renamed
ICommonsIterable.getCountmethods tosize - Interface
ICommonsIterablealready implementsIHasSize - Extracted class
URLCleanserand movedURLHelpertoph-base - Moved class
URNHelpertoph-base - Added new class
URLBuilder
Full Changelog: ph-commons-parent-pom-11.2.6...ph-commons-parent-pom-12.0.0
ph-commons 12.0.0 RC1
- The baseline is now Java 17 - older Java versions are no longer supported
- Uses parent-pom v3.0.0
- Completely restructured the libraries, so that smaller, functional JARs are created instead of one big
ph-commonsJAR- Added new submodule
ph-annotationsincluding the contents of JSR305- Only
NonnullandNullableare taken from thejakarta.annotationpackage instead
- Only
- Extracted new submodules
ph-base,ph-unittest-support,ph-typeconvert,ph-statistics,ph-cache,ph-io,ph-unittest-support-ext,ph-text,ph-diagnostics,ph-config-json,ph-mimeandph-http - Removed submodule
ph-less-commons- the remainders ended up inph-commons - Integrated
ph-web/ph-httpmodule content into this repository - If you are using JSON for configuration, make sure to include the new submodule
ph-config-jsonas well
- Added new submodule
- Movings
- Moved all annotations from package
com.helger.commons.annotationto submoduleph-annotations - Moved basically all classes back and forth between the modules - re-organizing your imports should do 95% of the work
- The
ArrayHelper.EMPTY_*constants were moved to classCGlobal - Moved constant
INITIAL_HASHCODEfromHashCodeGeneratortoHashCodeCalculator - Moved methods
CollectionHelper.new*toCollectionHelperExt.create*
- Moved all annotations from package
- Removals
- Removed classes
SecurityManagerHelper,ReflectionSecurityManager,IPrivilegedActionandAccessControllerHelperbecause the Java SecurityManager is deprecated for removal - Removed deprecated package
com.helger.jaxb.builder - Removed all methods marked as deprecated for removal
- Removed class
IJsonParserCustomizeCallback - Removed method
ABNF.isHexDigitCaseInsensitivein favour ofisHexDigit(was misreading the RFC)
- Removed classes
- Renamings
- Renamed class
SingleError.AbstractBuildertoAbstractSingleErrorBuilder - Renamed class
SingleError.BuildertoSingleErrorBuilder - Renamed class
Option.BuildertoOptionBuilder - Renamed class
KeyStoreAndKeyDescriptor.KeyStoreAndKeyDescriptorBuildertoKeyStoreAndKeyDescriptorBuilder - Renamed class
KeyStoreDescriptor.KeyStoreDescriptorBuildertoKeyStoreDescriptorBuilder - Renamed class
TrustStoreDescriptor.TrustStoreDescriptorBuildertoTrustStoreDescriptorBuilder - Renamed class
BasicThreadFactory.BuildertoBasicThreadFactoryBuilder - Renamed class
JsonReader.BuildertoJsonReader.JsonBuilder - Renamed methods
IMicroNode.append*toadd* - Renamed class
ABNFtoRFC5234Helper - Renamed class
ByteBuffersInputStreamtoMultiByteBufferInputStream - Renamed class
CommonsTestHelpertoTestHelper
- Renamed class
- Additions
- Added classes
(I)JsonParserSettings - Added new class
CacheBuilder - Added new constants
CMimeType.APPLICATION_EDIFACTCMimeType.APPLICATION_EDI_X12
- Via
FileHelper.setWarnOnIssuesthe warnings can be enabled or disabled - Added new interface
IWriteToWriter - Extended
IAppendableandHashCodeCalculatorwith overloads that take arrays with offset and length
- Added classes
- Incompatible changes
EqualsHelperandHashCodeGeneratorno longer work based on the SPI based registration. Instead the non-default cases need to be handled manually- By default the global debug mode (
GlobalDebug) is disabled - Extended the
JsonReaderbuilder to include all the settings directly - Extracted all collection related methods from
EqualsHelpertoCollectionEqualsHelper - Extracted functionality from
StringHelperinto new classes:StringHex,StringImplode,StringRemove,StringReplace - Extracted the
BigDecimalandBigIntegerfunctionality fromMathHelpertoBigHelper - Extracted functionality from
CollectionHelperinto new classes:CollectionFind,CollectionSort - The following SPI interfaces were changed:
com.helger.commons.thirdparty.IThirdPartyModuleProviderSPI->com.helger.base.thirdparty.IThirdPartyModuleProviderSPI
- The methods
IJsonObject.addJsonwhere renamed toaddonly
- Deprecations
StringHelper.hasTextwas deprecated in favour ofStringHelper.isNotEmptyStringHelper.hasNoTextwas deprecated in favour ofStringHelper.isEmpty
ph-commons 11.2.6
- Updated to BouncyCastle 1.81
What's Changed
- Update Bouncy Castle to 1.81 by @beth-soptim in #47
Full Changelog: ph-commons-parent-pom-11.2.5...ph-commons-parent-pom-11.2.6
ph-commons 11.2.5
- Fixed a bug in
ConfigWithFallback.getAsCharArrayOrFallbackso that fallbacks were performed in the wrong scenario
Full Changelog: ph-commons-parent-pom-11.2.4...ph-commons-parent-pom-11.2.5