Skip to content

Commit

Permalink
Disable annotation parameter default value type information until we …
Browse files Browse the repository at this point in the history
…can figure out how to do it correctly
  • Loading branch information
sambsnyd committed Dec 14, 2022
1 parent b214678 commit d9681ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ public JavaType.Method methodDeclarationType(@Nullable Symbol symbol, @Nullable
null,
paramNames,
null, null, null,
methodSymbol.getDefaultValue() != null ? methodSymbol.defaultValue.getValue() : null
// TODO: Figure out the correct thing to put here based on methodSymbol.defaultValue.getValue()
null
);
typeCache.put(signature, method);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package org.openrewrite.java

import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.fail
import org.openrewrite.InMemoryExecutionContext
Expand All @@ -38,6 +39,7 @@ interface JavaParserTypeMappingTest : JavaTypeMappingTest {
parser.reset()
}

@Disabled
@Issue("https://github.com/openrewrite/rewrite/issues/2445")
@Test
fun annotationParameterDefaults() {
Expand Down

0 comments on commit d9681ae

Please sign in to comment.