持续专业进修结果

以下文档包含 PMD 的 CPD 5.6.1 的结果。

重复

文件 线
org/apache/maven/plugins/help/ActiveProfilesMojo.java 68
org/apache/maven/plugins/help/SystemMojo.java 93
        if ( output != null )
        {
            String formattedDateTime = DateFormatUtils.ISO_8601_EXTENDED_DATETIME_TIME_ZONE_FORMAT
                .format( System.currentTimeMillis() );
            StringBuilder sb = new StringBuilder();
            sb.append( "Created by: " ).append( getClass().getName() ).append( LS );
            sb.append( "Created on: " ).append( formattedDateTime ).append( LS ).append( LS );
            sb.append( message.toString() );

            try
            {
                writeFile( output, sb );
            }
            catch ( IOException e )
            {
                throw new MojoExecutionException( "Cannot write active profiles to output: " + output, e );