Skip to content

Commit

Permalink
Use List as return type, not ArrayList
Browse files Browse the repository at this point in the history
  • Loading branch information
pabender committed May 26, 2020
1 parent 042da4c commit bee73bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/src/jmri/implementation/DefaultConditional.java
Expand Up @@ -153,7 +153,7 @@ public void setStateVariables(List<ConditionalVariable> arrayList) {
*/
@Override
@Nonnull
public ArrayList<ConditionalVariable> getCopyOfStateVariables() {
public List<ConditionalVariable> getCopyOfStateVariables() {
ArrayList<ConditionalVariable> variableList = new ArrayList<>();
for (int i = 0; i < _variableList.size(); i++) {
ConditionalVariable variable = _variableList.get(i);
Expand Down Expand Up @@ -195,7 +195,7 @@ public void setAction(List<ConditionalAction> arrayList) {
*/
@Override
@Nonnull
public ArrayList<ConditionalAction> getCopyOfActions() {
public List<ConditionalAction> getCopyOfActions() {
ArrayList<ConditionalAction> actionList = new ArrayList<>();
for (int i = 0; i < _actionList.size(); i++) {
ConditionalAction action = _actionList.get(i);
Expand Down

0 comments on commit bee73bf

Please sign in to comment.