eclipse中的最终方法参数 [英] Final in method parameter in eclipse

查看:212
本文介绍了eclipse中的最终方法参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试把final中的方法参数eclipse没有帮助。任何想法如何让这个工作?

When I try to put final in method parameter eclipse doesn't help. Any idea how to get this to work?

推荐答案

我不认为这是可能的。

最接近的是设置一个保存操作,当您保存文件时,将自动将最终修饰符添加到方法参数。

The closest thing to this is to set a "save action" which will automatically add final modifiers to method parameters when you save the file.

Preferences > Java > Editor > Save Actions

这篇关于eclipse中的最终方法参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆