Skip to content

Commit

Permalink
Simplify the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jduo committed Sep 27, 2024
1 parent 6d545db commit 6200d82
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1741,22 +1741,19 @@ public void checkBlockBuilder(boolean optimizing, String expected) {
// }

// Generate long variable names.
final String var1Name = StringUtils.repeat('a', 1000);
final String var2Name = StringUtils.repeat('b', 1000);
final String longName = StringUtils.repeat('a', 5000);

DeclarationStatement xDecl =
Expressions.declare(0, var1Name, Expressions.constant(10));
DeclarationStatement yDecl =
Expressions.declare(0, var2Name, Expressions.constant(0));
DeclarationStatement longDecl =
Expressions.declare(0, longName, Expressions.constant(10));
final ConditionalStatement ifThenElse =
Expressions.ifThenElse(
Expressions.constant(true),
xDecl,
longDecl,
Expressions.constant(false),
yDecl,
longDecl,
Expressions.constant(false),
yDecl,
yDecl);
longDecl,
longDecl);

final MethodDeclaration hugeMethod =
Expressions.methodDecl(Modifier.PUBLIC,
Expand Down

0 comments on commit 6200d82

Please sign in to comment.