test_class.declarator: wasCalled = new AtomicBoolean()
test_class.modifier: private final
test_class.original_string: private final AtomicBoolean wasCalled = new AtomicBoolean();
test_class.type: AtomicBoolean
test_class.var_name: wasCalled
test_class.declarator: releasableInputStream
test_class.modifier: private
test_class.original_string: private ReleasableInputStream releasableInputStream;
test_class.type: ReleasableInputStream
test_class.var_name: releasableInputStream
test_class.declarator: failedReleasableInputStream
test_class.modifier: private
test_class.original_string: private ReleasableInputStream failedReleasableInputStream;
test_class.type: ReleasableInputStream
test_class.var_name: failedReleasableInputStream
test_class.file: dataprep-backend-service/src/test/java/org/talend/dataprep/io/ReleasableInputStreamTest.java
test_class.identifier: ReleasableInputStreamTest
test_case.body: @Test
      public void read1() throws Exception {
          // When
          releasableInputStream.read(new byte[1024]);
  
          // Then
          assertFalse(wasCalled.get());
      }
test_case.class_method_signature: ReleasableInputStreamTest.read1()
test_case.full_signature: @Test public void read1()
test_case.identifier: read1
test_case.invocations: read assertFalse get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void read1()
focal_class.declarator: LOG = LoggerFactory.getLogger(ReleasableInputStream.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(ReleasableInputStream.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: delegate
focal_class.modifier: private final
focal_class.original_string: private final InputStream delegate;
focal_class.type: InputStream
focal_class.var_name: delegate
focal_class.declarator: onClose
focal_class.modifier: private final
focal_class.original_string: private final Runnable onClose;
focal_class.type: Runnable
focal_class.var_name: onClose
focal_class.declarator: isClosed
focal_class.modifier: private
focal_class.original_string: private boolean isClosed;
focal_class.type: boolean
focal_class.var_name: isClosed
focal_class.file: dataprep-backend-service/src/main/java/org/talend/dataprep/io/ReleasableInputStream.java
focal_class.identifier: ReleasableInputStream
focal_class.class_method_signature: ReleasableInputStream.ReleasableInputStream(InputStream delegate, Runnable onClose)
focal_class.full_signature: public  ReleasableInputStream(InputStream delegate, Runnable onClose)
focal_class.identifier: ReleasableInputStream
focal_class.modifiers: public
focal_class.parameters: (InputStream delegate, Runnable onClose)
focal_class.signature:  ReleasableInputStream(InputStream delegate, Runnable onClose)
focal_class.class_method_signature: ReleasableInputStream.read()
focal_class.full_signature: @Override public int read()
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int read()
focal_class.class_method_signature: ReleasableInputStream.read(byte[] bytes)
focal_class.full_signature: @Override public int read(byte[] bytes)
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] bytes)
focal_class.return: int
focal_class.signature: int read(byte[] bytes)
focal_class.class_method_signature: ReleasableInputStream.read(byte[] bytes, int i, int i1)
focal_class.full_signature: @Override public int read(byte[] bytes, int i, int i1)
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] bytes, int i, int i1)
focal_class.return: int
focal_class.signature: int read(byte[] bytes, int i, int i1)
focal_class.class_method_signature: ReleasableInputStream.skip(long l)
focal_class.full_signature: @Override public long skip(long l)
focal_class.identifier: skip
focal_class.modifiers: @Override public
focal_class.parameters: (long l)
focal_class.return: long
focal_class.signature: long skip(long l)
focal_class.class_method_signature: ReleasableInputStream.available()
focal_class.full_signature: @Override public int available()
focal_class.identifier: available
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int available()
focal_class.class_method_signature: ReleasableInputStream.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: ReleasableInputStream.safeClose()
focal_class.full_signature: private synchronized void safeClose()
focal_class.identifier: safeClose
focal_class.modifiers: private synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void safeClose()
focal_class.class_method_signature: ReleasableInputStream.mark(int i)
focal_class.full_signature: @Override public void mark(int i)
focal_class.identifier: mark
focal_class.modifiers: @Override public
focal_class.parameters: (int i)
focal_class.return: void
focal_class.signature: void mark(int i)
focal_class.class_method_signature: ReleasableInputStream.reset()
focal_class.full_signature: @Override public void reset()
focal_class.identifier: reset
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reset()
focal_class.class_method_signature: ReleasableInputStream.markSupported()
focal_class.full_signature: @Override public boolean markSupported()
focal_class.identifier: markSupported
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean markSupported()
focal_class.superclass: extends InputStream
focal_method.body: @Override
      public int read() throws IOException {
          try {
              int read = delegate.read();
              if (read < 0) {
                  safeClose();
              }
              return read;
          } catch (IOException e) {
              safeClose();
              throw e;
          }
      }
focal_method.class_method_signature: ReleasableInputStream.read()
focal_method.full_signature: @Override public int read()
focal_method.identifier: read
focal_method.invocations: read safeClose safeClose
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int read()