Skip to content

Commit

Permalink
Merge pull request #10 from jeddict/dev
Browse files Browse the repository at this point in the history
Skip saveOpenEditor()
  • Loading branch information
Shiwani Gupta authored Sep 28, 2024
2 parents a188abc + 5a06782 commit 2fd9a18
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/main/java/io/github/jeddict/ai/fix/ExpressionFix.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ protected void performRewrite(JavaFix.TransformationContext tc) throws Exception
if (copy.toPhase(JavaSource.Phase.RESOLVED).compareTo(JavaSource.Phase.RESOLVED) < 0) {
return;
}
saveOpenEditor();

Tree leaf = treePath.getLeaf();
String content;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/io/github/jeddict/ai/fix/MethodFix.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ protected void performRewrite(JavaFix.TransformationContext tc) throws Exception
if (copy.toPhase(JavaSource.Phase.RESOLVED).compareTo(JavaSource.Phase.RESOLVED) < 0) {
return;
}
saveOpenEditor();

TreePath treePath = tc.getPath();
Tree leaf = treePath.getLeaf();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ protected void performRewrite(JavaFix.TransformationContext tc) throws Exception
if (copy.toPhase(JavaSource.Phase.RESOLVED).compareTo(JavaSource.Phase.RESOLVED) < 0) {
return;
}
saveOpenEditor();

TreePath treePath = tc.getPath();
Tree leaf = treePath.getLeaf();
Expand Down
1 change: 0 additions & 1 deletion src/main/java/io/github/jeddict/ai/fix/TextFix.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ protected void performRewrite(JavaFix.TransformationContext tc) throws Exception
if (copy.toPhase(JavaSource.Phase.RESOLVED).compareTo(JavaSource.Phase.RESOLVED) < 0) {
return;
}
saveOpenEditor();

Tree leaf = treePath.getLeaf();
if (leaf.getKind() != STRING_LITERAL) {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/io/github/jeddict/ai/fix/VariableFix.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ protected void performRewrite(JavaFix.TransformationContext tc) throws Exception
if (copy.toPhase(JavaSource.Phase.RESOLVED).compareTo(JavaSource.Phase.RESOLVED) < 0) {
return;
}
saveOpenEditor(); // Assuming this is implemented elsewhere

TreePath treePath = tc.getPath();
Tree leaf = treePath.getLeaf();
Expand Down

0 comments on commit 2fd9a18

Please sign in to comment.