You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rebuild the mapstruct-protobuf3, run the test,report an error java.lang.UnsupportedOperationException at java.util.Collections$UnmodifiableCollection.addAll(Collections.java:1065) at org.mapstruct.example.mapper.UserMapperImpl.map(UserMapperImpl.java:34) at org.mapstruct.example.ProtobufTest.test(ProtobufTest.java:33),
Partially generated code
if ( userDTO.getMainDepartmentsList() != null ) {
List<UserProtos.DepartmentDTO> list = departmentListToDepartmentDTOList( user.getMainDepartments() );
if ( list != null ) {
userDTO.getMainDepartmentsList().addAll( list );
}
}
if ( userDTO.getDepartmentsList() != null ) {
List<UserProtos.DepartmentDTO> list1 = departmentListToDepartmentDTOList( user.getDepartments() );
if ( list1 != null ) {
userDTO.getDepartmentsList().addAll( list1 );
}
recover mapstruct-protobuf3/usage/pom.xml plugin config, run test success.
Is there any way to solve this problem?
The text was updated successfully, but these errors were encountered:
modify mapstruct-protobuf3/usage/pom.xml plugin config,
rebuild the mapstruct-protobuf3, run the test,report an error
java.lang.UnsupportedOperationException at java.util.Collections$UnmodifiableCollection.addAll(Collections.java:1065) at org.mapstruct.example.mapper.UserMapperImpl.map(UserMapperImpl.java:34) at org.mapstruct.example.ProtobufTest.test(ProtobufTest.java:33),
Partially generated code
recover mapstruct-protobuf3/usage/pom.xml plugin config, run test success.
Is there any way to solve this problem?
The text was updated successfully, but these errors were encountered: