Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-856

use objects as String without calling the toString method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 1.9.5
    • Fix Version/s: None
    • Component/s: maven-plugin
    • Labels:
      None

      Description

      Our tool DeepTect has detected two buggy code snippets, in which the code prints out an object without calling the toString method:

      Path: maven-scm/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/ExportMojo.java

      this.exportDirectory = new File( this.getBasedir(), "target/export" );
      ...
      this.getLog().info( "Removing " + this.exportDirectory );
      ...
       throw new MojoExecutionException( "Cannot create " + this.exportDirectory );
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              songwang songwanging
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: