Java8 - “effectively final”
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using RxVertx which is a sort of RxJava along with Java8 and I have a compilation error. Here is my code: public rx.Observable<Game> findGame(long templateId, GameModelType game_model, GameStateType state) { return context.findGame(templateId, state) .flatMap(new Func1<RxMessage<byte[]>, rx.Observable<Game>>() { @Override public Observable<Game> call(RxMessage<byte[]> gameRawReply) { Game game = null; switch(game_model) { case SINGLE: { ebs.subscribe(new Action1<RxMessage<byte[]>>() { @Override public void call(RxMessage<byte[]> t1) { if