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


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

annotation for number checking

Newsgroups comp.lang.java.programmer
Date 2018-08-11 15:59 -0700
Message-ID <515f7ee5-8441-4a23-ad39-e7be6f70d59c@googlegroups.com> (permalink)
Subject annotation for number checking
From Philipp Kraus <philipp.kraus.flashpixx@gmail.com>

Show all headers | View raw


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

Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web