Skip to content

Commit 897d0b9

Browse files
Added final declarations
1 parent 3e78532 commit 897d0b9

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/main/java/de/variantsync/evolution/repository/BusyboxRepository.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
*/
2626
public class BusyboxRepository extends SPLRepository {
2727

28-
public BusyboxRepository(Path path) {
28+
public BusyboxRepository(final Path path) {
2929
super(path);
3030
}
3131

3232
@Override
33-
public SPLCommit checkoutCommit(final SPLCommit c, boolean forced) throws GitAPIException, IOException {
34-
SPLCommit previousCommit = super.checkoutCommit(c, forced);
33+
public SPLCommit checkoutCommit(final SPLCommit c, final boolean forced) throws GitAPIException, IOException {
34+
final SPLCommit previousCommit = super.checkoutCommit(c, forced);
3535
this.preprocess();
3636
return previousCommit;
3737
}
@@ -47,7 +47,7 @@ public void preprocess() throws IOException {
4747
Logger.debug("Normalizing Busybox files.");
4848
BusyboxRepository.normalizeDir(this.getPath().toFile());
4949
Logger.debug("Finished normalization of Busybox files.");
50-
} catch (IOException e) {
50+
} catch (final IOException e) {
5151
Logger.error("Was not able to normalize Busybox files.", e);
5252
throw e;
5353
}

src/test/java/de/variantsync/evolution/repository/BusyboxRepositoryTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package de.variantsync.evolution.repository;
22

33
import de.variantsync.evolution.Main;
4-
import de.variantsync.evolution.util.Logger;
54
import de.variantsync.evolution.variability.SPLCommit;
65
import org.eclipse.jgit.api.errors.GitAPIException;
76
import org.junit.After;
@@ -35,8 +34,8 @@ public void normalize() throws IOException {
3534

3635
@Test
3736
public void checkoutCommit() throws GitAPIException, IOException {
38-
SPLCommit simpleCommit = new SPLCommit("f27a6a94a7fb172a6768bc450dbdec68f15bc78f");
39-
SPLCommit previousCommit = BUSYBOX.checkoutCommit(simpleCommit);
37+
final SPLCommit simpleCommit = new SPLCommit("f27a6a94a7fb172a6768bc450dbdec68f15bc78f");
38+
final SPLCommit previousCommit = BUSYBOX.checkoutCommit(simpleCommit);
4039
BUSYBOX.checkoutCommit(previousCommit, true);
4140
}
4241

0 commit comments

Comments
 (0)