社区
Java SE
帖子详情
the local variable is never read 什么意思
Ahh_Freshmeat
2008-06-01 10:57:16
the local variable is never read 什么意思
...全文
6157
20
打赏
收藏
the local variable is never read 什么意思
the local variable is never read 什么意思
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
20 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
klvchen12345
2011-11-13
打赏
举报
回复
谢谢~~~~~~~~~~
lionow
2011-09-07
打赏
举报
回复
举个例子,如果直接写这句Resource johnSmith = model.createResource(URI).addProperty(VCARD.FN, fullName)就会提示johnSmith is never read
改成Resource johnSmith = model.createResource(URI);
johnSmith.addProperty(VCARD.FN, fullName);
这样分成两句就不会再提示了。
xiajiehan
2011-07-17
打赏
举报
回复
看看这是怎么一回事
baggio1006
2011-02-12
打赏
举报
回复
haohao
jiangs03
2010-12-29
打赏
举报
回复
除了提醒一下,还有没有其他问题呢?
ling527
2010-12-21
打赏
举报
回复
怎样让它不再提示呢?
benalxe
2010-09-02
打赏
举报
回复
我也遇到了这个问题,看看!
wsh900221
2010-08-11
打赏
举报
回复
能举个小例子,定义后使用它,让它不提示么,谢谢大家了,我也是新手
forever546jin
2010-07-23
打赏
举报
回复
很有用谢谢
YouyouWang
2010-06-06
打赏
举报
回复
看看学习一下。
零度空间0520
2010-05-12
打赏
举报
回复
我感觉声明后用过了还是有这个提示啊??怎么回事。。
star_black
2009-08-13
打赏
举报
回复
声明的这个变量从来没有被读到过
scueczhang
2008-09-11
打赏
举报
回复
定义了一个变量,但是从来没有用过它
kangken
2008-06-01
打赏
举报
回复
这个提示干嘛用啊
感觉没什么用
palm_civet
2008-06-01
打赏
举报
回复
eclipse的提示,不用管
ldt_love_java
2008-06-01
打赏
举报
回复
上面的是正确的。
maxel
2008-06-01
打赏
举报
回复
楼上正解
mayuanfei
2008-06-01
打赏
举报
回复
呵呵.不客气
Ahh_Freshmeat
2008-06-01
打赏
举报
回复
哦 谢谢楼上的
mayuanfei
2008-06-01
打赏
举报
回复
就是你定义了一个变量,但是从来没有用过它
The
local
variable
XXXX is n
eve
r
read
eclipse编译时出现警告提示:The
local
variable
XXXX is n
eve
r
read
,是什么原因呢?程序可正常运行! 这个选项是可以设置的:Window --> Preference --> java --> compiler.一些编译选项.
eclipse 中警告信息汇总
1、The
local
variable
name is n
eve
r
read
!、 --- 定义的变量,在程序中未使用,可以删除! 2、The import org.apache.openjpa.lib...... is n
eve
r used --- 引入的包在程序中没有使用,可以删除。 转载于...
【findBugs】无作用本地变量的存储(低级别)
无作用本地变量的存储(低级别) ...This instruction assigns a value to a
local
variable
, but the value is not
read
or used in any subsequent instruction. Often, this indicates an error, b...
通过Sonar的代码质量报告学习【如何写安全高质量的代码】
1.不要用.size(),改用isEmpty() Using Collection.size() to test for emptiness works, but using Collection.isEmpty() makes the code more
read
able and can be more ... The time complexity of any is
findbugs 出错类型及对应解释
1、Dead store to
local
variable
本地变量存储了闲置不用的对象 举例: List accountCoList = new ArrayList(); 我们为accountCoList新建了一个对象,但是程序的后面并没有使用这个这个新建对象。 建议改为: ...
Java SE
62,615
社区成员
307,307
社区内容
发帖
与我相关
我的任务
Java SE
Java 2 Standard Edition
复制链接
扫一扫
分享
社区描述
Java 2 Standard Edition
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章