Double/float range annotation
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- developer-experience
Research direction
Start by locating the existing @Range annotation and related annotation definitions in the project. Compare their retention and target behavior with the proposed DoubleRange API, then determine how floating-point bounds should be represented and documented. Done means the project has a reviewed double/float range annotation with clear inclusive-bound semantics.
Written by the indexing model from the issue text.
Description
It would be incredibly useful to have something similar to @Range for doubles/floats.
For example, to indicate that the return value is always in the range [0, 1] (0 to 1, inclusive)
something like
@Documented
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.TYPE_USE})
public @interface DoubleRange {
double from();
double to();
}
- Dominant language
- Kotlin
- Stars
- 464
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JetBrains/java-annotations
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
JetBrains/java-annotations#123 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
JetBrains/java-annotations#134 · 6 comments · 1 reaction ·
-
JetBrains/java-annotations#125 · 1 reaction · 1 assignee ·
-
JetBrains/java-annotations#117 · 4 comments · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
JetBrains/java-annotations#113 · 4 comments ·
All issues in JetBrains/java-annotations
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Anthonyy232/Paperize#614 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
Issue: Bug
Difficulty 1/5 Under an hour Newbie friendliness 91/100
OpenAPITools/openapi-generator#24978 ·
-
helsemelding-json-schema json-schema-core
Difficulty 2/5 1-3 hours Newbie friendliness 68/100