[windup-dev] Opening two streams for .class

Ondrej Zizka ozizka at redhat.com
Mon Oct 19 20:48:18 EDT 2015


ClassFilePreDecompilationScan:

             try (InputStream is = fileModel.asInputStream())
             {
                 addClassFileMetadata(event, context, fileModel);

This is opening the stream twice; shouldn't it be rather this?

             addClassFileMetadata(event, context, fileModel);
             try (InputStream is = fileModel.asInputStream())
             {

Ondra


More information about the windup-dev mailing list