Uploaded image for project: 'Spring Batch'
  1. Spring Batch
  2. BATCH-2749

Property default value differs from document

    Details

      Description

      The default for the StaxEventItemReader's strict property API document is false, but the default value is set to true.

      /**
        * In strict mode the reader will throw an exception on
        * {@link #open(org.springframework.batch.item.ExecutionContext)} if the input resource does not exist.
        * @param strict false by default
        */
       public void setStrict(boolean strict) {
            this.strict = strict;
       }
      
        private boolean strict = true;
      

      Default value is true or false Which is correct?

        Attachments

          Activity

            People

            • Assignee:
              mbenhassine Mahmoud Ben Hassine
              Reporter:
              btnoharadik btnoharadik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: