Bug 137175 - [change method signature] gives unnecessary warning
Summary: [change method signature] gives unnecessary warning
Status: RESOLVED DUPLICATE of bug 268665
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-18 05:48 EDT by Koen van Dijken CLA
Modified: 2009-03-16 08:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Koen van Dijken CLA 2006-04-18 05:48:27 EDT
On a private recursive method 'recursiveMethod', removing a parameter 'xxx' which is only used for the the recursive call gives the message 

"Removed parameter 'xxx' is used in method 'recursiveMethod' declared in type ..."

This is true, but should not cause a problem, this parameter can be safely removed.

Eclipse SDK
Version: 3.2.0
Build id: I20060331-2000
Comment 1 Jerome Lanneluc CLA 2006-04-18 06:58:07 EDT
Please provide steps to reproduce and reopen.
Comment 2 Koen van Dijken CLA 2006-04-18 07:38:17 EDT
To reproduce:

public class Class137175 {

    private void recursiveMethod(int a, int b) {
        System.out.println(a);
        if (a > 0)
            recursiveMethod(a - 1, b);
    }
}

Use CMS to remove parameter b to change the method signature to:

private void recursiveMethod(int a)

This will give the warning.
Comment 3 Philipe Mulet CLA 2006-04-18 07:52:27 EDT
Moving to UI
Comment 4 Markus Keller CLA 2009-03-16 08:53:16 EDT

*** This bug has been marked as a duplicate of bug 268665 ***