Code Monkey home page Code Monkey logo

Comments (9)

chenxuyuan2016 avatar chenxuyuan2016 commented on July 3, 2024

是的,我也发现这个问题了。
不知道能不能修改规则,让interface 和 @interface的常量符合规范

from p3c.

xuantan avatar xuantan commented on July 3, 2024

@shaonialife 提供个具体代码事例,最好是截图

from p3c.

shaonialife avatar shaonialife commented on July 3, 2024

image

Sorry , 刚测试发现 interface 内的常量可以,@interface 内的不行,怪我看走眼了

from p3c.

SeanCai avatar SeanCai commented on July 3, 2024

注解里面定义的变量不是public static final的,所以请使用小写驼峰形式

from p3c.

shaonialife avatar shaonialife commented on July 3, 2024

从我上面发的图片可以看到 @IntDef 里面引用了 UploadStatus 里面的值,而 @IntDef 括号里面只能填写常量,间接就说明了在注解 UploadStatus 里面定义的那三个值就是常量

from p3c.

SeanCai avatar SeanCai commented on July 3, 2024

这个是 public final 不是public static final @shaonialife

from p3c.

shaonialife avatar shaonialife commented on July 3, 2024

一图胜万言
image

from p3c.

xuantan avatar xuantan commented on July 3, 2024

@shaonialife 好的,确实是我们的问题,下一个版本中会修复掉。

from p3c.

xuantan avatar xuantan commented on July 3, 2024

已发布,问题已修复。

from p3c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.