[hornetq-commits] JBoss hornetq SVN: r12257 - trunk/etc.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Mar 7 07:48:59 EST 2012


Author: borges
Date: 2012-03-07 07:48:58 -0500 (Wed, 07 Mar 2012)
New Revision: 12257

Modified:
   trunk/etc/findbugs-exclude.xml
Log:
findbugs: Ok to return mutable object in these cases

Modified: trunk/etc/findbugs-exclude.xml
===================================================================
--- trunk/etc/findbugs-exclude.xml	2012-03-07 12:48:48 UTC (rev 12256)
+++ trunk/etc/findbugs-exclude.xml	2012-03-07 12:48:58 UTC (rev 12257)
@@ -14,6 +14,27 @@
     <Bug pattern="EI_EXPOSE_REP"/>
   </Match>
 
+  <!-- Ok to return mutable Object -->
+  <Match>
+    <Or>
+      <Class name="org.hornetq.core.protocol.core.impl.wireformat.ReplicationStartSyncMessage" />
+      <Class name="org.hornetq.core.protocol.core.impl.wireformat.ReplicationSyncFileMessage" />
+      <Class name="org.hornetq.core.protocol.core.impl.wireformat.ReplicationLargeMessageWriteMessage" />
+    </Or>
+    <Bug pattern="EI_EXPOSE_REP"/>
+  </Match>
+  <!-- Ok to return mutable Object, here restricted to method getRecordData -->
+  <Match>
+    <Or>
+      <Class name="org.hornetq.core.protocol.core.impl.wireformat.ReplicationAddMessage" />
+      <Class name="org.hornetq.core.protocol.core.impl.wireformat.ReplicationAddTXMessage" />
+      <Class name="org.hornetq.core.protocol.core.impl.wireformat.ReplicationDeleteTXMessage" />
+      <Class name="org.hornetq.core.protocol.core.impl.wireformat.ReplicationPrepareMessage" />
+    </Or>
+    <Method name="getRecordData" />
+    <Bug pattern="EI_EXPOSE_REP"/>
+  </Match>
+
   <!-- Comparison is correct within its context -->
   <Match>
     <Class name="org.hornetq.ra.Util"/>



More information about the hornetq-commits mailing list