Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5274

Improve DocumentBuilderFactory in DiffRepository test class by using secure features

    XMLWordPrintableJSON

Details

    Description

      https://github.com/apache/calcite/pull/2892#discussion_r964468020

      DocumentBuilderFactory use in DiffRepository needs changes like those in https://github.com/apache/calcite/pull/2892

      There is also an issue with `this.doc = docBuilder.parse(refFile.openStream());` - the `refFile.openStream()` gives an InputStream that should be closed - try with resources pattern would make sense.

       

      Attachments

        Issue Links

          Activity

            People

              rubenql Ruben Q L
              pj.fanning PJ Fanning
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m