File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/main/java/se/bjurr/violations/comments/bitbucketserver/lib Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ apply from: project.buildscript.classLoader.getResource('release.gradle').toURI(
1919
2020
2121dependencies {
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'
Original file line number Diff line number Diff line change 1616import java .util .Deque ;
1717import java .util .Iterator ;
1818import java .util .List ;
19+ import java .util .Optional ;
1920import se .bjurr .violations .comments .bitbucketserver .lib .client .BitbucketServerClient ;
2021import se .bjurr .violations .comments .bitbucketserver .lib .client .model .BitbucketServerComment ;
2122import se .bjurr .violations .comments .bitbucketserver .lib .client .model .BitbucketServerDiff ;
2930import se .bjurr .violations .comments .lib .ViolationsLogger ;
3031import se .bjurr .violations .comments .lib .model .ChangedFile ;
3132import se .bjurr .violations .comments .lib .model .Comment ;
32- import se .bjurr .violations .lib .util .Optional ;
3333
3434public class BitbucketServerCommentsProvider implements CommentsProvider {
3535
Original file line number Diff line number Diff line change 11package se .bjurr .violations .comments .bitbucketserver .lib ;
22
33import static com .google .common .base .Preconditions .checkNotNull ;
4+ import static java .util .Optional .ofNullable ;
45import static se .bjurr .violations .comments .lib .CommentsCreator .createComments ;
5- import static se .bjurr .violations .lib .util .Optional .fromNullable ;
66import static se .bjurr .violations .lib .util .Utils .firstNonNull ;
77import static se .bjurr .violations .lib .util .Utils .isNullOrEmpty ;
88
99import java .util .List ;
10+ import java .util .Optional ;
1011import java .util .logging .Level ;
1112import java .util .logging .Logger ;
1213import se .bjurr .violations .comments .lib .CommentsProvider ;
1314import se .bjurr .violations .comments .lib .ViolationsLogger ;
1415import se .bjurr .violations .lib .model .Violation ;
15- import se .bjurr .violations .lib .util .Optional ;
1616
1717public 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}
You can’t perform that action at this time.
0 commit comments