History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-12205
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Jon Steelman
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Delegate Methods: handle static methods better

Created: 02 Apr 07 19:10   Updated: 02 Apr 07 23:00
Component/s: Editor. Editing Text

Build: 6,791


 Description  « Hide
Original method that will be delegated to:
Original Method.java
public static void sort(List list, String s) {
     ...
}

How it generates the delegation currently:

Current Delegate To.java
private NewVehicleSpecial special;
public void sort(List list, String s) {
     special.sort(list, s);
}

Here is how it should delegate:
1. make new method static
2. refer to original method by class rather than by instance variable

Better Delegate To.java
public static void sort(List list, String s) {
     NewVehicleSpecial.sort(list, s);
}


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.