@@ -109,7 +109,7 @@ public synchronized void onRemove(RevokingTuple tuple, byte[] value) {
109109 }
110110
111111 @ Override
112- public synchronized void merge () throws RevokingStoreIllegalStateException {
112+ public synchronized void merge () {
113113 if (activeDialog <= 0 ) {
114114 throw new RevokingStoreIllegalStateException ("activeDialog has to be greater than 0" );
115115 }
@@ -148,7 +148,7 @@ public synchronized void merge() throws RevokingStoreIllegalStateException {
148148 .filter (e -> {
149149 boolean has = prevState .oldValues .containsKey (e .getKey ());
150150 if (has ) {
151- prevState .removed .put (e .getKey (), e . getValue ( ));
151+ prevState .removed .put (e .getKey (), prevState . oldValues . get ( e . getKey () ));
152152 prevState .oldValues .remove (e .getKey ());
153153 }
154154
@@ -161,7 +161,7 @@ public synchronized void merge() throws RevokingStoreIllegalStateException {
161161 }
162162
163163 @ Override
164- public synchronized void revoke () throws RevokingStoreIllegalStateException {
164+ public synchronized void revoke () {
165165 if (disabled ) {
166166 return ;
167167 }
@@ -189,7 +189,7 @@ public synchronized void revoke() throws RevokingStoreIllegalStateException {
189189 }
190190
191191 @ Override
192- public synchronized void commit () throws RevokingStoreIllegalStateException {
192+ public synchronized void commit () {
193193 if (activeDialog <= 0 ) {
194194 throw new RevokingStoreIllegalStateException ("activeDialog has to be greater than 0" );
195195 }
@@ -198,7 +198,7 @@ public synchronized void commit() throws RevokingStoreIllegalStateException {
198198 }
199199
200200 @ Override
201- public synchronized void pop () throws RevokingStoreIllegalStateException {
201+ public synchronized void pop () {
202202 if (activeDialog != 0 ) {
203203 throw new RevokingStoreIllegalStateException ("activeDialog has to be equal 0" );
204204 }
@@ -311,28 +311,28 @@ public Dialog(RevokingDatabase revokingDatabase, boolean disableOnExit) {
311311 this .disableOnExit = disableOnExit ;
312312 }
313313
314- void commit () throws RevokingStoreIllegalStateException {
314+ void commit () {
315315 applyRevoking = false ;
316316 revokingDatabase .commit ();
317317 }
318318
319- void revoke () throws RevokingStoreIllegalStateException {
319+ void revoke () {
320320 if (applyRevoking ) {
321321 revokingDatabase .revoke ();
322322 }
323323
324324 applyRevoking = false ;
325325 }
326326
327- void merge () throws RevokingStoreIllegalStateException {
327+ void merge () {
328328 if (applyRevoking ) {
329329 revokingDatabase .merge ();
330330 }
331331
332332 applyRevoking = false ;
333333 }
334334
335- void copy (Dialog dialog ) throws RevokingStoreIllegalStateException {
335+ void copy (Dialog dialog ) {
336336 if (this .equals (dialog )) {
337337 return ;
338338 }
@@ -358,7 +358,7 @@ public void destroy() {
358358 }
359359
360360 @ Override
361- public void close () throws RevokingStoreIllegalStateException {
361+ public void close () {
362362 try {
363363 if (applyRevoking ) {
364364 revokingDatabase .revoke ();
0 commit comments