Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Oct 10, 2024
1 parent 25ad62a commit b38e3cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ public static Stream<? extends AnnotationMirror> getTypeUseAnnotations(
Symbol typeAnnotationOwner;
switch (symbol.getKind()) {
case PARAMETER:
// use the symbol's owner for parameters, unless it's the parameter of a lambda
typeAnnotationOwner = symbol.owner;
break;
default:
Expand Down
4 changes: 2 additions & 2 deletions nullaway/src/test/java/com/uber/nullaway/Java8Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ public void testNullableLambdaParamTypeUse() {
"class Test {",
" @FunctionalInterface",
" interface NullableParamFunctionTypeUse<T, U> {",
" U takeVal(@org.jspecify.annotations.Nullable T x);",
" U takeVal(@Nullable T x);",
" }",
" static void testParamTypeUse() {",
" NullableParamFunctionTypeUse n3 = (@org.jspecify.annotations.Nullable Object x) -> (x == null) ? \"null\" : x.toString();",
" NullableParamFunctionTypeUse n3 = (@Nullable Object x) -> (x == null) ? \"null\" : x.toString();",
" NullableParamFunctionTypeUse n4 = (x) -> (x == null) ? \"null\" : x.toString();",
" }",
"}")
Expand Down

0 comments on commit b38e3cb

Please sign in to comment.