我在旧项目中的类遇到问题,我不知道如何重构这部分,我从 sonarcube 收到以下错误消息:
Use an immutable collection or reduce the accessibility of the field(s) 'CreateContactMapping'.Why is this an issue?
Run Code Online (Sandbox Code Playgroud)
这是一段代码
Use an immutable collection or reduce the accessibility of the field(s) 'CreateContactMapping'.Why is this an issue?
Run Code Online (Sandbox Code Playgroud)
如何最好地解决这个问题?