Skip to content

Commit

Permalink
Merge pull request #593 from scalameta/update/sbt-java-formatter-0.8.0
Browse files Browse the repository at this point in the history
Update sbt-java-formatter to 0.8.0
  • Loading branch information
valencik authored Nov 18, 2022
2 parents 371ec5a + 36876bb commit f7511b3
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 39 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with sbt-java-formatter 0.8.0
9e5e7610a81938d804d8edf533844b03ef125b5a
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package munit.internal.junitinterface;

import sbt.testing.*;

import static munit.internal.junitinterface.Ansi.*;

import sbt.testing.*;

abstract class AbstractEvent implements Event {
protected final String ansiName;
protected final String ansiMsg;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.util.List;
import java.util.Map;
import java.util.Set;

import sbt.testing.Fingerprint;
import sbt.testing.SubclassFingerprint;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package munit.internal.junitinterface;

import static munit.internal.junitinterface.Ansi.*;

import java.util.Arrays;
import java.util.Collections;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicBoolean;

import org.junit.runner.Description;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
Expand All @@ -14,8 +15,6 @@
import sbt.testing.Fingerprint;
import sbt.testing.Status;

import static munit.internal.junitinterface.Ansi.*;

final class EventDispatcher extends RunListener {
private final RichLogger logger;
private final Set<Description> reported =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.util.ArrayList;
import java.util.regex.Pattern;

import org.junit.runner.Description;
import org.junit.runner.manipulation.Filter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
package munit.internal.junitinterface;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;

import org.junit.runner.Computer;
import org.junit.runner.Runner;
import org.junit.runner.manipulation.Filter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package munit.internal.junitinterface;

import java.util.Arrays;

import sbt.testing.Fingerprint;
import sbt.testing.Framework;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.junit.runner.notification.RunListener;

import sbt.testing.Runner;
import sbt.testing.Task;
import sbt.testing.Selector;
import sbt.testing.TestSelector;
import sbt.testing.Task;
import sbt.testing.TaskDef;

import java.util.stream.Collectors;
import java.util.stream.Stream;
import sbt.testing.TestSelector;

final class JUnitRunner implements Runner {
private final String[] args;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import junit.framework.TestCase;
import org.junit.experimental.categories.Categories;
import org.junit.runner.Description;
import org.junit.runner.JUnitCore;
import org.junit.runner.Request;
import org.junit.runner.RunWith;

import junit.framework.TestCase;
import sbt.testing.EventHandler;
import sbt.testing.Fingerprint;
import sbt.testing.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package munit.internal.junitinterface;

import java.io.OutputStream;
import java.io.PrintStream;

import sbt.testing.Fingerprint;

public class PantsFramework extends JUnitFramework {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package munit.internal.junitinterface;

import static munit.internal.junitinterface.Ansi.*;

import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentLinkedDeque;

import sbt.testing.Logger;
import static munit.internal.junitinterface.Ansi.*;

final class RichLogger {
private final Logger[] loggers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

import java.lang.reflect.Method;
import java.util.*;

import org.junit.runner.Description;

import sbt.testing.Status;

class RunSettings implements Settings {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package munit.internal.junitinterface;

import sbt.testing.Status;

import java.util.ArrayList;
import java.util.List;
import sbt.testing.Status;

class RunStatistics {
private final RunSettings settings;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package munit.internal.junitinterface;

import org.junit.runner.Description;
import org.junit.runner.manipulation.Filter;

import java.lang.annotation.Annotation;
import java.util.Set;
import org.junit.runner.Description;
import org.junit.runner.manipulation.Filter;

public class TagFilter extends Filter {
final Set<String> includeTags, excludeTags;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import java.util.HashSet;
import java.util.regex.Pattern;

import org.junit.runner.Description;
import org.junit.runner.manipulation.Filter;

Expand Down
2 changes: 1 addition & 1 deletion munit/jvm/src/main/java/munit/IgnoreSuite.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package munit;

import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
public @interface IgnoreSuite {}
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.2.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.5")

addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.1")
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.7.0")
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.8.0")

libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.15.0"

0 comments on commit f7511b3

Please sign in to comment.