-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Java CI with Gradle | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
java: [ '11', '17', '21' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
show-progress: false | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.java }} | ||
- name: ./gradlew build javadoc | ||
run: ./gradlew build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
2 changes: 1 addition & 1 deletion
2
src/main/java/org/checkerframework/checker/templatefora/qual/README
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
The "qual" directory contains a typechecker's type qualifiers, which are | ||
The `qual/` directory contains a typechecker's type qualifiers, which are | ||
represented by Java annotations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import org.checkerframework.checker.templatefora.qual.*; | ||
|
||
// Test basic subtyping relationships for the TemplateForA Checker. | ||
// Test subtyping relationships for the TemplateForA Checker. | ||
class SubtypeTest { | ||
void allSubtypingRelationships(@TemplateforaUnknown int x, @TemplateforaBottom int y) { | ||
@TemplateforaUnknown int a = x; | ||
@TemplateforaUnknown int b = y; | ||
// :: error: assignment | ||
@TemplateforaBottom int c = x; // expected error on this line | ||
@TemplateforaBottom int d = y; | ||
} | ||
void allSubtypingRelationships(@TemplateforaUnknown int x, @TemplateforaBottom int y) { | ||
@TemplateforaUnknown int a = x; | ||
@TemplateforaUnknown int b = y; | ||
// :: error: assignment | ||
@TemplateforaBottom int c = x; // expected error on this line | ||
@TemplateforaBottom int d = y; | ||
} | ||
} |