本文整理汇总了Java中edu.umd.cs.findbugs.BugReporter类的典型用法代码示例。如果您正苦于以下问题:Java BugReporter类的具体用法?Java BugReporter怎么用?Java BugReporter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BugReporter类属于edu.umd.cs.findbugs包,在下文中一共展示了BugReporter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: BadAppletConstructor
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public BadAppletConstructor(BugReporter bugReporter) {
this.bugReporter = bugReporter;
try {
appletClass = Repository.lookupClass("java.applet.Applet");
} catch (ClassNotFoundException cnfe) {
bugReporter.reportMissingClass(cnfe);
appletClass = null;
}
}
示例2: TestingGround
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public TestingGround(BugReporter bugReporter) {
this.bugReporter = bugReporter;
if (active) {
formatter = NumberFormat.getIntegerInstance();
formatter.setMinimumIntegerDigits(4);
formatter.setGroupingUsed(false);
}
}
示例3: ScriptInjectionDetector
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public ScriptInjectionDetector(BugReporter bugReporter) {
super(bugReporter);
loadConfiguredSinks("spel.txt", "SPEL_INJECTION");
loadConfiguredSinks("script-engine.txt", "SCRIPT_ENGINE_INJECTION");
loadConfiguredSinks("el.txt", "EL_INJECTION");
loadConfiguredSinks("seam-el.txt", "SEAM_LOG_INJECTION");
}
示例4: PathTraversalDetector
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public PathTraversalDetector(BugReporter bugReporter) {
super(bugReporter);
loadConfiguredSinks("path-traversal-in.txt", PATH_TRAVERSAL_IN_TYPE);
loadConfiguredSinks("path-traversal-out.txt", PATH_TRAVERSAL_OUT_TYPE);
loadConfiguredSinks("scala-path-traversal-in.txt", SCALA_PATH_TRAVERSAL_IN_TYPE);
// We are not using a Scala-specific message because it doesn't have an embed code example
loadConfiguredSinks("scala-path-traversal-out.txt", PATH_TRAVERSAL_OUT_TYPE);
}
示例5: SqlInjectionDetector
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public SqlInjectionDetector(BugReporter bugReporter) {
super(bugReporter);
loadConfiguredSinks("sql-hibernate.txt", "SQL_INJECTION_HIBERNATE");
loadConfiguredSinks("sql-jdo.txt", "SQL_INJECTION_JDO");
loadConfiguredSinks("sql-jpa.txt", "SQL_INJECTION_JPA");
loadConfiguredSinks("sql-jdbc.txt", "SQL_INJECTION_JDBC");
loadConfiguredSinks("sql-spring.txt", "SQL_INJECTION_SPRING_JDBC");
loadConfiguredSinks("sql-scala-slick.txt", "SCALA_SQL_INJECTION_SLICK");
loadConfiguredSinks("sql-scala-anorm.txt", "SCALA_SQL_INJECTION_ANORM");
loadConfiguredSinks("sql-turbine.txt", "SQL_INJECTION_TURBINE");
//TODO : Add org.springframework.jdbc.core.simple.SimpleJdbcTemplate (Spring < 3.2.1)
}
示例6: ConstantPasswordDetector
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public ConstantPasswordDetector(BugReporter bugReporter) {
this.bugReporter = bugReporter;
try {
loadMap(METHODS_FILENAME, sinkMethods, "#");
} catch (IOException ex) {
throw new RuntimeException("cannot load resources", ex);
}
}
示例7: FindUnsyncGet
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public FindUnsyncGet(BugReporter bugReporter) {
this.bugReporter = bugReporter;
}
示例8: RegisterReceiverPermissionDetector
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public RegisterReceiverPermissionDetector(BugReporter bugReporter) {
super(bugReporter);
}
示例9: FindLocalSelfAssignment
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public FindLocalSelfAssignment(BugReporter bugReporter) {
this.bugReporter = bugReporter;
}
示例10: WeakMessageDigestDetector
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public WeakMessageDigestDetector(BugReporter bugReporter) {
this.bugReporter = bugReporter;
}
示例11: WebViewJavascriptInterfaceDetector
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public WebViewJavascriptInterfaceDetector(BugReporter bugReporter) {
this.bugReporter = bugReporter;
}
示例12: VolatileUsage
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public VolatileUsage(BugReporter bugReporter) {
this.bugReporter = bugReporter;
}
示例13: FindTwoLockWait
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public FindTwoLockWait(BugReporter bugReporter) {
this.bugReporter = bugReporter;
}
示例14: FindRunInvocations
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public FindRunInvocations(BugReporter bugReporter) {
this.bugReporter = bugReporter;
}
示例15: FindUninitializedGet
import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public FindUninitializedGet(BugReporter bugReporter) {
this.bugReporter = bugReporter;
}