MethodReturnTypeFix: updated fix to change method return type based on return statements in method body (IDEA-216275)

GitOrigin-RevId: e97990950039123c8c41921a71342b8ed60afdee
This commit is contained in:
Artemiy Sartakov
2019-07-04 09:02:24 +03:00
committed by intellij-monorepo-bot
parent 52aa1ae553
commit 42d733a694
42 changed files with 381 additions and 55 deletions
@@ -16,7 +16,7 @@ class LimitedPool<T> {
void cleanup(T t);
}
public T alloc() {
public T <error descr="Invalid return type">alloc</error>() {
if (index >= capacity) return factory.create();
if (storage[index] == null) {