Enhanced documentation for Java classes

This commit is contained in:
Valentyn Kolesnikov
2024-02-02 09:07:48 +02:00
committed by Valentyn Kolesnikov
parent 010e83b925
commit 99c84fdf3a
9 changed files with 68 additions and 1 deletions

View File

@@ -525,6 +525,11 @@ public class JSONTokener {
this.line + "]";
}
/**
* Closes the underlying reader, releasing any resources associated with it.
*
* @throws IOException If an I/O error occurs while closing the reader.
*/
public void close() throws IOException {
if(reader!=null){
reader.close();