Local Variable or Parameter Can Be Final ������ ���� ����� �� �ִ� ���� ���� �Ǵ� �޼ҵ� �Ű� ������ �˻��մϴ�.
Local variable or parameter can be final ������ ������ �ɼ��� �����ϴ�.
Report local
variables
|
���� �� üũ �ڽ��� ���õǾ��ٸ�, �˻�� ���� ����Ǵ� ���� ������ ã�� ���Դϴ�.
|
Report method
parameters
|
���� �� üũ �ڽ��� ���õǾ��ٸ�, �˻�� ���� ����Ǵ� �޼ҵ� �Ű� ������ ã�� ���Դϴ�.
|
|
���� Local
variable or parameter can be final üũ �ڽ��� ���õǰ� Inspection �� � ������ ã����, Inspection �� ������� ���������� (���� ���, ���� ������ ���� �Բ� ���� �ѹ��� �Ҵ�˴ϴ�) ����� �� �ִ� ���� ���� �Ǵ� �Ű� ������ �����ϴ� Local
variable or parameter can be final ���� ǥ���մϴ�.
�� Ʈ�� ���⿡�� �׸��� ������ ��ư�� Ŭ���ϴ� �Ϳ� ���� �Ҹ��� ���� �޴��� ���� �ذ�μ� �������� �������� �߰��� ä���� ���� �����մϴ�.
���� Ŭ������ ���ʽÿ�:
public class AClass {
public AClass( int i) {
int intVar_1;
if (i < 0) { intVar_1 = -i; } else {
intVar_1 = i;
}
//some code here - not assigning another value to intVar_1
}
}
Inspection �� AClass �� ����ǰ� �� �Ŀ� ���� �� �����찡 ��Ÿ�� ���Դϴ�.

Inspection �� ������ �Ű� ������ �Բ� intVar_1 �� ���� �Բ� �ѹ��� �Ҵ�ǰ�, ���������� ����� �� �ִٴ� ���� �����մϴ�.
|