New owners now can be created properly.
[RRRRHHHH_Code] / ruralHouses / src / businessLogic / AdminManager.java
index 9c562fd..a344f2c 100644 (file)
@@ -46,8 +46,8 @@ public class AdminManager extends UnicastRemoteObject implements AdminInterface
                Administrator.getInstance().getRemoveRequest().remove(house);
        }
        
-       public void removeOwnerAdditionRequests(Account acc) throws RemoteException {
-               Administrator.getInstance().getNewOwnerRequest().remove(acc);
+       public void removeOwnerAdditionRequests(int index) throws RemoteException {
+               Administrator.getInstance().getNewOwnerRequest().remove(index);
        }
        
        public boolean addAdditionRequest(RuralHouse rh) throws RemoteException {