squid:S1319 - Declarations should use Java collection interfaces such as List rather than specific implementation classes such as LinkedList

This commit is contained in:
Mohammed Ezzat
2016-02-22 19:39:26 +02:00
parent c580b61df3
commit e4c34b1e22
11 changed files with 23 additions and 15 deletions

View File

@ -22,7 +22,7 @@
*/
package com.iluwatar.servant;
import java.util.ArrayList;
import java.util.List;
/**
*
@ -55,7 +55,7 @@ public class Servant {
/**
* Check if we will be hanged
*/
public boolean checkIfYouWillBeHanged(ArrayList<Royalty> tableGuests) {
public boolean checkIfYouWillBeHanged(List<Royalty> tableGuests) {
boolean anotherDay = true;
for (Royalty r : tableGuests) {
if (!r.getMood()) {