project.home=..\\..\\PeriodDataFrontEnd
bevo-web-module.sonar.javascript.jstestdriver.reportsPath=.
bevo-web-module.sonar.projectBaseDir=.\\bevo-web\\src`
Sensor JavaScriptSquidSensor done: 493293 ms
10:45:51.310 INFO - Sensor JsTestDriverSensor...
10:45:51.311 INFO - Parsing Unit Test run results in Surefire format from folder D:\workspace\PeriodDataFrontEnd\bevo-web\src\.
10:45:51.455 WARN - Test result will not be saved for test class "0.2403 (Windows 7 0.0.0).Given the container controller", because SonarQube associated resource has not been found using file name: "0\2403 (Windows 7 0\0\0)\Given the container controller.js"
10:45:51.576 WARN - Test result will not be saved for test class "0.2403 (Windows 7 0.0.0).Given the container nav controller", because SonarQube associated resource has not been found using file name: "0\2403 (Windows 7 0\0\0)\Given the container nav controller.js"
10:45:51.688 WARN - Test result will not be saved for test class "0.2403 (Windows 7 0.0.0).Given the browser has received JSON from the server when converting the JSON to a Page instance", because SonarQube associated resource has not been found using file name: "0\2403 (Windows 7 0\0\0)\Given the browser has received JSON from the server when converting the JSON to a Page instance.js"
10:45:51.805 WARN - Test result will not be saved for test class "0.2403 (Windows 7 0.0.0).Given the page controller", because SonarQube associated resource has not been found using file name: "0\2403 (Windows 7 0\0\0)\Given the page controller.js"
现在,当我使用public void Function<T>(params T[] list)
where T : BaseT
{
foreach (var elem in list)
Function(elem);
}
public void Function<T>(T elem)
where T : BaseT
{
// stuff
}
和T1
调用T2
来源BaseT
时
Function(new T1()); // this calls Function(elem) method
Function<BaseT>(new T1(), new T2()); // this call Function(list) method
那么为什么第一次调用不像第二次调用那样,它应该用一个参数调用Function(list)
方法? params
关键字如何影响代码?