@@ -0,0 +1,754 @@
+import java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic class TopLevel%0A%7B%0A%09void test(Item%5B%5D items)%0A%09%7B%0A%09%09// Do something else%0A%0A%0A%09%09for (int i = 0; i %3C items.length; ++i)%0A%09%09%7B%0A%09%09%09ItemData data = items%5Bi%5D.getData();%0A%09%09%09allData.add(data);%0A%09%09%09data.detach();%0A%09%09%7D%0A%09%09resetItemCount(items.length - 1);%0A%0A%0A%09%09// Do some more stuff%0A%09%7D%0A%0A%09void resetItemCount(int newCount)%7B%7D%0A%0A%09List%3CItemData%3E allData = new ArrayList%3C%3E();%0A%7D%0A%0Aclass ItemData%0A%7B%0A%09void detach()%7B%7D%0A%7D%0A%0Aclass Item%0A%7B%0A%09ItemData getData() %7B return data; %7D%0A%0A%09ItemData data;%0A%7D%0A%0A// Issues%0A// #3 Only a single item is supported%0A// #6 Bug: Can't establish connection using a proxy%0A// #11 Bug: The app crashes if I try to use the last item%0A%0A// Commits:%0A// #4 : Add support for multiple items%0A// #5 : Fix off-by-one error

Add a guide file for one of the use cases