Replace for loops with String.repeat where appropriate
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008-2022 the original author or authors.
|
||||
* Copyright 2008-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -49,9 +49,7 @@ class JdbcStepExecutionDaoTests extends AbstractStepExecutionDaoTests {
|
||||
void testTruncateExitDescription() {
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (int i = 0; i < 100; i++) {
|
||||
sb.append("too long exit description");
|
||||
}
|
||||
sb.append("too long exit description".repeat(100));
|
||||
String longDescription = sb.toString();
|
||||
|
||||
ExitStatus exitStatus = ExitStatus.FAILED.addExitDescription(longDescription);
|
||||
|
||||
Reference in New Issue
Block a user