Comments (9)
是的,我也发现这个问题了。
不知道能不能修改规则,让interface 和 @interface的常量符合规范
from p3c.
@shaonialife 提供个具体代码事例,最好是截图
from p3c.
Sorry , 刚测试发现 interface 内的常量可以,@interface 内的不行,怪我看走眼了
from p3c.
注解里面定义的变量不是public static final的,所以请使用小写驼峰形式
from p3c.
从我上面发的图片可以看到 @IntDef 里面引用了 UploadStatus 里面的值,而 @IntDef 括号里面只能填写常量,间接就说明了在注解 UploadStatus 里面定义的那三个值就是常量
from p3c.
这个是 public final 不是public static final @shaonialife
from p3c.
from p3c.
@shaonialife 好的,确实是我们的问题,下一个版本中会修复掉。
from p3c.
已发布,问题已修复。
from p3c.
Related Issues (20)
- [Doc] The README file is not clear and some format was incorrect
- 执行./gradlew runIde,idea报错rule set java/ali-pmd not found 问题 如何解决?
- 乱码问题 HOT 1
- idea2020.1.1安装好插件使用时右下角报IDE Fatal Errors错误导致无法使用 HOT 1
- try-with-resources 的注意点
- 数组下标越界 HOT 1
- 提几条日常编码时的想法供参考
- 2023.2版本插件报错 HOT 11
- 有没有web的开发手册开发规范
- 规约中有关前后端接口日期时间传递的约定是在挖大坑 HOT 8
- URL Broker 指的是什么
- beta版本试用,增加了对Record类的检测,优化了Switch中default块的判断 HOT 2
- How to add a new rule HOT 69
- stream和enum的格式化能不能优化下
- idea 2023.1.5版本安装规约插件代码规约失效 HOT 1
- How can I use my custom rule which is similar to defined rule? HOT 1
- LockShouldWithTryFinallyRule规则不生效
- 请问下这个插件是没更新了吗? HOT 3
- 类名使用 UpperCamelCase 风格,但以下情形例外:DO / / BO / / DTO / VO / AO / PO / UID 等。这个规则不生效。
- P3C的阿里巴巴网址无法拉取包了
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p3c.