Skip to content

Commit 9e81922

Browse files
committed
Formatting the code
1 parent a62fd97 commit 9e81922

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/main/java/org/cyclopsgroup/gitcon/github/OmniResourceRepository.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package org.cyclopsgroup.gitcon.github;
22

3+
import com.google.common.base.Strings;
34
import java.io.File;
45
import java.io.IOException;
56
import java.util.regex.Matcher;
67
import java.util.regex.Pattern;
78
import org.cyclopsgroup.gitcon.FileSystemResourceRepository;
89
import org.cyclopsgroup.gitcon.Resource;
910
import org.cyclopsgroup.gitcon.ResourceRepository;
10-
import com.google.common.base.Strings;
1111

1212
public class OmniResourceRepository implements ResourceRepository {
1313
private static final Pattern FILE_PATTERN = Pattern.compile("^file:(.+)$");
@@ -30,7 +30,8 @@ private static Matcher matchWithGroups(String string, Pattern pattern, int group
3030
Matcher m = pattern.matcher(string);
3131
if (m.matches() && m.groupCount() != groups) {
3232
throw new IllegalStateException(
33-
String.format("Unexpected number of groups %s is found from input %s against pattern %s.",
33+
String.format(
34+
"Unexpected number of groups %s is found from input %s against pattern %s.",
3435
m.groupCount(), string, pattern));
3536
}
3637
return m;
@@ -51,4 +52,3 @@ ResourceRepository getDelegateRepository() {
5152
return repository;
5253
}
5354
}
54-

src/test/java/org/cyclopsgroup/gitcon/github/OmniResourceRepositoryTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
package org.cyclopsgroup.gitcon.github;
22

33
import static com.google.common.truth.Truth.assertThat;
4+
45
import java.io.File;
56
import java.io.IOException;
67
import org.cyclopsgroup.gitcon.FileSystemResourceRepository;
78
import org.junit.Test;
89

910
public class OmniResourceRepositoryTest {
10-
private static GithubResourceRepository verifyNames(OmniResourceRepository repo,
11-
String expectedUser, String expectedRepo) {
11+
private static GithubResourceRepository verifyNames(
12+
OmniResourceRepository repo, String expectedUser, String expectedRepo) {
1213
assertThat(repo.getDelegateRepository()).isInstanceOf(GithubResourceRepository.class);
1314
GithubResourceRepository githubRepo = (GithubResourceRepository) repo.getDelegateRepository();
1415
assertThat(githubRepo.getGithubUser()).isEqualTo(expectedUser);

0 commit comments

Comments
 (0)