Skip to content

Commit

Permalink
Merge pull request #12 from alexaldev/main
Browse files Browse the repository at this point in the history
Add new keyword in Java snippet for static mocking example
  • Loading branch information
NotWoods committed Sep 21, 2023
2 parents 763d5e9 + 6dfe387 commit 8b83e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/mocking/static.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ package com.name.app;

class Writer {
public static File getFile(String path) {
return File(path);
return new File(path);
}
}
```
Expand Down

0 comments on commit 8b83e86

Please sign in to comment.