This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To reproduce run: | |
git clone https://gitbox.apache.org/repos/asf/commons-parent | |
cd commons-parent | |
mvn | |
[INFO] Generating "Rat Report" report --- apache-rat-plugin:0.13:rat | |
[WARNING] An issue has occurred with apache-rat-plugin:0.13:rat report, skipping LinkageError org.apache.rat.mp.RatReportMojo.generate(Lorg/apache/maven/doxia/sink/Sink;Ljava/util/Locale;)V, please report an issue to Maven dev team. | |
java.lang.AbstractMethodError: org.apache.rat.mp.RatReportMojo.generate(Lorg/apache/maven/doxia/sink/Sink;Ljava/util/Locale;)V | |
at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument (ReportDocumentRenderer.java:235) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>mvn clean install | |
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Build Order: | |
[INFO] | |
[INFO] juneau [pom] | |
[INFO] juneau/core [pom] | |
[INFO] juneau/core/marshall [bundle] | |
[INFO] juneau/core/marshall-rdf [bundle] | |
[INFO] juneau/core/dto [bundle] |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0SECTION TITLE subcomponent dump routine | |
NULL =============================== | |
1TICHARSET 437 | |
1TISIGINFO Dump Event "gpf" (00002000) received | |
1TIDATETIME Date: 2017/07/20 at 13:30:48:849 | |
1TINANOTIME System nanotime: 606763297614897 | |
1TIFILENAME Javacore filename: C:\temp\rc\test-log4j-scala\javacore.20170720.133045.13856.0004.txt | |
1TIREQFLAGS Request Flags: 0x81 (exclusive+preempt) | |
1TIPREPSTATE Prep State: 0x100 (trace_disabled) | |
1TIPREPINFO Exclusive VM access not taken: data may not be consistent across javacore sections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.commons.io; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.math.BigInteger; | |
public class BigIntHelper { | |
private static Method intValueExactMethod; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void deleteAll(File directory) throws IOException { | |
final Object obj = null; | |
boolean test = true; | |
if (obj == null) { | |
test = false; | |
} | |
if (test) { | |
FileUtils.deleteDirectory(directory); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void deleteAll(File directory) throws IOException { | |
final boolean test = test(); | |
if (test) { | |
FileUtils.deleteDirectory(directory); | |
} | |
} | |
private boolean test() { | |
return 1 == 2; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void deleteAll(File directory) throws IOException { | |
final boolean test = 1 == 2; | |
if (test) { | |
FileUtils.deleteDirectory(directory); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void deleteAll(File directory) throws IOException { | |
if (false) { | |
FileUtils.deleteDirectory(directory); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.commons.io; | |
import java.io.File; | |
import java.io.IOException; | |
public class ADangerousClass { | |
public void deleteAll(File directory) throws IOException { | |
FileUtils.deleteDirectory(directory); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "org.apache.commons.io.FileUtils.copyFileToDirectory:void(java.io.File,java.io.File)/srcFile/2", | |
"description": "The method `copyFileToDirectory` does not support handling **sensitive data** to be passed as parameter `srcFile` because it is leaked over I/O **File**.", | |
"unsupportedDataType": "SENSITIVE", | |
"interfaceId": "FILE/false", | |
"methodId": "org.apache.commons.io.FileUtils.copyFileToDirectory:void(java.io.File,java.io.File)", | |
"codeLocationUrl": "https://github.com/apache/commons-io/blob/commons-io-2.5/src/main/java/org/apache/commons/io/FileUtils.java#L1141", | |
"state": "NEUTRAL", | |
"externalIssueUrl": "https://todo" | |
} |
NewerOlder