Skip to content

Commit

Permalink
Clean the code according to review - reformat, change modifiers etc.
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
A4Vision committed May 22, 2018
1 parent 3304b51 commit a6968d7
Show file tree
Hide file tree
Showing 2 changed files with 215 additions and 223 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
import java.util.List;

public class PayloadContentCommits {
List<Commit> commits;
private List<Commit> commits;

public PayloadContentCommits() {
commits = new ArrayList<Commit>();
}

void populateCommits(SRunningBuild sRunningBuild) {
public void populateCommits(SRunningBuild sRunningBuild) {
List<SVcsModification> changes = sRunningBuild.getContainingChanges();
if (changes == null) {
return;
Expand All @@ -42,4 +42,4 @@ public List<Commit> getCommits() {
public void setCommits(List<Commit> commits) {
this.commits = commits;
}
}
}
Loading

0 comments on commit a6968d7

Please sign in to comment.