Skip to content

Commit a6968d7

Browse files
committed
Clean the code according to review - reformat, change modifiers etc.
* Indentation - reformatted file with 4 spaces tab * Initialization - initialized with a default initializer. * Changed the field `commits` to private * Added missing new line at the end of file. * Made the new function public.
1 parent 3304b51 commit a6968d7

File tree

2 files changed

+215
-223
lines changed

2 files changed

+215
-223
lines changed

tcslackbuildnotifier-core/src/main/java/slacknotifications/teamcity/payload/content/PayloadContentCommits.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
import java.util.List;
1212

1313
public class PayloadContentCommits {
14-
List<Commit> commits;
14+
private List<Commit> commits;
1515

1616
public PayloadContentCommits() {
1717
commits = new ArrayList<Commit>();
1818
}
1919

20-
void populateCommits(SRunningBuild sRunningBuild) {
20+
public void populateCommits(SRunningBuild sRunningBuild) {
2121
List<SVcsModification> changes = sRunningBuild.getContainingChanges();
2222
if (changes == null) {
2323
return;
@@ -42,4 +42,4 @@ public List<Commit> getCommits() {
4242
public void setCommits(List<Commit> commits) {
4343
this.commits = commits;
4444
}
45-
}
45+
}

0 commit comments

Comments
 (0)