Skip to content

Commit

Permalink
revert formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
astubbs committed Jul 29, 2021
1 parent bac43fd commit f6bd15e
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ else if (Modifier.isPrivate(mod))
}
}

public MethodImpl(final O parent, final String method) {
public MethodImpl(final O parent, final String method)
{
init(parent);

String stub = "public class Stub { " + method + " }";
Expand All @@ -135,7 +136,8 @@ public MethodImpl(final O parent, final String method) {
this.method = (MethodDeclaration) ASTNode.copySubtree(cu.getAST(), newMethod);
}

private List<MethodSource<JavaClassSource>> getMethodSources(final String stub) {
private List<MethodSource<JavaClassSource>> getMethodSources(final String stub)
{
JavaClassSource temp = (JavaClassSource) Roaster.parse(stub);
List<Problem> problems = Roaster.validateSnippet(stub);
if (!problems.isEmpty()) {
Expand All @@ -151,8 +153,8 @@ private List<MethodSource<JavaClassSource>> getMethodSources(final String stub)
public String toSignature() {
StringBuilder signature = new StringBuilder();
signature.append(Visibility.PACKAGE_PRIVATE == this.getVisibility() ? ""
: this.getVisibility()
.scope());
: this.getVisibility()
.scope());
signature.append(" ");
signature.append(this.getName()).append("(");
List<ParameterSource<O>> parameters = this.getParameters();
Expand Down

0 comments on commit f6bd15e

Please sign in to comment.