diff options
author | Yi Kong <yikong@google.com> | 2016-12-14 13:51:42 +0000 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2016-12-14 15:31:34 +0000 |
commit | 0b6eb5a4e4dd58d49a01e60cf84f8c89e071ac80 (patch) | |
tree | 0193c20cc991d4119c0de28f14b20fc474f09c9b /annotations/generate_annotated_java_files.py | |
parent | e30fed3a66f9bdea5790eefb41e14f64bc6d2dc9 (diff) |
Add test to assert DatagramSocket#receive behaviour
If a packet is received on a DatagraSocket, and its source address is
the same as the packet's address, then the packet's address object
should be left unchanged and is the same object.
This behaviour was unintentionally changed in the Android N release, but
we decide to keep this behaviour since it is not likely to break any
existing code and it has better performance by avoid creating extra
objects.
Test: libcore.java.net.DatagramSocketTest
Change-Id: I8a54f33b3f103f564e4963eac374be97d991f663
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions