@@ -55,7 +55,7 @@ void finalStateSuggestsCreatingANewObject() {
5555 @ Test
5656 void transitionDependingOnArgumentsIsSuggestedWithItsConditionButPreventsClaimingStateIsFinal () {
5757 assertHints ("ErrorStateHintIncomplete.java" , new Hint (Kind .CALL_SEQUENCE ,
58- "Call f.reopen(int) with attempts > 0 before this call to move f from closed to open" ));
58+ "Call f.reopen(int attempts ) with attempts > 0 before this call to move f from closed to open" ));
5959 }
6060
6161 @ Test
@@ -244,13 +244,13 @@ void onlyPublicInheritedMethodsAreSuggested() {
244244 @ Test
245245 void argumentThatDecidedTheStateIsShownWithAValueThatWouldWork () {
246246 assertHints ("ErrorArgumentPicksTheState.java" , new Hint (Kind .DECIDING_ARGUMENT ,
247- "buffer.reset(boolean) on line 20 decides the state of buffer: with keep == true, this call would be allowed" ));
247+ "buffer.reset(boolean keep ) on line 20 decides the state of buffer: with keep == true, this call would be allowed" ));
248248 }
249249
250250 @ Test
251251 void deciderIsTheLastCallThatChangedTheCheckedStateSet () {
252252 assertHints ("ErrorArgumentPicksTheStateEarlier.java" , new Hint (Kind .DECIDING_ARGUMENT ,
253- "param.setTilingMode(int) on line 25 decides the state of param: with mode == 2, this call would be allowed" ));
253+ "param.setTilingMode(int mode ) on line 25 decides the state of param: with mode == 2, this call would be allowed" ));
254254 }
255255
256256 @ Test
@@ -262,7 +262,8 @@ void checksAreSuggestedOnlyWhenTheRefinementsProveThem() {
262262 + "Objects created with new GuardChannel() start in such a state" ),
263263 new Hint (Kind .GUARD , "Guard this call with if (!c.isClosed()): when it returns false, c is open" ));
264264 assertHints (errors .get (1 ),
265- new Hint (Kind .GUARD , "Guard this call with if (l.tryLock(timeout)): when it returns true, l is locked" ),
265+ new Hint (Kind .GUARD , "Guard this call with if (l.tryLock(...)), "
266+ + "filling in the arguments of tryLock(long timeout): when it returns true, l is locked" ),
266267 new Hint (Kind .AVAILABLE_CALLS , "In state unlocked, l can call: tryLock(long) (and possibly others)" ));
267268 assertHints (errors .get (2 ),
268269 new Hint (Kind .NEEDED_STATE , "The state of p is unknown here, and this call needs it to be ready" ));
@@ -291,14 +292,13 @@ void argumentConditionsAreSuggestedOnlyWhenEveryArgumentMeetingThemWorks() {
291292 List <StateRefinementError > errors = errors ("ErrorStateHintArgumentConditions.java" , 7 );
292293 assertHints (errors .get (0 ),
293294 new Hint (Kind .CALL_SEQUENCE ,
294- "Call r.set(int, int) with lo < hi before this call to move r from low to high" ),
295+ "Call r.set(int lo , int hi ) with lo < hi before this call to move r from low to high" ),
295296 new Hint (Kind .AVAILABLE_CALLS , "In state low, r can call: set(int, int) (and possibly others)" ));
296297 assertHints (errors .get (1 ), new Hint (Kind .CALL_SEQUENCE ,
297- "Call chain.pick(int) with k == 1, then chain.next() before this call to move chain from a to c" ),
298+ "Call chain.pick(int k ) with k == 1, then chain.next() before this call to move chain from a to c" ),
298299 new Hint (Kind .AVAILABLE_CALLS , "In state a, chain can call: pick(int) (and possibly others)" ));
299- assertHints (errors .get (2 ),
300- new Hint (Kind .CALL_SEQUENCE ,
301- "Call l.setLimit(int) with limit <= 0 before this call to move l from bounded to unbounded" ),
300+ assertHints (errors .get (2 ), new Hint (Kind .CALL_SEQUENCE ,
301+ "Call l.setLimit(int limit) with limit <= 0 before this call to move l from bounded to unbounded" ),
302302 new Hint (Kind .AVAILABLE_CALLS , "In state bounded, l can call: setLimit(int) (and possibly others)" ));
303303 // no condition, and no value of the earlier call's argument, is claimed to allow the call
304304 for (StateRefinementError error : errors .subList (3 , 5 ))
@@ -313,7 +313,7 @@ void argumentConditionsAreSuggestedOnlyWhenEveryArgumentMeetingThemWorks() {
313313 @ Test
314314 void callWhoseStateDependsOnItsArgumentIsSuggestedWithTheCondition () {
315315 assertHints ("classes/state_hint_compression_mode_error" , new Hint (Kind .CALL_SEQUENCE ,
316- "Call wParam.setCompressionMode(int) with mode == 2 before this call to move wParam from startCompression to compressionExplicit" ),
316+ "Call wParam.setCompressionMode(int mode ) with mode == 2 before this call to move wParam from startCompression to compressionExplicit" ),
317317 new Hint (Kind .AVAILABLE_CALLS ,
318318 "In state startCompression, wParam can call: setCompressionMode(int) (and possibly others)" ));
319319 }
0 commit comments