palantir / safe-logging

Interfaces and utilities for safe log messages
Apache License 2.0
14 stars 20 forks source link

Preconditions provide contract information for static analysis #784

Closed carterkozak closed 2 years ago

carterkozak commented 2 years ago

This is helpful for IDE analysis using jebrains IDEs, but I implemented this primarily because NullAway supports the @Contract annotation which are recommended for first party code over implementing custom library models ==COMMIT_MSG== Preconditions provide contract information for static analysis ==COMMIT_MSG==

Future Work

I'd also like to add contract information to our generated conjure error utilities.

changelog-app[bot] commented 2 years ago

Generate changelog in changelog-dir>`changelog/@unreleased`</changelog-dir

Type

- [ ] Feature - [x] Improvement - [ ] Fix - [ ] Break - [ ] Deprecation - [ ] Manual task - [ ] Migration

Description

Preconditions provide contract information for static analysis **Check the box to generate changelog(s)** - [x] Generate changelog entry
svc-autorelease commented 2 years ago

Released 3.1.0