Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Dec 22, 2024
1 parent 2e462ce commit 06d1f1a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,6 @@ jobs:
git clone --depth 1 https://github.com/ben-manes/caffeine.git /tmp/caffeine
- name: Run caffeine build
run: |
cp nullaway-override.gradle.kts /tmp/caffeine
cd /tmp/caffeine
./gradlew build -x test -x javadoc
./gradlew --init-script nullaway-override.gradle.kts build -x test -x javadoc
22 changes: 22 additions & 0 deletions nullaway-override.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
allprojects {
repositories {
mavenCentral()
mavenLocal()
gradlePluginPortal()
}
}

gradle.projectsLoaded {
rootProject.allprojects {
configurations.all {
resolutionStrategy {
eachDependency {
if (requested.group == "com.uber.nullaway") {
useVersion("+")
}
}
cacheChangingModulesFor(0, "seconds")
}
}
}
}
3 changes: 3 additions & 0 deletions nullaway/src/main/java/com/uber/nullaway/NullAway.java
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ public Description matchAssignment(AssignmentTree tree, VisitorState state) {
if (!withinAnnotatedCode(state)) {
return Description.NO_MATCH;
}
if (true) {
throw new RuntimeException("test");
}
Type lhsType = ASTHelpers.getType(tree.getVariable());
if (lhsType != null && lhsType.isPrimitive()) {
doUnboxingCheck(state, tree.getExpression());
Expand Down

0 comments on commit 06d1f1a

Please sign in to comment.