Unused Method Parameters
|
|
|
Unused Method Parameters �˻�� �Ѿ�� �Ű� ������ ���õǴ� �޼ҵ��� ���� ������ ����� �ڵ带 �м��մϴ�.
1. methodA �� �����ϴ� �������̽� package aPackage; public interface AnInterface
{ void methodA(int myInt, boolean myBoolean); } 2. �׸��� �� �������̽��� �����ϴ� 2 Ŭ���� - AClass: package aPackage; public class AClass implements AnInterface{ public void methodA(int myInt, boolean myBoolean)
{ int aField =
myInt;
//some code here } } 3. �׸��� AClassTwo package aPackage; public class AClassTwo
implements AnInterface
{ public void methodA(int myInt, boolean myBoolean)
{
//some code here where the myBoolean is not
used } }
�������̽��� ������ �Ļ� Ŭ������ Inspection ���� ������ ���� myBoolean �Ű� ������ �װ��� ������ �����ϴ� ���� �����մϴ�. |