Skip to content

Commit f26423b

Browse files
committed
Fix typo.
1 parent 45d9232 commit f26423b

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

cryptomator/src/main/java/ch/cyberduck/core/cryptomator/AbstractVault.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ public abstract class AbstractVault implements Vault {
5858

5959
public abstract Path getConfig();
6060

61-
public abstract Path gethHome();
62-
6361
public abstract int getVersion();
6462

6563
public abstract FileHeaderCryptor getFileHeaderCryptor();
@@ -140,7 +138,7 @@ public Path encrypt(Session<?> session, Path file, byte[] directoryId, boolean m
140138
log.warn("Skip file {} because it is marked as an internal vault path", file);
141139
return file;
142140
}
143-
if(new SimplePathPredicate(file).test(this.gethHome())) {
141+
if(new SimplePathPredicate(file).test(this.getHome())) {
144142
log.warn("Skip vault home {} because the root has no metadata file", file);
145143
return file;
146144
}
@@ -179,7 +177,7 @@ public Path encrypt(Session<?> session, Path file, byte[] directoryId, boolean m
179177
return file;
180178
}
181179
if(file.getType().contains(Path.Type.vault)) {
182-
return this.getDirectoryProvider().toEncrypted(session, this.gethHome().attributes().getDirectoryId(), this.gethHome());
180+
return this.getDirectoryProvider().toEncrypted(session, this.getHome().attributes().getDirectoryId(), this.getHome());
183181
}
184182
encrypted = this.getDirectoryProvider().toEncrypted(session, directoryId, file);
185183
}
@@ -188,8 +186,8 @@ public Path encrypt(Session<?> session, Path file, byte[] directoryId, boolean m
188186
encrypted.attributes().setDecrypted(file);
189187
}
190188
// Add reference for vault
191-
file.attributes().setVault(this.gethHome());
192-
encrypted.attributes().setVault(this.gethHome());
189+
file.attributes().setVault(this.getHome());
190+
encrypted.attributes().setVault(this.getHome());
193191
return encrypted;
194192
}
195193

@@ -233,7 +231,7 @@ public Path decrypt(final Session<?> session, final Path file) throws Background
233231
// Add reference to encrypted file
234232
attributes.setEncrypted(file);
235233
// Add reference for vault
236-
attributes.setVault(this.gethHome());
234+
attributes.setVault(this.getHome());
237235
final EnumSet<Path.Type> type = EnumSet.copyOf(file.getType());
238236
type.remove(this.isDirectory(inflated) ? Path.Type.file : Path.Type.directory);
239237
type.add(this.isDirectory(inflated) ? Path.Type.directory : Path.Type.file);
@@ -279,7 +277,7 @@ public synchronized boolean isUnlocked() {
279277
@Override
280278
public boolean contains(final Path file) {
281279
if(this.isUnlocked()) {
282-
return new SimplePathPredicate(file).test(this.gethHome()) || file.isChild(this.getHome());
280+
return new SimplePathPredicate(file).test(this.getHome()) || file.isChild(this.getHome());
283281
}
284282
return false;
285283
}

cryptomator/src/main/java/ch/cyberduck/core/cryptomator/CryptoVault.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,6 @@ public Path getConfig() {
388388
return config;
389389
}
390390

391-
@Override
392-
public Path gethHome() {
393-
return home;
394-
}
395-
396391
@Override
397392
public int getVersion() {
398393
return vaultVersion;

cryptomator/src/main/java/ch/cyberduck/core/cryptomator/UVFVault.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public Path getConfig() {
109109
}
110110

111111
@Override
112-
public Path gethHome() {
112+
public Path getHome() {
113113
return home;
114114
}
115115

@@ -153,11 +153,6 @@ public int getVersion() {
153153
return VAULT_VERSION;
154154
}
155155

156-
@Override
157-
public Path getHome() {
158-
return home;
159-
}
160-
161156
@Override
162157
public boolean equals(final Object o) {
163158
if(this == o) {

0 commit comments

Comments
 (0)