BitbucketPushEvent.java 文件源码

java
阅读 20 收藏 0 点赞 0 评论 0

项目:bitbucket-webhooks-plugin 作者:
@JsonIgnore
@Override
public List<String> getBranches() {
    if (this.getPush() == null || this.getPush().getChanges() == null) {
        return new ArrayList<>();
    }
    return this.getPush().getChanges()
            .stream()
            .filter(bitbucketPushChange -> bitbucketPushChange != null && bitbucketPushChange.getNew() != null)
            .map(bitbucketPushChange -> bitbucketPushChange.getNew().getName())
            .collect(Collectors.toList());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号