Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.18
    • 1.19
    • dumpers
    • None

    Description

      In class org.apache.nutch.tools.FileDumper
      In method org.apache.nutch.tools.FileDumper.dump(File, File, String[], boolean, boolean, boolean)
      Called method java.io.File.mkdirs()
      At FileDumper.java:[line 237]
      Exceptional return value of java.io.File.mkdirs() ignored in org.apache.nutch.tools.FileDumper.dump(File, File, String[], boolean, boolean, boolean)

      This method returns a value that is not checked. The return value should be checked since it can indicate an unusual or unexpected function execution. For example, the File.delete() method returns false if the file could not be successfully deleted (rather than throwing an Exception). If you don't check the result, you won't notice if the method invocation signals unexpected behavior by returning an atypical return value.

      Attachments

        Issue Links

          Activity

            People

              lewismc Lewis John McGibbney
              lewismc Lewis John McGibbney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: