当前位置: 首页>>代码示例>>Java>>正文


Java BugReporter类代码示例

本文整理汇总了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;
	}
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:10,代码来源:BadAppletConstructor.java

示例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);
	}
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:9,代码来源:TestingGround.java

示例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");

}
 
开发者ID:blackarbiter,项目名称:Android_Code_Arbiter,代码行数:9,代码来源:ScriptInjectionDetector.java

示例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);
}
 
开发者ID:blackarbiter,项目名称:Android_Code_Arbiter,代码行数:10,代码来源:PathTraversalDetector.java

示例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)
}
 
开发者ID:blackarbiter,项目名称:Android_Code_Arbiter,代码行数:13,代码来源:SqlInjectionDetector.java

示例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);
    }
}
 
开发者ID:blackarbiter,项目名称:Android_Code_Arbiter,代码行数:9,代码来源:ConstantPasswordDetector.java

示例7: FindUnsyncGet

import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public FindUnsyncGet(BugReporter bugReporter) {
	this.bugReporter = bugReporter;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:4,代码来源:FindUnsyncGet.java

示例8: RegisterReceiverPermissionDetector

import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public RegisterReceiverPermissionDetector(BugReporter bugReporter) {
    super(bugReporter);
}
 
开发者ID:blackarbiter,项目名称:Android_Code_Arbiter,代码行数:4,代码来源:RegisterReceiverPermissionDetector.java

示例9: FindLocalSelfAssignment

import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public FindLocalSelfAssignment(BugReporter bugReporter) {
	this.bugReporter = bugReporter;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:4,代码来源:FindLocalSelfAssignment.java

示例10: WeakMessageDigestDetector

import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public WeakMessageDigestDetector(BugReporter bugReporter) {
    this.bugReporter = bugReporter;
}
 
开发者ID:blackarbiter,项目名称:Android_Code_Arbiter,代码行数:4,代码来源:WeakMessageDigestDetector.java

示例11: WebViewJavascriptInterfaceDetector

import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public WebViewJavascriptInterfaceDetector(BugReporter bugReporter) {
    this.bugReporter = bugReporter;
}
 
开发者ID:blackarbiter,项目名称:Android_Code_Arbiter,代码行数:4,代码来源:WebViewJavascriptInterfaceDetector.java

示例12: VolatileUsage

import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public VolatileUsage(BugReporter bugReporter) {
        this.bugReporter = bugReporter;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:4,代码来源:VolatileUsage.java

示例13: FindTwoLockWait

import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public FindTwoLockWait(BugReporter bugReporter) {
	this.bugReporter = bugReporter;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:4,代码来源:FindTwoLockWait.java

示例14: FindRunInvocations

import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public FindRunInvocations(BugReporter bugReporter) {
	this.bugReporter = bugReporter;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:4,代码来源:FindRunInvocations.java

示例15: FindUninitializedGet

import edu.umd.cs.findbugs.BugReporter; //导入依赖的package包/类
public FindUninitializedGet(BugReporter bugReporter) {
	this.bugReporter = bugReporter;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:4,代码来源:FindUninitializedGet.java


注:本文中的edu.umd.cs.findbugs.BugReporter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。