In GWT, why shouldn't a method return an interface?

后端 未结 2 630
梦如初夏
梦如初夏 2021-02-07 06:21

In this video from Google IO 2009, the presenter very quickly says that signatures of methods should return concrete types instead of interfaces.

From what I heard in th

2条回答
  •  失恋的感觉
    2021-02-07 06:43

    This and other performance tips were presented at Google IO 2011 - High-performance GWT.

    At about the 7 min point the speak addresses 'RPC Type Explosion': #4 Watch out for RPC type explosion

    For some reason I thought the GWT compiler would optimize it away again but it appears I was mistaken.

提交回复
热议问题