In eclipse in one of the classes SonarLint and sonarqube server saying socket is not closed, even I closed it.
What is the best way to close the socket? Could anyone please guide me.
Note: I don't get this error if I don't have out = new ObjectOutputStream(...) code in the same try block.
Use try-with-resources Statement something like: