diff --git a/third_party/BUILD b/third_party/BUILD index 67f613f2fab229..4b5249fb2b8fc6 100644 --- a/third_party/BUILD +++ b/third_party/BUILD @@ -332,6 +332,14 @@ java_import( ], ) +java_import( + name = "checker_framework_annotations", + jars = [ + "checker_framework_annotations/checker-qual-2.6.0.jar", + "checker_framework_annotations/checker-compat-qual-2.6.0.jar", + ], +) + java_import( name = "compile_testing", jars = ["compile_testing/compile-testing-0.13.jar"], diff --git a/third_party/checker_framework_annotations/LICENSE b/third_party/checker_framework_annotations/LICENSE new file mode 100644 index 00000000000000..f6f0bfaa131087 --- /dev/null +++ b/third_party/checker_framework_annotations/LICENSE @@ -0,0 +1,35 @@ +A few parts of the Checker Framework have more permissive licenses. + + * The annotations are licensed under the MIT License. (The text of this + license appears below.) More specifically, all the parts of the Checker + Framework that you might want to include with your own program use the + MIT License. This is the checker-qual.jar file and all the files that + appear in it: every file in a qual/ directory, plus utility files such + as NullnessUtil.java, RegexUtil.java, SignednessUtil.java, etc. + In addition, the cleanroom implementations of third-party annotations, + which the Checker Framework recognizes as aliases for its own + annotations, are licensed under the MIT License. + +=========================================================================== + +MIT License: + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +=========================================================================== diff --git a/third_party/checker_framework_annotations/checker-compat-qual-2.6.0.jar b/third_party/checker_framework_annotations/checker-compat-qual-2.6.0.jar new file mode 100644 index 00000000000000..c0c8d91ff9b1e5 Binary files /dev/null and b/third_party/checker_framework_annotations/checker-compat-qual-2.6.0.jar differ diff --git a/third_party/checker_framework_annotations/checker-qual-2.6.0.jar b/third_party/checker_framework_annotations/checker-qual-2.6.0.jar new file mode 100644 index 00000000000000..1113b33daa4916 Binary files /dev/null and b/third_party/checker_framework_annotations/checker-qual-2.6.0.jar differ