Skip to content

Commit

Permalink
Make improvements for checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomejt committed Jun 23, 2015
1 parent e1f1c50 commit 15c7193
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions core/src/main/java/pro/jtaylor/timetracker/core/Tracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,36 @@ public class Tracker {
@Autowired
private List<TimeEntry> entries;

/**
* Add method
* @param TimeEntry to add to entries
* /
public void add(TimeEntry entry) {
entries.add(entry);
}

/**
* Remove method
* @param TimeEntry to remove from entries
* /
public void remove(TimeEntry entry) {
entries.remove(entry);
}

/**
* Size method
* @param int size for entries
* /
public int size() {
return entries.size();
}

/**
* Get method
* @param int index for entries
* /
public TimeEntry get(int index) {

boolean valid = false;
if (valid == true) {
// whatever
}

return entries.get(index);
}
}

0 comments on commit 15c7193

Please sign in to comment.