Explorar o código

[mall-search] remove ehcache

sunyj %!s(int64=7) %!d(string=hai) anos
pai
achega
8d2d650797

+ 1 - 2
mall-search/src/main/java/com/uas/search/util/ObjectToDocumentUtils.java

@@ -3,7 +3,6 @@ package com.uas.search.util;
 import com.alibaba.fastjson.JSONObject;
 import com.uas.search.constant.SearchConstants;
 import com.uas.search.model.*;
-import net.sf.ehcache.search.SearchException;
 import org.apache.lucene.document.*;
 import org.apache.lucene.document.Field.Store;
 import org.apache.lucene.util.BytesRef;
@@ -56,7 +55,7 @@ public class ObjectToDocumentUtils {
 		} else if (object instanceof PurchaseInvoice) {
 			return toDocument((PurchaseInvoice) object);
         } else {
-			throw new SearchException("不支持将以下类型转换为Document:" + object.getClass().getName());
+			throw new IllegalArgumentException("不支持将以下类型转换为Document:" + object.getClass().getName());
 		}
 	}