Skip to content

Commit

Permalink
Allowing reporter to be unset
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Sep 26, 2017
1 parent e8eef0a commit fb96416
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Changelog of Violation Comments to Bitbucket Server Plugin.
* Comments can optionaly be kept and not removed when new comments are added.
* Will no longer re-create identical comments.

[a2c186f61ea1ea4](https://github.com/jenkinsci/violation-comments-to-stash-plugin/commit/a2c186f61ea1ea4) Tomas Bjerre *2017-09-02 16:55:28*
[61d8abc9aa05c0f](https://github.com/jenkinsci/violation-comments-to-stash-plugin/commit/61d8abc9aa05c0f) Tomas Bjerre *2017-09-02 17:33:45*


## 1.53
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public boolean equals(Object obj) {
if (getClass() != obj.getClass()) {
return false;
}
ViolationConfig other = (ViolationConfig) obj;
final ViolationConfig other = (ViolationConfig) obj;
if (parser != other.parser) {
return false;
}
Expand All @@ -58,6 +58,9 @@ public String getPattern() {
}

public String getReporter() {
if (this.reporter == null) {
return this.parser.name();
}
return this.reporter;
}

Expand Down

0 comments on commit fb96416

Please sign in to comment.