public String myMethod() { return "myString"; }
String x = myMethod();

->

public Object myMethod() { return new Object(); }
String x = (String) myMethod();
           --------

myMethod returns Object after 'change signature'
and calls assigning to String then require a cast.
            

>The behaviour is correct. "Find - Refactoring preview" window displays not
>all found usages, but the usages to be changed (see the corresponding header
>in the tree). In this case there are no usages that are to be changed.

>> build 516, NT4, JDK1.3.1
>>
>> refactor - change method signature:
>> I changed return type from String to Object
>> and IDEA found no references to change,
>> although the method was public and it was used in several
>> other classes (within project path and within source-path)
>> -> the refactoring lead to compiler error

________________________________________________________________
Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to