Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Bump checker-qual from 3.10.0 to 3.11.0 #19

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 16, 2021

Bumps checker-qual from 3.10.0 to 3.11.0.

Release notes

Sourced from checker-qual's releases.

Checker Framework 3.11.0

Version 3.11.0, March 1, 2021

User-visible changes:

In a stub file for a class C, you may write a declaration for a method that is inherited by C but not defined by it. Previously, such stub declarations were ignored. For more information, see the manual's documentation of "fake overrides".

Nullness Checker error message key changes:

  • known.nonnull => nulltest.redundant
  • initialization.static.fields.uninitialized => initialization.static.field.uninitialized, and it is now issued on the field rather than on the class
  • new initialization.field.uninitialized is issued on the field instead of initialization.fields.uninitialized on the class, if there is no explicitly-written constructor.

Signature Checker supports two new type qualifiers:

  • @CanonicalNameAndBinaryName
  • @CanonicalNameOrPrimitiveType

Implementation details:

You can make a variable's default type depend on its name, or a method return type default depend on the method's name. To support this feature, @DefaultFor has new elements names and namesExceptions.

Changes to protected fields in OverrideChecker:

  • Removed overriderMeth, overriderTyp, overriddenMeth, overriddenTyp
  • Renamed methodReference => isMethodReference
  • Renamed overridingType => overriderType
  • Renamed overridingReturnType => overriderReturnType

Changes to JavaExpression parsing:

  • The signatures of these methods changed; see Javadoc.
    • JavaExpressionParseUtil#parse
    • DependentTypesHelper#standardizeString
  • These methods moved:
    • GenericAnnotatedTypeFactory#standardizeAnnotationFromContract => DependentTypesHelper
    • JavaExpressionParseUtil#fromVariableTree => JavaExpression

Changes to JavaExpressionContext:

  • New method JavaExpressionContext#buildContextForMethodDeclaration(MethodTree, SourceChecker) replaces all overloads of buildContextForMethodDeclaration.

Parsing a Java expression no longer requires the formal parameters AnnotationProvider provider or boolean allowNonDeterministic. Methods in JavaExpression with simplified signatures include

  • fromArrayAccess
  • fromNodeFieldAccess
  • fromNode
  • fromTree
  • getParametersOfEnclosingMethod
  • getReceiver

CFAbstractStore.insertValue does nothing if passed a nondeterministic expression. Use new method CFAbstractStore.insertValuePermitNondeterministic to map a nondeterministic expression to a value.

Closed issues: #862, #3631, #3991, #4031, #4206, #4207, #4226, #4231, #4248, #4263, #4265, #4279, #4286, #4289.

Changelog

Sourced from checker-qual's changelog.

Version 3.11.1, April 1, 2021

User-visible changes:

New FAQ item "How should I annotate code that uses generics?" gives examples of annotations on type variables, together with their meaning.

-Ainfer=ajava uses ajava files (rather than jaif files or stub files) internally during whole-program inference.

The Optional Checker supports a new annotation @OptionalBottom that stands for (only) the null value.

Implementation details:

Removed deprecated PluginUtil class.

Closed issues:


Version 3.11.0, March 1, 2021

User-visible changes:

In a stub file for a class C, you may write a declaration for a method that is inherited by C but not defined by it. Previously, such stub declarations were ignored. For more information, see the manual's documentation of "fake overrides".

Nullness Checker error message key changes:

  • known.nonnull => nulltest.redundant
  • initialization.static.fields.uninitialized => initialization.static.field.uninitialized, and it is now issued on the field rather than on the class
  • new initialization.field.uninitialized is issued on the field instead of initialization.fields.uninitialized on the class, if there is no explicitly-written constructor.

Signature Checker supports two new type qualifiers:

  • @CanonicalNameAndBinaryName
  • @CanonicalNameOrPrimitiveType

Implementation details:

You can make a variable's default type depend on its name, or a method return type default depend on the method's name. To support this feature, @DefaultFor has new elements names and namesExceptions.

Changes to protected fields in OverrideChecker:

  • Removed overriderMeth, overriderTyp, overriddenMeth, overriddenTyp

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the type: dependencies Pull requests that update a dependency file label Mar 16, 2021
@kashike kashike self-assigned this Mar 16, 2021
@kashike kashike merged commit e0adfb2 into master Mar 16, 2021
@dependabot dependabot bot deleted the dependabot/gradle/org.checkerframework-checker-qual-3.11.0 branch March 16, 2021 10:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant