If the agent can't find a source file in the project's git repo, it will fall back to looking in the filesystem.
For example, for the class in com.example.pkg.Foo, it will try src/main/java/com/example/pkg/Foo.java, src/main/test/com/example/pkg/Foo.java, and com/example/pkg/Foo.java, and use the first one it finds (if any). If the class is in the unnamed package, i.e. just Foo, it will look for Foo.java.
If the agent can't find a source file in the project's git repo, it will fall back to looking in the filesystem.
For example, for the class in
com.example.pkg.Foo
, it will trysrc/main/java/com/example/pkg/Foo.java
,src/main/test/com/example/pkg/Foo.java
, andcom/example/pkg/Foo.java
, and use the first one it finds (if any). If the class is in the unnamed package, i.e. justFoo
, it will look forFoo.java
.