Skip to content

Commit 331e425

Browse files
committed
Refactor
1 parent 95afcc3 commit 331e425

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ hs_err_pid*
1414
/.*
1515
/bin
1616
build
17+
/*.iml

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
apply plugin: 'java'
22
apply plugin: 'maven'
33

4-
54
sourceCompatibility = JavaVersion.VERSION_1_7
65
targetCompatibility = JavaVersion.VERSION_1_7
76

87
group = 'com.projectkaiser.scm'
98
version = '2.0-SNAPSHOT'
109

11-
1210
repositories {
1311
mavenCentral()
1412
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Aug 10 11:04:58 GMT+03:00 2016
1+
#Sun Mar 26 13:53:29 MSK 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip

src/main/java/com/projectkaiser/scm/vcs/api/VCSChangeType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ public enum VCSChangeType {
1212
MODIFY,
1313

1414
/** Delete an existing file from the project */
15-
DELETE;
15+
DELETE
1616
}

src/main/java/com/projectkaiser/scm/vcs/api/workingcopy/VCSLockedWorkingCopy.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ private void init() {
5858
if (!lockFile.exists()) {
5959
continue;
6060
}
61-
if (!tryLockFile(lockFile)) {
62-
continue;
63-
} else {
61+
if (tryLockFile(lockFile)) {
6462
folder = file;
6563
state = VCSLockedWorkingCopyState.LOCKED;
6664
return;

src/test/java/com/projectkaiser/scm/vcs/api/workingcopy/VCSLockedWorkingCopyTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
import org.junit.Test;
1010

1111
public class VCSLockedWorkingCopyTest extends VCSWCTestBase {
12-
13-
private IVCSWorkspace w;
12+
1413
private IVCSRepositoryWorkspace r;
1514

1615
@Before
1716
public void setUp() {
18-
w = new VCSWorkspace(WORKSPACE_DIR);
17+
IVCSWorkspace w = new VCSWorkspace(WORKSPACE_DIR);
1918
r = w.getVCSRepositoryWorkspace(TEST_REPO_URL);
2019
}
2120

0 commit comments

Comments
 (0)