mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 07:10:53 +03:00
mutable state, protect with synchronized
This commit is contained in:
@@ -49,7 +49,7 @@ public class PathHelper {
|
||||
}
|
||||
}
|
||||
|
||||
private String getDotDir()
|
||||
private synchronized String getDotDir()
|
||||
throws IOException {
|
||||
return (dotDir != null) ? dotDir : (dotDir = canon("."));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user