Skip to content

Commit

Permalink
a reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user authored and isidore committed Jan 22, 2024
1 parent 97f5c78 commit 5e302ab
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ public class ParsingFilesTest
void testWithoutGenerics()
{
var expected = """
T[] -> Object[]
IN3[] -> Object[]
List<String> -> List
IN[][] -> Object[][]
""";
T[] -> Object[]
IN3[] -> Object[]
List<String> -> List
IN[][] -> Object[][]
""";
String[] cases = {"T[]", "IN3[]", "List<String>", "IN[][]"};
Approvals.verifyAll("", cases, c -> String.format("%s -> %s", c, removeGenerics(c)), new Options().inline(expected));
Approvals.verifyAll("", cases, c -> String.format("%s -> %s", c, removeGenerics(c)),
new Options().inline(expected));
}
@Test
public void getLineNumberOfThisMethod() throws Exception
Expand Down Expand Up @@ -82,7 +83,8 @@ public static boolean isMethodDeclarationEqualToMethod(MethodDeclaration methodD
{
String compileName = compiledMethodParameters.get(i).getSimpleName();
String parseName = parsedMethodParameters.get(i).getTypeAsString();
if (parsedMethodParameters.get(i).isVarArgs()) {
if (parsedMethodParameters.get(i).isVarArgs())
{
parseName += "[]";
}
String withoutGenerics = removeGenerics(parseName);
Expand Down

0 comments on commit 5e302ab

Please sign in to comment.