Skip to content

[CALCITE-4199] Add nullability annotations to the methods and fields, ensure consistency with checkerframework#2268

Merged
vlsi merged 6 commits intoapache:masterfrom
vlsi:checkerframework
Nov 29, 2020
Merged

[CALCITE-4199] Add nullability annotations to the methods and fields, ensure consistency with checkerframework#2268
vlsi merged 6 commits intoapache:masterfrom
vlsi:checkerframework

Conversation

@vlsi
Copy link
Contributor

@vlsi vlsi commented Nov 17, 2020

https://issues.apache.org/jira/browse/CALCITE-4199

CheckerFramework needs an annotated JDK (which might be slow to download), so it is not activated by default

Third-party issues:

Corner cases:

@vlsi vlsi force-pushed the checkerframework branch 3 times, most recently from 73be222 to bcff3ec Compare November 29, 2020 22:25
vlsi added 2 commits November 30, 2020 01:34
The Checker Framework needs an annotated JDK, so it is not activated by default.

Please use the following command to execute the check (only linq4j and core modules are annotated for now):

    ./gradlew -PenableCheckerframework :linq4j:classes :core:classes

The code style is to use non-nullable types by default, so please refrain from explicit @nonnull.

Please use org.checkerframework.checker.** annotations rather than javax.annotation.**
vlsi and others added 3 commits November 30, 2020 01:45
The commit includes javadoc updates and refactorings made by Julian Hyde in apache#2278
Add private class PosBuilder to allow lists or arrays of positions to
be summed without creating intermediate collections. Nullness is also
more transparent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants