Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #38557 > unrolled thread

annotation for number checking

Started byPhilipp Kraus <philipp.kraus.flashpixx@gmail.com>
First post2018-08-11 15:59 -0700
Last post2018-08-11 15:59 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.programmer


Contents

  annotation for number checking Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2018-08-11 15:59 -0700

#38557 — annotation for number checking

FromPhilipp Kraus <philipp.kraus.flashpixx@gmail.com>
Date2018-08-11 15:59 -0700
Subjectannotation for number checking
Message-ID<515f7ee5-8441-4a23-ad39-e7be6f70d59c@googlegroups.com>
Hello,

I'm searching annotation for number checking. I just using the Maven package

        <dependency>
            <groupId>com.github.spotbugs</groupId>
            <artifactId>spotbugs-annotations</artifactId>
            <version>3.1.6</version>
            <scope>provided</scope>
        </dependency>

for SpotBugs analysing. But now I have got a lot of Number members and I need an annotation for range checking. I need to define a member or parameter Number value must be within a range or has got a min or max value.

Which annotation framework did you suggest? I have take a look on the Checker Framework but I don't find a range annotation for Number values. 

Thanks

[toc] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web