What on Earth is this?
So I mistakenly wrote the following code:
private <List>ContentFetcher getContentFetchers() {
return null;
}
instead of
private List <ContentFetcher> getContentFetchers() {
return null;
}
and guess what Eclipse moaned about? Nothing, absolutely nothing. Code completion shows that the method returns a ContentFetcher, so what does "" do? Apparantly nothing :)
Weird ;)
OK, go on then smarty pants and tell me what it is doing :)
Richard Fearn
The first one is a generic method – List is actually a parameter. Good ol’ generics ;-)
04 Aug 2006, 23:31
Add a comment
You are not allowed to comment on this entry as it has restricted commenting permissions.