src/main/java/org/apache/sling/scripting/core/impl/helper/OnDemandWriter.java [90:102]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void close() throws IOException {
        synchronized (lock) {
            // flush and close the delegatee if existing, otherwise ignore
            Writer writer = delegatee;
            if (writer != null) {
                writer.flush();
                writer.close();

                // drop the delegatee now
                delegatee = null;
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/sling/scripting/core/impl/helper/OnDemandWriterJakarta.java [90:102]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void close() throws IOException {
        synchronized (lock) {
            // flush and close the delegatee if existing, otherwise ignore
            Writer writer = delegatee;
            if (writer != null) {
                writer.flush();
                writer.close();

                // drop the delegatee now
                delegatee = null;
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



