-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #845 from gjoseph/archunit-rule-to-avoid-guava
Archunit rule to avoid guava
- Loading branch information
Showing
26 changed files
with
143 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
type: specs.openrewrite.org/v1beta/recipe | ||
name: net.incongru.tichu.rewrite.RecipeBook | ||
recipeList: | ||
- org.openrewrite.java.migrate.UpgradeToJava21 | ||
- org.openrewrite.java.migrate.guava.NoGuavaJava21 | ||
- net.incongru.tichu.rewrite.RemoveJakartaAnnotationDependency | ||
|
||
--- | ||
type: specs.openrewrite.org/v1beta/recipe | ||
name: net.incongru.tichu.rewrite.RemoveJakartaAnnotationDependency | ||
description: | | ||
Somewhere in the depths of UpgradeToJava21 via Java8toJava11, | ||
dependencies to jakarta.annotation:jakarta.annotation-api are | ||
added because we use javax.annotation..*. Except, we only use | ||
@Nonnull and @Nullable, which are _not_ in this jar. Since | ||
individual recipes can't be disabled when they're declared | ||
within others, here's a recipe that does the inverse. | ||
See https://github.com/openrewrite/rewrite/discussions/4211 | ||
recipeList: | ||
- org.openrewrite.java.dependencies.RemoveDependency: | ||
groupId: jakarta.annotation | ||
artifactId: jakarta.annotation-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
tichu-archunit/src/test/archunit-store/c4bf907c-94d9-4516-9a39-70254e191191
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Constructor <net.incongru.tichu.model.Play$PlayResult.<init>(net.incongru.tichu.model.Play$PlayResult$Result, java.lang.String)> calls method <com.google.common.base.Preconditions.checkArgument(boolean, java.lang.String, java.lang.Object)> in (Play.java:72) | ||
Constructor <net.incongru.tichu.model.Play$PlayResult.<init>(net.incongru.tichu.model.Play, net.incongru.tichu.model.Play$PlayResult$Result, java.lang.String)> calls method <com.google.common.base.Preconditions.checkNotNull(java.lang.Object, java.lang.String, java.lang.Object)> in (Play.java:83) | ||
Constructor <net.incongru.tichu.model.card.CardImpl.<init>(net.incongru.tichu.model.card.CardValue, net.incongru.tichu.model.card.CardSuit)> calls method <com.google.common.base.Preconditions.checkState(boolean, java.lang.Object)> in (CardImpl.java:10) | ||
Constructor <net.incongru.tichu.model.plays.Single.<init>(java.util.Set)> calls method <com.google.common.base.Preconditions.checkArgument(boolean, java.lang.Object)> in (Single.java:22) | ||
Method <net.incongru.tichu.model.CardDeck.allRemaining()> calls method <com.google.common.collect.ImmutableSet.copyOf(java.util.Collection)> in (CardDeck.java:48) | ||
Method <net.incongru.tichu.model.Functions.lastNMatches(java.util.Deque, int, java.util.function.Predicate)> calls method <com.google.common.collect.Iterators.all(java.util.Iterator, com.google.common.base.Predicate)> in (Functions.java:23) | ||
Method <net.incongru.tichu.model.Functions.lastNMatches(java.util.Deque, int, java.util.function.Predicate)> calls method <com.google.common.collect.Iterators.limit(java.util.Iterator, int)> in (Functions.java:24) | ||
Method <net.incongru.tichu.model.Players.cycleFrom(net.incongru.tichu.model.Player)> calls method <com.google.common.collect.Iterators.cycle(java.lang.Iterable)> in (Players.java:89) | ||
Method <net.incongru.tichu.model.Players.cycleFrom(net.incongru.tichu.model.Player)> calls method <com.google.common.collect.Iterators.peekingIterator(java.util.Iterator)> in (Players.java:88) | ||
Method <net.incongru.tichu.model.Players.cycleFrom(net.incongru.tichu.model.Player)> calls method <com.google.common.collect.PeekingIterator.next()> in (Players.java:93) | ||
Method <net.incongru.tichu.model.Players.cycleFrom(net.incongru.tichu.model.Player)> calls method <com.google.common.collect.PeekingIterator.peek()> in (Players.java:92) | ||
Method <net.incongru.tichu.model.Players.getTeam(int)> calls method <com.google.common.base.Preconditions.checkArgument(boolean, java.lang.String, int)> in (Players.java:112) | ||
Method <net.incongru.tichu.model.Trick.currentPlayer()> calls method <com.google.common.base.Preconditions.checkState(boolean, java.lang.Object)> in (Trick.java:118) | ||
Method <net.incongru.tichu.model.Trick.currentPlayer()> calls method <com.google.common.base.Preconditions.checkState(boolean, java.lang.Object)> in (Trick.java:122) | ||
Method <net.incongru.tichu.model.Trick.isDone()> calls method <com.google.common.base.Predicates.compose(com.google.common.base.Predicate, com.google.common.base.Function)> in (Trick.java:157) | ||
Method <net.incongru.tichu.model.card.CardTest.suitComparatorDoesNotMessUpSpecialCards()> calls method <com.google.common.collect.FluentIterable.from([Ljava.lang.Object;)> in (CardTest.java:51) | ||
Method <net.incongru.tichu.model.card.CardTest.suitComparatorDoesNotMessUpSpecialCards()> calls method <com.google.common.collect.FluentIterable.from([Ljava.lang.Object;)> in (CardTest.java:54) | ||
Method <net.incongru.tichu.model.card.CardTest.suitComparatorDoesNotMessUpSpecialCards()> calls method <com.google.common.collect.FluentIterable.from(java.lang.Iterable)> in (CardTest.java:57) | ||
Method <net.incongru.tichu.model.card.CardTest.suitComparatorDoesNotMessUpSpecialCards()> calls method <com.google.common.collect.FluentIterable.from(java.lang.Iterable)> in (CardTest.java:62) | ||
Method <net.incongru.tichu.model.card.CardTest.suitComparatorDoesNotMessUpSpecialCards()> calls method <com.google.common.collect.FluentIterable.toSortedList(java.util.Comparator)> in (CardTest.java:51) | ||
Method <net.incongru.tichu.model.card.CardTest.suitComparatorDoesNotMessUpSpecialCards()> calls method <com.google.common.collect.FluentIterable.toSortedList(java.util.Comparator)> in (CardTest.java:57) | ||
Method <net.incongru.tichu.model.card.CardTest.suitComparatorDoesNotMessUpSpecialCards()> calls method <com.google.common.collect.FluentIterable.toSortedSet(java.util.Comparator)> in (CardTest.java:54) | ||
Method <net.incongru.tichu.model.card.CardTest.suitComparatorDoesNotMessUpSpecialCards()> calls method <com.google.common.collect.FluentIterable.toSortedSet(java.util.Comparator)> in (CardTest.java:62) | ||
Method <net.incongru.tichu.model.plays.NSameValue$NSameValuesFactory.is(java.util.Set)> calls method <com.google.common.collect.Collections2.transform(java.util.Collection, com.google.common.base.Function)> in (NSameValue.java:49) | ||
Method <net.incongru.tichu.model.plays.Straight$Factory.is(java.util.Set)> calls method <com.google.common.collect.Collections2.transform(java.util.Collection, com.google.common.base.Function)> in (Straight.java:107) | ||
Method <net.incongru.tichu.model.plays.Straight.getCardValuesWithPhoenix()> calls method <com.google.common.collect.Collections2.transform(java.util.Collection, com.google.common.base.Function)> in (Straight.java:55) | ||
Method <net.incongru.tichu.simu.parse.SimulationFileParserTest.sampleIsLoadable()> calls method <com.google.common.collect.Lists.reverse(java.util.List)> in (SimulationFileParserTest.java:33) | ||
Method <net.incongru.tichu.simu.util.NameableEnum.allNamesOf(java.lang.Class)> calls method <com.google.common.collect.Lists.transform(java.util.List, com.google.common.base.Function)> in (NameableEnum.java:45) | ||
Method <net.incongru.tichu.simu.util.NameableEnum.byName(java.lang.Class, java.lang.String)> calls method <com.google.common.collect.Lists.transform(java.util.List, com.google.common.base.Function)> in (NameableEnum.java:21) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# | ||
#Wed Dec 18 14:10:11 AEDT 2024 | ||
avoid_using_Guava=c4bf907c-94d9-4516-9a39-70254e191191 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
freeze.store.default.allowStoreCreation=false | ||
freeze.refreeze=false | ||
freeze.store.default.path=src/test/archunit-store | ||
|
||
# Allows violations to be resolved; new violations will not be allowed. | ||
# False in CI to ensure we commit freeze file changes | ||
freeze.store.default.allowStoreUpdate=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.