Skip to content

Commit 60c6d8d

Browse files
committed
Removing custom Optional
1 parent 301f849 commit 60c6d8d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apply from: project.buildscript.classLoader.getResource('release.gradle').toURI(
1919

2020

2121
dependencies {
22-
compile 'se.bjurr.violations:violation-comments-lib:1.75'
22+
compile 'se.bjurr.violations:violation-comments-lib:1.79'
2323
compile 'com.jayway.jsonpath:json-path:2.0.0'
2424
compile 'com.google.code.gson:gson:2.8.0'
2525
compile 'com.google.guava:guava:20.0'

src/main/java/se/bjurr/violations/comments/bitbucketserver/lib/BitbucketServerCommentsProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import java.util.Deque;
1717
import java.util.Iterator;
1818
import java.util.List;
19+
import java.util.Optional;
1920
import se.bjurr.violations.comments.bitbucketserver.lib.client.BitbucketServerClient;
2021
import se.bjurr.violations.comments.bitbucketserver.lib.client.model.BitbucketServerComment;
2122
import se.bjurr.violations.comments.bitbucketserver.lib.client.model.BitbucketServerDiff;
@@ -29,7 +30,6 @@
2930
import se.bjurr.violations.comments.lib.ViolationsLogger;
3031
import se.bjurr.violations.comments.lib.model.ChangedFile;
3132
import se.bjurr.violations.comments.lib.model.Comment;
32-
import se.bjurr.violations.lib.util.Optional;
3333

3434
public class BitbucketServerCommentsProvider implements CommentsProvider {
3535

src/main/java/se/bjurr/violations/comments/bitbucketserver/lib/ViolationCommentsToBitbucketServerApi.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
package se.bjurr.violations.comments.bitbucketserver.lib;
22

33
import static com.google.common.base.Preconditions.checkNotNull;
4+
import static java.util.Optional.ofNullable;
45
import static se.bjurr.violations.comments.lib.CommentsCreator.createComments;
5-
import static se.bjurr.violations.lib.util.Optional.fromNullable;
66
import static se.bjurr.violations.lib.util.Utils.firstNonNull;
77
import static se.bjurr.violations.lib.util.Utils.isNullOrEmpty;
88

99
import java.util.List;
10+
import java.util.Optional;
1011
import java.util.logging.Level;
1112
import java.util.logging.Logger;
1213
import se.bjurr.violations.comments.lib.CommentsProvider;
1314
import se.bjurr.violations.comments.lib.ViolationsLogger;
1415
import se.bjurr.violations.lib.model.Violation;
15-
import se.bjurr.violations.lib.util.Optional;
1616

1717
public class ViolationCommentsToBitbucketServerApi {
1818
private static final Integer BITBUCKET_MAX_COMMENT_SIZE = 32767;
@@ -310,6 +310,6 @@ public ViolationCommentsToBitbucketServerApi withCommentTemplate(final String co
310310
}
311311

312312
public Optional<String> findCommentTemplate() {
313-
return fromNullable(commentTemplate);
313+
return ofNullable(commentTemplate);
314314
}
315315
}

0 commit comments

Comments
 (0)