Skip to content

Commit 9330066

Browse files
committed
Make getFormattedContent() public again
1 parent 4a23173 commit 9330066

File tree

2 files changed

+2
-2
lines changed
  • spring-javaformat/spring-javaformat-formatter/src/main/java/io/spring/javaformat/formatter

2 files changed

+2
-2
lines changed

spring-javaformat/spring-javaformat-formatter/src/main/java/io/spring/javaformat/formatter/Edit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public boolean hasEdits() {
4545
return (this.textEdit.hasChildren() || this.textEdit.getLength() > 0);
4646
}
4747

48-
protected String getFormattedContent() throws Exception {
48+
public String getFormattedContent() throws Exception {
4949
IDocument document = new Document(this.originalContent);
5050
this.textEdit.apply(document);
5151
String formattedContent = document.get();

spring-javaformat/spring-javaformat-formatter/src/main/java/io/spring/javaformat/formatter/FileEdit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void save() {
5656
}
5757

5858
@Override
59-
protected String getFormattedContent() throws Exception {
59+
public String getFormattedContent() throws Exception {
6060
try {
6161
return super.getFormattedContent();
6262
}

0 commit comments

Comments
 (0)