Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vjovanov committed Sep 24, 2018
1 parent 1c918c4 commit 8dce8a2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public class LambdaProxyRenamingSubstitutionProcessor extends SubstitutionProces

static boolean isLambdaType(ResolvedJavaType type) {
return type.isFinalFlagSet() &&
type.getName().contains("/") && /* isVMAnonymousClass */
lambdaMatcher(type.getName()).find();
type.getName().contains("/") && /* isVMAnonymousClass */
lambdaMatcher(type.getName()).find();
}

LambdaProxyRenamingSubstitutionProcessor(BigBang bigBang) {
Expand Down Expand Up @@ -107,8 +107,8 @@ private static String createStableLambdaName(ResolvedJavaType lambdaType, Resolv
assert lambdaMatcher(lambdaType.getName()).find() : "Stable name should be created only for lambda types.";
Matcher m = lambdaMatcher(lambdaType.getName());
String stableTargetMethod = targetMethod.format("%H.%n(%P)%R").replaceAll("[$.()]", "_")
.replaceAll("\\[]", "_arr")
.replaceAll(", ", "_");
.replaceAll("\\[]", "_arr")
.replaceAll(", ", "_");
return m.replaceFirst("\\$\\$Lambda\\$" + stableTargetMethod);
}

Expand Down

0 comments on commit 8dce8a2

Please sign in to comment.