Skip to content

Commit

Permalink
Merge branch 'main' into gradle-action
Browse files Browse the repository at this point in the history
  • Loading branch information
cpovirk committed May 23, 2024
2 parents e49280f + d660272 commit e5ab548
Show file tree
Hide file tree
Showing 14 changed files with 449 additions and 129 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- uses: gradle/wrapper-validation-action@v3
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
name: document
path: docs/build

- uses: JamesIves/github-pages-deploy-action@4.1.5
- uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
branch: gh-pages
folder: docs/build
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**
* Copyright 2020 The JSpecify Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

plugins {
id 'java-library'
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0' apply false
Expand Down
16 changes: 16 additions & 0 deletions conformance-tests/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**
* Copyright 2023 The JSpecify Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import org.gradle.api.JavaVersion

plugins {
Expand Down
6 changes: 4 additions & 2 deletions docs/docs/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ class Example {
The `@NullMarked` annotation indicates that references can't be null in its
scope, unless their types are explicitly marked `@Nullable`. If applied to a
module then its scope is all the code in the module. If applied to a package
then its scope is all the code in the package. If applied to a class or
interface then its scope is all the code in that class or interface.
then its scope is all the code in the package. (Note that packages are _not_
hierarchical; applying `@NullMarked` to package `com.foo` does not make package
`com.foo.bar` `@NullMarked`.) If applied to a class or interface then its scope
is all the code in that class or interface.

Outside `@NullMarked`, `@Nullable String` still means a reference that can be
null, but JSpecify doesn't have anything to say about whether plain `String` can
Expand Down
Loading

0 comments on commit e5ab548

Please sign in to comment.