Skip to content

Commit 8db66bb

Browse files
Do additional cleanup
1 parent fabc280 commit 8db66bb

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

src/NHibernate/Async/Cache/NonstrictReadWriteCache.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
//------------------------------------------------------------------------------
99

1010

11-
using System;
1211
using System.Collections;
1312
using System.Collections.Generic;
1413
using System.Linq;
@@ -169,7 +168,7 @@ public Task<ISoftLock> LockAsync(CacheKey key, object version, CancellationToken
169168
{
170169
return Task.FromResult<ISoftLock>(Lock(key, version));
171170
}
172-
catch (Exception ex)
171+
catch (System.Exception ex)
173172
{
174173
return Task.FromException<ISoftLock>(ex);
175174
}
@@ -189,7 +188,7 @@ public Task RemoveAsync(CacheKey key, CancellationToken cancellationToken)
189188
}
190189
return Cache.RemoveAsync(key, cancellationToken);
191190
}
192-
catch (Exception ex)
191+
catch (System.Exception ex)
193192
{
194193
return Task.FromException<object>(ex);
195194
}
@@ -209,7 +208,7 @@ public Task ClearAsync(CancellationToken cancellationToken)
209208
}
210209
return Cache.ClearAsync(cancellationToken);
211210
}
212-
catch (Exception ex)
211+
catch (System.Exception ex)
213212
{
214213
return Task.FromException<object>(ex);
215214
}
@@ -232,7 +231,7 @@ public Task EvictAsync(CacheKey key, CancellationToken cancellationToken)
232231
}
233232
return Cache.RemoveAsync(key, cancellationToken);
234233
}
235-
catch (Exception ex)
234+
catch (System.Exception ex)
236235
{
237236
return Task.FromException<object>(ex);
238237
}
@@ -266,7 +265,7 @@ public Task ReleaseAsync(CacheKey key, ISoftLock @lock, CancellationToken cancel
266265

267266
return Cache.RemoveAsync(key, cancellationToken);
268267
}
269-
catch (Exception ex)
268+
catch (System.Exception ex)
270269
{
271270
return Task.FromException<object>(ex);
272271
}
@@ -295,7 +294,7 @@ public Task<bool> AfterInsertAsync(CacheKey key, object value, object version, C
295294
{
296295
return Task.FromResult<bool>(AfterInsert(key, value, version));
297296
}
298-
catch (Exception ex)
297+
catch (System.Exception ex)
299298
{
300299
return Task.FromException<bool>(ex);
301300
}

src/NHibernate/Async/Cache/ReadWriteCache.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
//------------------------------------------------------------------------------
99

1010

11-
using System;
1211
using System.Collections;
1312
using System.Collections.Generic;
1413
using System.Linq;
@@ -317,7 +316,7 @@ private Task DecrementLockAsync(object key, CacheLock @lock, CancellationToken c
317316
@lock.Unlock(Cache.NextTimestamp());
318317
return Cache.PutAsync(key, @lock, cancellationToken);
319318
}
320-
catch (Exception ex)
319+
catch (System.Exception ex)
321320
{
322321
return Task.FromException<object>(ex);
323322
}
@@ -368,7 +367,7 @@ internal Task HandleLockExpiryAsync(object key, CancellationToken cancellationTo
368367
@lock.Unlock(ts);
369368
return Cache.PutAsync(key, @lock, cancellationToken);
370369
}
371-
catch (Exception ex)
370+
catch (System.Exception ex)
372371
{
373372
return Task.FromException<object>(ex);
374373
}
@@ -490,7 +489,7 @@ public Task EvictAsync(CacheKey key, CancellationToken cancellationToken)
490489
Evict(key);
491490
return Task.CompletedTask;
492491
}
493-
catch (Exception ex)
492+
catch (System.Exception ex)
494493
{
495494
return Task.FromException<object>(ex);
496495
}
@@ -506,7 +505,7 @@ public Task<bool> UpdateAsync(CacheKey key, object value, object currentVersion,
506505
{
507506
return Task.FromResult<bool>(Update(key, value, currentVersion, previousVersion));
508507
}
509-
catch (Exception ex)
508+
catch (System.Exception ex)
510509
{
511510
return Task.FromException<bool>(ex);
512511
}

src/NHibernate/Cache/CacheFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
2-
using NHibernate.Cfg;
32
using System.Collections.Generic;
3+
using NHibernate.Cfg;
44

55
namespace NHibernate.Cache
66
{
@@ -47,7 +47,7 @@ public static ICacheConcurrencyStrategy CreateCache(
4747

4848
if (mutable && usage == ReadOnly)
4949
log.Warn("read-only cache configured for mutable: {0}", name);
50-
50+
5151
return ccs;
5252
}
5353

src/NHibernate/Cache/NonstrictReadWriteCache.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.Collections;
32
using System.Collections.Generic;
43
using System.Linq;

src/NHibernate/Cache/ReadWriteCache.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.Collections;
32
using System.Collections.Generic;
43
using System.Linq;

0 commit comments

Comments
 (0)