[
https://issues.apache.org/jira/browse/SCM-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963386#comment-17963386
]
ASF GitHub Bot commented on SCM-856:
------------------------------------
jira-importer commented on issue #1079:
URL: https://github.com/apache/maven-scm/issues/1079#issuecomment-2964644446
**[songwanging](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=songwang)**
commented
Thanks [Niclas
Hedhman](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=niclas).
You are right, I just tested.
> use objects as String without calling the toString method
> ---------------------------------------------------------
>
> Key: SCM-856
> URL: https://issues.apache.org/jira/browse/SCM-856
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Bug
> Components: maven-plugin
> Affects Versions: 1.9.5
> Reporter: songwanging
> Priority: Minor
>
> 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
> {code:java}
> this.exportDirectory = new File( this.getBasedir(), "target/export" );
> ...
> this.getLog().info( "Removing " + this.exportDirectory );
> ...
> throw new MojoExecutionException( "Cannot create " + this.exportDirectory );
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)