'lnr' is never closed.. Help!

Discussion in 'Plugin Development' started by zPetersenz, May 30, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    zPetersenz

    Hello evyone.

    Right now im coding a Broadcast plugin, and i got this error saying:
    'br' is never closed
    &
    'lnr' is never closed

    I hope someone know how to fix this :rolleyes:

    This is my code..
    [​IMG]
     
  2. Offline

    gjossep

    First off, thats not a error, thats a warning. Theres a big diffrence. You should look into Java coding with files, as your not closing your streams. Make sure you do as it keeps the stream open on the computer while its not needed.
     
  3. Offline

    Rocoty

    Do a try-finally where you close the resources in the finally clause. Or make it a try-with-resources block.
     
Thread Status:
Not open for further replies.

Share This Page