Elements of one collection end up in another collection, but I did not prescribe this [closed]
开发者_高级运维
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 9 hours ago.
Improve this questionInside the method, an object is created in which, with the help of set, values are assigned to the fields, there are 3 such methods, and in each of them a different method is called. The problem is that data from one method call ends up in another method call. It's like they have a global collection where all the data goes.
I expected the method frame to be a method frame, not the whole class... I tried clearing gc after each set, but that didn't help either. The DAO class seems to have its own collection where it writes all the data and doesn't clear it after exiting.
精彩评论