我正在尝试在java文件中查找错误。我添加了与Jenkins中的maven集成的findbug插件。我使用了以下命令:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Resolve.Models
{
public class Solve
{
public double a { get; set; }
public double b { get; set; }
public double c { get; set; }
public double x1 { get; set; }
public double x2 { get; set; }
public void Calculate (out double x1, out double x2)
{
double inside = (b * b) - 4 * a * c;
if (inside < 0)
{
x1 = double.NaN;
x2 = double.NaN;
}
else
{
double eqn = Math.Sqrt(inside);
x1 = (-b + eqn) / (2 * a);
x2 = (-b - eqn) / (2 * a);
}
}
}
}
我对在上面的命令(.ear或.java文件等)中找到文件以查找错误感到困惑。