Например, если я пишу, как показано ниже, дублирование кода не обнаруживается, даже если я повторяю более 20 раз.
Код: Выделить всё
System.out.println("this is good");
System.out.println("this is good");
System.out.println("this is good");
System.out.println("this is good");
System.out.println("this is good");
System.out.println("this is good");
System.out.println("this is good");
System.out.println("this is good");
System.out.println("this is good");
System.out.println("this is good");
Код: Выделить всё
try
{
connection = null;
}
catch(Exception e){
e.printStackTrace();
}
try
{
connection = null;
}
catch(Exception e){
e.printStackTrace();
}
try{
connection = null;
}
catch(Exception e){
e.printStackTrace();
}
try{
connection = null;
}
catch(Exception e){
e.printStackTrace();
}
Пожалуйста, дайте мне знать точный процесс, выполняемый при обнаружении дублирования с помощью сонара 3.4.1
В этом
http://docs.sonarsource.org/3.1/apidocs ... ngine.html
Я нашел постоянный размер блока, равный 10. Но я могу связать это с моим наблюдением.
Подробнее здесь: https://stackoverflow.com/questions/148 ... plications
Мобильная версия