티스토리 뷰

공부

[Java] Call static generic method

승가비 2021. 11. 8. 20:09
728x90
Foo.<String>createFoo();

https://stackoverflow.com/questions/5297978/calling-static-generic-methods

 

Calling static generic methods

I have come across a curious situation involving static generic methods. This is the code: class Foo { public static Foo createFoo() { // ... } } c...

stackoverflow.com

 

728x90
댓글