Fix brace positioning
diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/Comment.java b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/Comment.java
index 5699606..3173c9f 100644
--- a/javaparser-core/src/main/java/com/github/javaparser/ast/comments/Comment.java
+++ b/javaparser-core/src/main/java/com/github/javaparser/ast/comments/Comment.java
@@ -72,10 +72,8 @@
return false;
}
- public LineComment asLineComment()
- {
- if (isLineComment())
- {
+ public LineComment asLineComment() {
+ if (isLineComment()) {
return (LineComment) this;
} else {
throw new UnsupportedOperationException("Not a line comment");
@@ -89,17 +87,14 @@
public void setCommentedNode(Node commentedNode)
{
- if (commentedNode==null)
- {
+ if (commentedNode==null) {
this.commentedNode = null;
return;
}
- if (commentedNode==this)
- {
+ if (commentedNode==this) {
throw new IllegalArgumentException();
}
- if (commentedNode instanceof Comment)
- {
+ if (commentedNode instanceof Comment) {
throw new IllegalArgumentException();
}
this.commentedNode = commentedNode;