Skip to content

Commit

Permalink
Merge pull request #12835 from bobbyphilip/patch-2
Browse files Browse the repository at this point in the history
Correcting the  micrometer quick start example
  • Loading branch information
ebullient authored Oct 21, 2020
2 parents c49f38e + d71906f commit 6312680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/micrometer.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public class PrimeNumberResource {
@GET
@Path("/{number}")
@Produces(MediaType.TEXT_PLAIN)
public String checkIfPrime(@PathParam("number") int number) {
public String checkIfPrime(@PathParam("number") long number) {
if (number < 1) {
return "Only natural numbers can be prime numbers.";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class PrimeNumberResource {
@GET
@Path("/{number}")
@Produces("text/plain")
public String checkIfPrime(@PathParam("number") int number) {
public String checkIfPrime(@PathParam("number") long number) {
if (number < 1) {
return "Only natural numbers can be prime numbers.";
}
Expand Down

0 comments on commit 6312680

Please sign in to comment.