Skip to content

Commit

Permalink
Removing Feature.AD_HOC_FORMATTING from PalantirJavaFormatFormattingS…
Browse files Browse the repository at this point in the history
…ervice (#1083)

Remove AD_HOC_FORMATTING
  • Loading branch information
crogoz committed May 2, 2024
1 parent 469e2e9 commit 95485b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/@unreleased/pr-1083.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: fix
fix:
description: Fixes bug where generated code or automated refactoring is formatted
incorrectly by removing AD_HOC_FORMATTING
links:
- https://github.com/palantir/palantir-java-format/pull/1083
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected FormattingTask createFormattingTask(@NotNull AsyncFormattingRequest re

@Override
public @NotNull Set<Feature> getFeatures() {
return Set.of(Feature.AD_HOC_FORMATTING, Feature.FORMAT_FRAGMENTS, Feature.OPTIMIZE_IMPORTS);
return Set.of(Feature.FORMAT_FRAGMENTS, Feature.OPTIMIZE_IMPORTS);
}

@Override
Expand Down

0 comments on commit 95485b2

Please sign in to comment.