Darren,
what about "search in path"?
Search for "String empyIfNull".

r.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 26, 2001 5:20 AM
> To: [EMAIL PROTECTED]
> Subject: [Eap-list] Feature request
> 
> 
> Hi,
> 
> I have a request / suggestion (as if IDEA wasn't good enough 
> already!):
> When doing 'extract method' it would be great if the IDE could tell me
> where that code block existed in the whole of my source tree, 
> not just the
> current class.  Or if that's too complex, a search tool that 
> could show me
> where all duplicate lines / code chunks were.  Quite often I 
> find the same
> 'helper' methods in multiple classes, and it would be great 
> if there was a
> tool to help me look, so the duplication can be factored out into the
> correct place.  As an example, we have a reasonable amount of 
> legacy code
> that often returns nulls when it should probably return empty 
> strings.  As
> a result, I have the following code in several places:
> 
> private String emptyIfNull (String input) {
>   if (input == null) return "";
> return input;
> }
> 
> It would be great if there was a 'Find Duplication in Source' 
> tool that
> would find all instances of this and all other duplications.
> 
> Regards,
> 
> -Darren
> 
> 
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
> 

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

Reply via email to