Skip to content

Commit

Permalink
devonfw#10: fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-vcapgemini committed Nov 9, 2023
1 parent 53e9181 commit 87165ee
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public AbstractWorkspaceMerger(IdeContext context) {
}

/**
* @param file the {@link Path} for which the {@link Path#getParent() parent directory} needs to exists and will be
* @param file the {@link Path} for which the {@link Path#getParent() parent directory} needs to exist and will be
* created if absent by this method.
*/
protected static void ensureParentDirecotryExists(Path file) {
protected static void ensureParentDirectoryExists(Path file) {

Path parentDir = file.getParent();
if (!Files.exists(parentDir)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void inverseMerge(Path workspaceFile, EnvironmentVariables resolver, bool

private void copy(Path sourceFile, Path targetFile) {

ensureParentDirecotryExists(targetFile);
ensureParentDirectoryExists(targetFile);
try {
Files.copy(sourceFile, targetFile, StandardCopyOption.REPLACE_EXISTING);
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private static JsonStructure load(Path file) {

private static void save(JsonStructure json, Path file) {

ensureParentDirecotryExists(file);
ensureParentDirectoryExists(file);
try (OutputStream out = Files.newOutputStream(file)) {

Map<String, Object> config = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private void resolve(Properties properties, EnvironmentVariables variables, Obje
public static void save(Properties properties, Path file) {

Log.trace("Saving properties file " + file);
ensureParentDirecotryExists(file);
ensureParentDirectoryExists(file);
try (Writer writer = Files.newBufferedWriter(file)) {
properties.store(writer, null);
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static Document load(Path file) {
*/
public static void save(Document document, Path file) {

ensureParentDirecotryExists(file);
ensureParentDirectoryExists(file);
try {
Transformer transformer = TRANSFORMER_FACTORY.newTransformer();
DOMSource source = new DOMSource(document);
Expand Down

0 comments on commit 87165ee

Please sign in to comment.