When we click Add unimplemented methods, it includes a comment: // TODO Auto-generated method stub.
It's a small thing, but it's getting a little annoying to remove that comment in every instance, especially with large interfaces. ^-^'
There's already the throw new UnsupportedOperationException so I can decide for myself from there if it needs implemented or not, but including the comment just adds an unnecessary step when writing new implementations.
Could an option please be introduced to override/remove the comment?
Example:
public class Test implements Map {
@Override
public int size() {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'size'");
}
@Override
public boolean isEmpty() {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'isEmpty'");
}
// …
}
Environment
- Operating System: Debian 11
- JDK version: 11
- Visual Studio Code version: 1.75.1
- Java extension version: 1.15.0
When we click Add unimplemented methods, it includes a comment:
// TODO Auto-generated method stub.It's a small thing, but it's getting a little annoying to remove that comment in every instance, especially with large interfaces. ^-^'
There's already the
throw new UnsupportedOperationExceptionso I can decide for myself from there if it needs implemented or not, but including the comment just adds an unnecessary step when writing new implementations.Could an option please be introduced to override/remove the comment?
Example:
Environment