Skip to content

Commit

Permalink
Reformat with scalafmt 3.7.17
Browse files Browse the repository at this point in the history
Executed command: scalafmt --non-interactive
  • Loading branch information
scala-steward authored and hoangmaihuy committed Jan 15, 2024
1 parent 846619a commit 1ff365a
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package test

import com.google.common.base.Enums

/**
* Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this
* method while overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
/** Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this method while
* overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
object ProblematicDependency {

def reliesOnRemovedMethod(): AnyRef = {
Enums.valueOfFunction(classOf[Foo])
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package test

import com.google.common.base.Enums

/**
* Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this
* method while overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
/** Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this method while
* overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
object ProblematicDependency {

def reliesOnRemovedMethod(): AnyRef = {
Enums.valueOfFunction(classOf[Foo])
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package test

import com.google.common.base.Enums

/**
* Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this
* method while overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
/** Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this method while
* overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
object ProblematicDependency {

def reliesOnRemovedMethod(): AnyRef = {
Enums.valueOfFunction(classOf[Foo])
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package test

import com.google.common.base.Enums

/**
* Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this
* method while overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
/** Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this method while
* overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
object ProblematicDependency {

def reliesOnRemovedMethod(): AnyRef = {
Enums.valueOfFunction(classOf[Foo])
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package test

import com.google.common.base.Enums

/**
* Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this
* method while overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
/** Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this method while
* overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
object ProblematicDependency {

def reliesOnRemovedMethod(): AnyRef = {
Enums.valueOfFunction(classOf[Foo])
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package test

import com.google.common.base.Enums

/**
* Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this
* method while overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
/** Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this method while
* overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
object ProblematicDependency {

def reliesOnRemovedMethod(): AnyRef = {
Enums.valueOfFunction(classOf[Foo])
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package test

import com.google.common.base.Enums

/**
* Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this
* method while overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
/** Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this method while
* overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
object ProblematicDependency {

def reliesOnRemovedMethod(): AnyRef = {
Enums.valueOfFunction(classOf[Foo])
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package test

import com.google.common.base.Enums

/**
* Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this
* method while overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
/** Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this method while
* overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
object ProblematicDependency {

def reliesOnRemovedMethod(): AnyRef = {
Enums.valueOfFunction(classOf[Foo])
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package test

import com.google.common.base.Enums

/**
* Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this
* method while overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
/** Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this method while
* overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
object ProblematicDependency {

def reliesOnRemovedMethod(): AnyRef = {
Enums.valueOfFunction(classOf[Foo])
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package test

import com.google.common.base.Enums

/**
* Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this
* method while overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
/** Calls a method in the Guava Enums class which was removed in guava 18. If a project calls this method while
* overriding Guava to >= 18, it will cause a NoSuchMethodError at runtime.
*/
object ProblematicDependency {

def reliesOnRemovedMethod(): AnyRef = {
Enums.valueOfFunction(classOf[Foo])
}

}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package test

/**
* Invokes a method from [[test.ProblematicDependency]] which will blow up if
* Guava >= 18 is used.
*/
/** Invokes a method from [[test.ProblematicDependency]] which will blow up if Guava >= 18 is used.
*/
object UsesProblematicDependency {

def callsClassThatReliesOnDeletedGuavaMethod(): AnyRef = {
ProblematicDependency.reliesOnRemovedMethod()
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ trait MissinglinkCheckModule extends JavaModule {
/** Optional list of packages to ignore conflicts where the destination/called-side of the conflict is in one of the
* specified packages.
*/
def missinglinkIgnoreDestinationPackages: T[Seq[IgnoredPackage]] = T { Seq.empty[IgnoredPackage] }
def missinglinkIgnoreDestinationPackages: T[Seq[IgnoredPackage]] = T { Seq.empty[IgnoredPackage] }

/** Optional list of source packages to specifically target conflicts in. Cannot be used with
* missinglinkIgnoreDestinationPackages.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ package object missinglink {

private[missinglink] implicit object IgnoredPackages extends PackageFilters[IgnoredPackage] {


def apply(name: String)(filters: Seq[IgnoredPackage]): Boolean = filters.forall(_.apply(name))
}

Expand Down

0 comments on commit 1ff365a

Please sign in to comment.