Например, если я пишу, как показано ниже, дублирования кода не обнаружено, даже если я повторяю более 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