-
Deprecated Interfaces
-
Deprecated FieldsFieldDescriptionThis creates a serious security vulnerability. Use proper certificate validation.This creates a serious security vulnerability. Use proper hostname verification.
-
Deprecated MethodsMethodDescriptionUse
CaseInsensitiveSet.remove(Object)insteadUseCaseInsensitiveSet.removeAll(Collection)insteadUseCaseInsensitiveSet.addAll(Collection)insteadUseCaseInsensitiveSet.add(Object)insteadUseClassUtilities.newInstance(Converter, Class, Object)instead.UseConverter.addConversion(Convert, Class, Class)instead. This method will be removed in a future version as it is less safe and does not handle all type variations correctly.UseConverter.isContainerConversionSupported(Class, Class)instead. This method will be removed in a future version.replaced by convert(localDateTime, long.class)replaced by convert(localDate, long.class)replaced by convert(ZonedDateTime, long.class)UseEncryptionUtilities.deriveKey(String, byte[], int)for stronger securityAs of 3.0.0, replaced byReflectionUtils.getAllDeclaredFields(Class). Note that getAllDeclaredFields() includes transient fields and synthetic fields (like "this$"). If you need the old behavior, filter the additional fields:
This method will be removed in 3.0.0 or soon after.// Combine DEFAULT_FIELD_FILTER with additional criteria for legacy behavior Predicate<Field> legacyFilter = field -> DEFAULT_FIELD_FILTER.test(field) && !Modifier.isTransient(field.getModifiers()) && !field.isSynthetic();As of 3.0.0, replaced byReflectionUtils.getAllDeclaredFieldsMap(Class). Note that getAllDeclaredFieldsMap() includes transient fields and synthetic fields (like "this$"). If you need the old behavior, filter the additional fields:
This method may be removed in 3.0.0.// Get fields excluding transient and synthetic fields List<Field> fields = getAllDeclaredFieldsMap(MyClass.class, field -> DEFAULT_FIELD_FILTER.test(field) && !Modifier.isTransient(field.getModifiers()) && !field.isSynthetic() );As of 3.0.0, replaced byReflectionUtils.getAllDeclaredFields(Class). Note that getAllDeclaredFields() includes transient fields and synthetic fields (like "this$"). If you need the old behavior, filter the additional fields:
This method may be removed in 3.0.0.// Get fields excluding transient and synthetic fields Map<String, Field> fields = getAllDeclaredFields(MyClass.class, field -> DEFAULT_FIELD_FILTER.test(field) && !Modifier.isTransient(field.getModifiers()) && !field.isSynthetic() );UseTrackingMap.replaceContents(Map)instead. This method merely replaces the contents of the wrapped map and does not change the underlying instance.UseTraverser.traverse(Object, Set, Consumer)instead.UseTraverser.traverse(Object, Set, Consumer)instead.
Traverser.traverse(Object, Set, Consumer)instead.