Skip to content

Commit

Permalink
Merge pull request #11 from thewisenerd/master
Browse files Browse the repository at this point in the history
JerseyMethodParameterDefault: fix element for inference
  • Loading branch information
rajeshdixitudaan authored Mar 2, 2022
2 parents 3b0f336 + 12494a8 commit 2d5b838
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class JerseyMethodParameterDefaultValue(config: Config) : Rule(config) {
report(
CodeSmell(
issue = issue,
entity = Entity.from(function),
entity = Entity.from(parameter),
message = "probable jersey resource method (${function.name}) has parameter with defaultValue (${parameter.name})"
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class JerseyTest {
val code = TestUtils.readFile("simple05.kt")
val findings = subject.compileAndLintWithContext(TestUtils.env, code)
ensureJerseyMethodParameterDefaultValueFindings(findings, listOf(
SourceLocation(13, 1),
SourceLocation(19, 1)
SourceLocation(15, 10),
SourceLocation(21, 10)
))
}

Expand Down

0 comments on commit 2d5b838

Please sign in to comment.