GitSCMFile::content() use stream directly

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      GitSCMFile::content() creates a ByteArrayInputStream with the content of the file requested instead of returning the stream provided by jgit.

      Basically base class SCMFile already has a method contentAsBytes() which would convert the stream into a byte[] if really required.

      So in this case jgit itself might hold the files content already as byte[], GitSCMFile::content creates a new copy and SCMFile::contentAsBytes creates the next instance.

            Assignee:
            Dietmar Scheidl
            Reporter:
            Dietmar Scheidl
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: