nrainer

Germany

1d
comment Branch Coverage and Assert Coverage?
@Kevin Up: see also programmers.stackexchange.com/questions/7823/…
1d
revised Objects override each other
added 20 characters in body
1d
answered Objects override each other
1d
revised LinkedBlockingQueue failing to wait for the threads to execute
added 97 characters in body
1d
comment Objects override each other
Where do you create the instance of coordinates?
1d
answered LinkedBlockingQueue failing to wait for the threads to execute
Dec
17
answered After installing Security Rules is there a way to filter out all issues except security related ones?
Dec
14
revised Branch Coverage and Assert Coverage?
added 8 characters in body
Dec
12
comment Checkstyle Plugin in SonarQube
They should appear automatically. Are the rules active? Do they belong to the selected quality profile?
Dec
11
comment Branch Coverage and Assert Coverage?
@Kevin Up: I don't know what nunit is counting but assertions are not everything to be considered. A meaningful test may contain no assertions but be annotated with @Test(expected = IllegalArgumentException.class).
Dec
11
revised Branch Coverage and Assert Coverage?
added 292 characters in body
Dec
10
revised Branch Coverage and Assert Coverage?
added 262 characters in body
Dec
10
revised Branch Coverage and Assert Coverage?
added 262 characters in body
Dec
10
revised Branch Coverage and Assert Coverage?
added 348 characters in body
Dec
10
answered Branch Coverage and Assert Coverage?
Dec
3
comment is this a thread deadlock
No, this is not a deadlock because locks are reentrant in Java. Thread t1 invokes XXXX(), locks 9, invokes ZZZZ(), locks 10, invokes XXXX() and does not need to get the lock on 9 because it holds it already. t2 is again fully independent. Try it out!
Dec
3
awarded Yearling
Dec
3
comment is this a thread deadlock
No. Both threads are independent instances of the class TestDeadLock. The thread named t1 will always invoke XXXX() and acquire the necessary lock. The thread named t2 will always invoke ZZZZ() on the instance t2 (which is not yet locked) and acquire the lock. Try it out!
Dec
3
awarded Yearling
Dec
3
comment is this a thread deadlock
No, sorry, that is not correct. One thread occupies the lock in ZZZZ on itself (t1) and the other thread occupies the lock on itself (t2).
1 2 3 4 5