mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 22:14:41 +00:00
Changing code to use interfaces instead of implementations.
This commit is contained in:
1 parent
6292690250
commit
d6fc28e120
24 files changed
+346
-13
No files matched your search
@@ -22,6 +22,7 @@
|
||||
*/
|
||||
package com.iluwatar.semaphore;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
@@ -29,7 +30,7 @@ import java.util.ArrayList;
|
||||
*/
|
||||
public class FruitBowl {
|
||||
|
||||
private ArrayList<Fruit> fruit = new ArrayList<>();
|
||||
private List<Fruit> fruit = new ArrayList<>();
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user