Skip to content

Commit

Permalink
Skip saveOpenEditor()
Browse files Browse the repository at this point in the history
  • Loading branch information
jShiwaniGupta committed Sep 28, 2024
1 parent caaa88c commit 5a06782
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 5a06782

Please sign in to comment.