Renumbered object identifiers to reflect removal of OFFER_ID.

This commit is contained in:
akwizgran
2011-09-12 16:23:55 +01:00
parent 64548375cc
commit fd2046d984
2 changed files with 8 additions and 9 deletions

View File

@@ -17,9 +17,8 @@ public interface Tags {
static final int MESSAGE = 7;
static final int MESSAGE_ID = 8;
static final int OFFER = 9;
// FIXME: Renumber
static final int REQUEST = 11;
static final int SUBSCRIPTION_UPDATE = 12;
static final int TRANSPORT_PROPERTIES = 13;
static final int TRANSPORT_UPDATE = 14;
static final int REQUEST = 10;
static final int SUBSCRIPTION_UPDATE = 11;
static final int TRANSPORT_PROPERTIES = 12;
static final int TRANSPORT_UPDATE = 13;
}

View File

@@ -42,9 +42,9 @@ public class RequestWriterImplTest extends TestCase {
b.set(12);
b.set(15);
r.writeRequest(b, 16);
// Short user tag 11, short bytes with length 2, 0xD959
// Short user tag 10, short bytes with length 2, 0xD959
byte[] output = out.toByteArray();
assertEquals("CB" + "92" + "D959", StringUtils.toHexString(output));
assertEquals("CA" + "92" + "D959", StringUtils.toHexString(output));
}
@Test
@@ -63,8 +63,8 @@ public class RequestWriterImplTest extends TestCase {
b.set(11);
b.set(12);
r.writeRequest(b, 13);
// Short user tag 11, short bytes with length 2, 0x59D8
// Short user tag 10, short bytes with length 2, 0x59D8
byte[] output = out.toByteArray();
assertEquals("CB" + "92" + "59D8", StringUtils.toHexString(output));
assertEquals("CA" + "92" + "59D8", StringUtils.toHexString(output));
}
}