diff --git a/java/java-analysis-impl/src/com/siyeh/ig/migration/MarkdownDocumentationCommentsMigrationInspection.java b/java/java-analysis-impl/src/com/siyeh/ig/migration/MarkdownDocumentationCommentsMigrationInspection.java index 7580212e941c..9dd5293e16f1 100644 --- a/java/java-analysis-impl/src/com/siyeh/ig/migration/MarkdownDocumentationCommentsMigrationInspection.java +++ b/java/java-analysis-impl/src/com/siyeh/ig/migration/MarkdownDocumentationCommentsMigrationInspection.java @@ -76,6 +76,7 @@ final class MarkdownDocumentationCommentsMigrationInspection extends BaseInspect } result.append("///").append(line).append('\n'); } + result.append(indent); Document document = element.getContainingFile().getFileDocument(); int startOffset = element.getTextOffset(); diff --git a/java/java-tests/testData/ig/com/siyeh/igtest/migration/markdown_documentation_comments_migration/MarkdownDocumentationCommentsMigration.after.java b/java/java-tests/testData/ig/com/siyeh/igtest/migration/markdown_documentation_comments_migration/MarkdownDocumentationCommentsMigration.after.java index f5721d9cada5..a2f5dbd34eaa 100644 --- a/java/java-tests/testData/ig/com/siyeh/igtest/migration/markdown_documentation_comments_migration/MarkdownDocumentationCommentsMigration.after.java +++ b/java/java-tests/testData/ig/com/siyeh/igtest/migration/markdown_documentation_comments_migration/MarkdownDocumentationCommentsMigration.after.java @@ -39,7 +39,7 @@ public class MarkdownDocumentationCommentsMigration { /// [Objects] can be used to help construct simple hash codes. /// @see Object#equals(Object) /// @see System#identityHashCode -@Override + @Override public int hashCode() { return super.hashCode(); } @@ -99,7 +99,7 @@ public class MarkdownDocumentationCommentsMigration { /// on two possibly-null object references. /// @see #hashCode() /// @see HashMap -@Override + @Override public boolean equals(final Object obj) { return super.equals(obj); } @@ -161,7 +161,7 @@ public class MarkdownDocumentationCommentsMigration { /// whose class is `Object` will result in throwing an /// exception at run time. /// @see Cloneable -@Override + @Override protected Object clone() throws CloneNotSupportedException { return super.clone(); } @@ -192,7 +192,7 @@ public class MarkdownDocumentationCommentsMigration { /// object equal to the string that would be returned if neither /// the `toString` nor `hashCode` methods were /// overridden by the object's class. -@Override + @Override public String toString() { return super.toString(); } @@ -293,7 +293,7 @@ public class MarkdownDocumentationCommentsMigration { /// /// This method will remain in place until finalizers have been removed from /// most existing code. -@Override + @Override protected void finalize() throws Throwable { super.finalize(); }