Skip to content

Commit

Permalink
spotlessApply.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Nov 3, 2023
1 parent 2e4b2a4 commit de815f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.util.Properties;
import java.util.stream.Collectors;

import org.eclipse.jdt.core.ToolFactory;
import org.eclipse.jdt.core.formatter.CodeFormatter;
import org.eclipse.jdt.internal.compiler.env.IModule;
import org.eclipse.jdt.internal.formatter.DefaultCodeFormatter;
Expand All @@ -38,10 +37,10 @@ public class EclipseJdtFormatterStepImpl {

public EclipseJdtFormatterStepImpl(Properties settings) {
Map<String, String> options = settings.entrySet().stream().collect(Collectors.toMap(
e -> String.valueOf(e.getKey()),
e -> String.valueOf(e.getValue()),
(prev, next) -> next,
HashMap::new));
e -> String.valueOf(e.getKey()),
e -> String.valueOf(e.getValue()),
(prev, next) -> next,
HashMap::new));
this.codeFormatter = new DefaultCodeFormatter(options);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
*/
package com.diffplug.spotless.extra.java;

import com.diffplug.spotless.extra.EquoBasedStepBuilder;
import java.io.File;
import java.util.List;

import org.junit.jupiter.api.Test;

import com.diffplug.spotless.StepHarness;
import com.diffplug.spotless.TestProvisioner;

import java.io.File;
import java.util.List;
import com.diffplug.spotless.extra.EquoBasedStepBuilder;

public class EclipseJdtFormatterStepSpecialCaseTest {
/** https://github.com/diffplug/spotless/issues/1638 */
Expand Down

0 comments on commit de815f4

Please sign in to comment.