BUG-2749 : deprecate unused methods 85/15885/3
authorDana Kutenicsova <dkutenic@cisco.com>
Thu, 26 Feb 2015 19:29:49 +0000 (20:29 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 5 Mar 2015 08:14:07 +0000 (08:14 +0000)
- cannot be removed, they are used in stateful02

Change-Id: I08d149b7fc9dbf376942104d3eb4f35fa1a02a93
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
util/src/main/java/org/opendaylight/protocol/util/ByteArray.java

index d5e7ecd87261e1fbe7449d6a982ca933dc1a953e..83b6d863768ba95539c2bb75a8200ee17d6e7b17 100644 (file)
@@ -173,6 +173,7 @@ public final class ByteArray {
      * @param b byte to be parsed
      * @return array of booleans with size of 8
      */
+    @Deprecated
     public static boolean[] parseBits(final byte b) {
         final boolean[] bits = new boolean[Byte.SIZE];
         int j = 0;
@@ -189,6 +190,7 @@ public final class ByteArray {
      * @param bytes array of bytes to be parsed
      * @return BitSet with length = bytes.length * Byte.SIZE
      */
+    @Deprecated
     public static BitSet bytesToBitSet(final byte[] bytes) {
         final BitSet bitSet = new BitSet(bytes.length * Byte.SIZE);
         for (int bytesIter = 0; bytesIter < bytes.length; bytesIter++) {
@@ -207,6 +209,7 @@ public final class ByteArray {
      * @param returnedLength Length of returned array. Overlapping flags are truncated.
      * @return parsed array of bytes with length of bitSet.length / Byte.SIZE
      */
+    @Deprecated
     public static byte[] bitSetToBytes(final BitSet bitSet, final int returnedLength) {
         final byte[] bytes = new byte[returnedLength];