Tag

ObjectCopy

0 views collected around this technical thread.

JD Tech
JD Tech
Jul 1, 2024 · Backend Development

Resolving NullPointerException in BeanCopier Caused by Lombok @Accessors(chain=true)

This article analyzes a NullPointerException triggered by Lombok's @Accessors(chain=true) when using BeanCopier, explains how the altered setter return type prevents JDK Introspector from recognizing write methods, and provides two practical solutions to fix the issue.

BeanCopierIntrospectorLombok
0 likes · 9 min read
Resolving NullPointerException in BeanCopier Caused by Lombok @Accessors(chain=true)
Code Ape Tech Column
Code Ape Tech Column
Feb 13, 2023 · Backend Development

Performance Comparison and Source Analysis of Java Bean Copy Utilities

This article analyzes the performance and implementation differences of various Java object‑copy utilities—including Apache BeanUtils, PropertyUtils, Spring BeanCopier, and Spring BeanUtils—by examining source code, benchmarking copy operations, and recommending alternatives to avoid the inefficiencies of Apache BeanUtils.

ApacheBeanUtilsObjectCopy
0 likes · 11 min read
Performance Comparison and Source Analysis of Java Bean Copy Utilities
Top Architect
Top Architect
Jan 17, 2021 · Backend Development

Object Copying in Java: Comparing Apache BeanUtils and Spring BeanUtils

This article explains the concepts of shallow and deep copying in Java, demonstrates how to use Apache BeanUtils and Spring BeanUtils for property copying between objects, compares their implementations and performance, and recommends alternative tools for efficient object mapping.

ApacheBeanUtilsDeepCopy
0 likes · 9 min read
Object Copying in Java: Comparing Apache BeanUtils and Spring BeanUtils