tst_QLinkedList: Unconditionally enable testing Java-style iterators


Remove the check for QT_NO_JAVA_STYLE_ITERATORS in code, because
it's unconditionally undefined in CMakeLists.txt so that we can test
them, even though we don't normally allow them in internal Qt code.

Also reverts commit 93be44c9c1c1e97de0d77de209d5c6e2c795d101
so we continue to test QLinkedList's Java-style iterators.

Task-number: QTBUG-100359
Pick-to: 6.3 6.2
Change-Id: Ib0cdfde02c49654a8587fb8058a26d7c095281ee
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
commit9464b6de231a40c4c6a2197b57ecabf092c11ae4
parentc3b3311b1f02351d3b0d7b04f3c294b33b0f7dda
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeTue, 8 Feb 2022 14:18:12 +0000