Actual Method Parameter Is the Same Constant  

 


Actual Method Parameter Is the Same Constant  ï¿½Ë»ï¿½ï¿½ �׵��� �� ������ ���� ���� ������� �Բ� �ҷ����� �޼ҵ带 ã���ϴ�.

���� Actual method parameter is the same constant  Ã¼Å© �ڽ��� ���õǰ� Inspection ï¿½ï¿½ � ������ ã�´ٸ� Inspection �� ������� ���� ������ ���� �׻� ���� ���� �޼ҵ带 �����ִ� Same parameter value ���� ǥ���մϴ�.

�� �˻翡 ���� �߰ߵ� ������ ���� � ���� ������ �ַ�ǵ� �����ϴ�


�� �˻�� � �ɼǵ� ������ �ʽ��ϴ�.


 

��� ��



���� Ŭ������ ���ʽÿ�:

 
public class AClass {
 
    public void methodA(int A, boolean B) {
        //some code here
    }
 
    public void method1() {
        //some code here
 
        methodA(1, false);
 
        //some code here
 
        methodA(2, false);
    }
}
 

Inspection ï¿½ï¿½ AClass �� ����ǰ� �� �Ŀ������� �� �����찡 ��Ÿ�� ���Դϴ�.



�� ���� ���� ��� �޼ҵ� �ݿ��� ���� ���̱� ������ B �Ű� ������ �����˴ϴ�.