mirror of https://github.com/apache/maven.git
[MNG-6938] MavenITBootstrapTest fails with StringIndexOutOfBoundsException: String index out of range: -1
This is a regression introduced by 1c88bf3e1c
.
This commit is contained in:
parent
424691b80e
commit
0944ed2259
|
@ -216,8 +216,15 @@ public abstract class AbstractMavenIntegrationTestCase
|
|||
else
|
||||
{
|
||||
int index = testName.indexOf( ' ' );
|
||||
out.print( AnsiSupport.bold( testName.substring( 0, index ) ) );
|
||||
out.print( testName.substring( index ) );
|
||||
if ( index == -1 )
|
||||
{
|
||||
out.print( testName );
|
||||
}
|
||||
else
|
||||
{
|
||||
out.print( AnsiSupport.bold( testName.substring( 0, index ) ) );
|
||||
out.print( testName.substring( index ) );
|
||||
}
|
||||
out.print( '.' );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue