JDNdeveloper / Off-By-One

CMPS 115 Project: Jayden Navarro, John Gemignani, Alex Gonzalez, Kevin Cheng, Josh Innis
0 stars 0 forks source link

replaceAbstractBaseEvent always returns false #154

Closed JoshInnis closed 9 years ago

JoshInnis commented 9 years ago

John in Storage.java, you have the code @Override public boolean replaceAbstractBaseEvent(AbstractBaseEvent abstractBaseEvent) { sharedStorageInstance.saveAbstractBaseEvent(abstractBaseEvent); return false; }

After testing, this will always return false, even if sharedStorageInstance.saveAbstractBaseEvent(abstractBaseEvent); returns true. I tested this step-by-step to make sure there were no other errors, which I immediately deleted. You need to change your code to @Override public boolean replaceAbstractBaseEvent(AbstractBaseEvent abstractBaseEvent) { return sharedStorageInstance.saveAbstractBaseEvent(abstractBaseEvent); }

I am sure that this is the problem because I am 100% sure that Storage actually does save it, its just saying its not.