mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 07:40:55 +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 {
|
throws IOException {
|
||||||
return (dotDir != null) ? dotDir : (dotDir = canon("."));
|
return (dotDir != null) ? dotDir : (dotDir = canon("."));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user