package monica.examples.storage;

import monica.framework.Storage;
import monica.framework.storage.AbstractStorageFactory;

public class DiskStorageFactory extends AbstractStorageFactory{
	private static Storage diskStorage = new StorageOnDisk();

	@Override
	public  Storage newStorageInstance() {
		if(null == diskStorage){
			diskStorage = new StorageOnDisk();
		}
		return diskStorage;
	}
}

@@ -401,11 +401,14 @@
 e;%0D%0A%09%7D%0D%0A
+%09%0D%0A
 %7D%0D%0A

Modify the code