Skip to content

Commit

Permalink
Fixing formatting on enum value names
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayden Gomes authored and Hayden Gomes committed Mar 11, 2016
1 parent a26130e commit 5ca6891
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ class HttpBucketListClient(private val baseUrl: URL,

private fun getDiffAPICommentModeValue(commentMode: CommentMode): String {
when(commentMode) {
CommentMode.WithComments -> return "true"
CommentMode.WithoutComments -> return "false"
CommentMode.WITH_COMMENTS -> return "true"
CommentMode.WITHOUT_COMMENTS -> return "false"
}
}

private fun getDiffAPIWhitespaceModeValue(whitespaceMode: WhitespaceMode): String {
when(whitespaceMode) {
WhitespaceMode.Show -> return "show"
WhitespaceMode.IgnoreAll -> return "ignore-all"
WhitespaceMode.SHOW -> return "show"
WhitespaceMode.IGNORE_ALL -> return "ignore-all"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package io.aexp.bucketlist


enum class WhitespaceMode {
Show,
IgnoreAll
SHOW,
IGNORE_ALL
}


Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package io.aexp.bucketlist.data


enum class CommentMode {
WithComments,
WithoutComments
WITH_COMMENTS,
WITHOUT_COMMENTS
}
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public void testGetPrDiff() throws IOException {
giveResponse(Resources.toString(getResource(getClass(), "getPrDiffResp.json"), UTF_8),
"application/json"));

PullRequestDiffResponse diffResponse = client.getPrDiff(proj, repo, 2, 0, WhitespaceMode.IgnoreAll, CommentMode.WithoutComments)
PullRequestDiffResponse diffResponse = client.getPrDiff(proj, repo, 2, 0, WhitespaceMode.IGNORE_ALL, CommentMode.WITHOUT_COMMENTS)
.toBlocking()
.first();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ object ExportPrFileOccurrencesData {
Observable<String> {
logger.debug("Fetching diff for PR " + prId);

return client.getPrDiff(projectKey, repoSlug, prId, 0, WhitespaceMode.IgnoreAll, CommentMode.WithoutComments)
return client.getPrDiff(projectKey, repoSlug, prId, 0, WhitespaceMode.IGNORE_ALL, CommentMode.WITHOUT_COMMENTS)
.flatMap { diffResponse ->
logger.debug("Parsing PR for files changed");
// Filter diffs with Null sources or destinations as that indicates a new or deleted file. Then
Expand Down

0 comments on commit 5ca6891

Please sign in to comment.