瀏覽代碼

#415

add findbug exclude pattern and romove fastjson dependency from mqclient
wenqiangzhu 6 年之前
父節點
當前提交
afdec0a921
共有 2 個文件被更改,包括 36 次插入22 次删除
  1. 30 22
      com.creditease.uav.fastjson/findbugs.exclude.xml
  2. 6 0
      com.creditease.uav.mq/pom.xml

+ 30 - 22
com.creditease.uav.fastjson/findbugs.exclude.xml

@@ -1,23 +1,31 @@
-<?xml version="1.0"?>
-<FindBugsFilter>
-	<Match>
-        <Class name="com.alibaba.fastjson.util.IOUtils" />   		
-   		<Bug pattern="MS_MUTABLE_ARRAY" />
-   </Match>
-   <Match>
-        <Class name="com.alibaba.fastjson.JSON" />   		
-   		<Bug pattern="MS_SHOULD_BE_FINAL" />
-   </Match>
-   <Match>
-        <Package name="com.alibaba.fastjson.serializer" />   		
-   		<Bug pattern="MS_SHOULD_BE_FINAL" />
-   </Match>
-   <Match>
-        <Class name="com.alibaba.fastjson.parser.JSONReaderScanner" />   		
-   		<Bug pattern="MS_SHOULD_BE_FINAL" />
-   </Match>
-   <Match>
-   		<Class name="com.alibaba.fastjson.util.FieldInfo" />
-   </Match>
-  
+<?xml version="1.0"?>
+<FindBugsFilter>
+	<Match>
+		<Class name="com.alibaba.fastjson.util.IOUtils" />
+	</Match>
+	<Match>
+		<Bug pattern="MS_SHOULD_BE_FINAL" />
+	</Match>
+	<Match>
+		<Class name="com.alibaba.fastjson.util.FieldInfo" />
+	</Match>
+	<Match>
+		<Class name="com.alibaba.fastjson.parser.JSONLexerBase" />
+		<Bug pattern="IL_INFINITE_LOOP" />
+	</Match>
+	<Match>
+		<Bug pattern="RpC_REPEATED_CONDITIONAL_TEST" />
+	</Match>
+	<Match>
+		<Class name="com.alibaba.fastjson.JSON" />
+		<Bug pattern="MS_SHOULD_BE_REFACTORED_TO_BE_FINAL" />
+	</Match>
+	<Match>
+		<Class name="com.alibaba.fastjson.TypeReference" />
+		<Bug pattern="RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED" />
+	</Match>
+	<Match>
+		<Bug pattern="UC_USELESS_CONDITION" />
+	</Match>
+
 </FindBugsFilter>

+ 6 - 0
com.creditease.uav.mq/pom.xml

@@ -24,6 +24,12 @@
 			<groupId>com.alibaba.rocketmq</groupId>
 			<artifactId>rocketmq-client</artifactId>
 			<version>3.2.6</version>
+			<exclusions>
+				<exclusion>
+					<groupId>com.alibaba</groupId>
+					<artifactId>fastjson</artifactId>
+				</exclusion>
+			</exclusions>
 		</dependency>
 
 		<!--test -->