Merge pull request #532 from leogtzr/master

Adding initialization-on-demand idiom and noninstantiable class instead of interface constant idiom
This commit is contained in:
Ilkka Seppälä
2017-01-23 08:21:07 +02:00
committed by GitHub
13 changed files with 32 additions and 21 deletions

View File

@ -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<>();
/**
*