Eclipse 代码检测报 Potential null pointer access: The variable XX may be null at this location
来源:互联网 发布:时间煮雨抄袭 知乎 编辑:程序博客网 时间:2024/05/15 16:11
对于这种本来是挺好的一功能,瞬间感觉好强大啊有木有,还会自动帮你检测空指针。
可是在看别人代码,或者服务器代码的时候就蛋疼了啊!这不改编译就过不了啊!
其实如果想去掉这种检测非常简单。一个设置的问题。
Eclipse——>Window——>preferences——>java——>Compiler——>Errors/Warnings,找到下面这个选项
看到了吗?把Error改成warning 将项目重新clean 一下。OK!
0 0
- Eclipse 代码检测报 Potential null pointer access: The variable XX may be null at this location
- Null pointer access: The variable number can only be null at this location。 错误解决
- Null pointer access: The variable condition can only be null at this location。
- Null pointer access: The variable number can only be null at this location。 错误解决
- Null pointer access: The variable sList can only be null at this location
- Null pointer access: The variable marketcommends can only be null at this location
- Warn:Null pointer access: The variable addressList can only be null at this location
- Null pointer access: The variable sb can only be null at this location
- Null pointer access: The variable temp can only be null at this location
- Null pointer access: The variable al can only be null at this location问题的解决
- This function or variable may be unsafe
- This function or variable may be unsafe
- This function or variable may be unsafe
- This function or variable may be unsafe
- This function or variable may be unsafe
- This function or variable may be unsafe
- This function or variable may be unsafe
- This function or variable may be unsafe
- 基础总结篇之四:Service完全解析
- 基于apache + mysql + php编译安装过程详解
- python如何直接在命令行使用系统模板template
- 续上篇cocos2dx函数重载异常的问题
- Java算法-括号问题
- Eclipse 代码检测报 Potential null pointer access: The variable XX may be null at this location
- OpenStack heat HA
- Android事件分发机制完全解析,带你从源码的角度彻底理解
- Unity之Shader Pass 的通用指令 LOD - 五
- 开源Android-PullToRefresh下拉刷新源码分析
- hdu1403---Longest Common Substring(后缀数组求2个字符串的最长公共子串)
- 手势识别(四)多手势间的交互与共存
- CSharp学习视频分享与开发技术QQ交流群
- java 系统属性含义