Reputation: 86055
The following does not work sometimes
@Test public void testBlah() throws Exception
I have to use
@Test
public void testBlah() throws Exception
I want to know why?
Upvotes: 1
Views: 76
Reputation: 39887
I guess, because in the former Test
is not imported, whereas when you press <enter>
that tends to fix the import automatically without you noticing it, and you get the feeling that it doesn't work on the same line.
I can't think of any other reason.
Upvotes: 4