【CheckStyle】Each variable declaration must be in its own statement
in be must Statement variable its each declaration
2023-06-13 09:16:31 时间
描述
Each variable declaration must be in its own statement
提示语句
float r = (float) 1 / len, s = (len + 1) * r;
/** * 获取透明度,从0到1,自动计算步长 * * @return float 透明度 */
private float getAlpha(int i, int j) {
int num = i + j;
float r = (float) 1 / len, s = (len + 1) * r;
return num > len ? (num * r - s) : num * r;
}
解决方式
/** * 获取透明度,从0到1,自动计算步长 * * @return float 透明度 */
private float getAlpha(int i, int j) {
int num = i + j;
float r = (float) 1 / len;
float s = (len + 1) * r;
return num > len ? (num * r - s) : num * r;
}
相关文章
- React报错之React hook useState cannot be called in class component
- k8s报错error: You must be logged in to the server (Unauthorized)
- 【错误记录】Java AWT 图形界面编程报错 ( Exception in thread “main“ java.awt.AWTError: BoxLayout can‘t be shared )
- 'django.contrib.auth.middleware.AuthenticationMiddleware' must be in MIDDLEWARE in order to use the
- ORA-01239: database must be in ARCHIVELOG mode to use external cache ORACLE 报错 故障修复 远程处理
- ORA-01719: outer join operator (+) not allowed in operand of OR or IN ORACLE 报错 故障修复 远程处理
- ORA-02184: resource quotas are not allowed in REVOKE ORACLE 报错 故障修复 远程处理
- ORA-25955: all tables must be joined in the where clause ORACLE 报错 故障修复 远程处理
- ORA-28047: database is not a member of any enterprise domain in OID ORACLE 报错 故障修复 远程处理
- ORA-32042: recursive WITH clause must reference itself directly in one of the UNION ALL branches ORACLE 报错 故障修复 远程处理
- ORA-39762: streams must be loaded in conversion order ORACLE 报错 故障修复 远程处理
- ORA-39931: XML Schema string Owner: string not fully contained in the transportable set. ORACLE 报错 故障修复 远程处理
- ORA-00374: parameter db_block_size = string invalid ; must be a multiple of string in the range [string..string] ORACLE 报错 故障修复 远程处理
- ORA-07442: function address must be in the range string to string ORACLE 报错 故障修复 远程处理
- ORA-13530: invalid TOPNSQL string, must be in the range (string, string) ORACLE 报错 故障修复 远程处理
- ORA-19240: XPTY0020 – context item must be node in an axis expression ORACLE 报错 故障修复 远程处理
- 进行字符串比较使用Oracle IN运算符比较字符串(oracle使用in)
- MySQL排序:IN排列法(mysql按照in排序)
- 语法应用Oracle中IN语法的多种方式(oracle中in)
- MySQL中IN操作的高效优化(mysql 中in的优化)
- MySQL如何使用IN查询语句(mysql不能用in吗)
- Oracle中析研IN函数的功能(oracle中的in函数)
- Oracle中列转IN更快更智能的架构方案(oracle中列转列in)
- 使用Oracle中的IN条件实现复杂查询(oracle中in条件)
- 的影响Oracle中IN操作对索引效率的影响研究(oracle中in对索引)
- 查询Oracle中使用IN关键字查询多个值的方法(oracle中in多个值)
- 从Oracle到NO IN数据库迁移指南(oracle no in)