Unreleased Resource: Streams
- by Vibhas
Hi freinds i am getting a warning in the fortify report for the following code:
if (null != serverSocket) {
OutputStream socketOutPutStream = serverSocket
.getOutputStream();
if (null != socketOutPutStream) {
oos = new ObjectOutputStream(socketOutPutStream);
if (null != oos) {
int c;
log.info("i am in…