Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -180,9 +180,9 @@ public class ConcurrentMapCache extends AbstractValueAdaptingCache {
|
||||
try {
|
||||
return serializeValue(storeValue);
|
||||
}
|
||||
catch (Exception ex) {
|
||||
throw new IllegalArgumentException("Failed to serialize cache value '"
|
||||
+ userValue + "'. Does it implement Serializable?", ex);
|
||||
catch (Throwable ex) {
|
||||
throw new IllegalArgumentException("Failed to serialize cache value '" + userValue +
|
||||
"'. Does it implement Serializable?", ex);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -207,9 +207,8 @@ public class ConcurrentMapCache extends AbstractValueAdaptingCache {
|
||||
try {
|
||||
return super.fromStoreValue(deserializeValue(storeValue));
|
||||
}
|
||||
catch (Exception ex) {
|
||||
throw new IllegalArgumentException("Failed to deserialize cache value '" +
|
||||
storeValue + "'", ex);
|
||||
catch (Throwable ex) {
|
||||
throw new IllegalArgumentException("Failed to deserialize cache value '" + storeValue + "'", ex);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user