File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
archrules-joda/src/archRules/java/com/netflix/nebula/archrules/joda Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 44import com .tngtech .archunit .lang .ArchRule ;
55import com .tngtech .archunit .lang .Priority ;
66import com .tngtech .archunit .lang .syntax .ArchRuleDefinition ;
7- import static com .tngtech .archunit .core . domain . JavaClass . Predicates . resideInAPackage ;
7+ import com .tngtech .archunit .library . GeneralCodingRules ;
88
99import java .util .Collections ;
1010import java .util .Map ;
@@ -15,7 +15,7 @@ public class JodaRule implements ArchRulesService {
1515 */
1616 public static ArchRule jodaRule = ArchRuleDefinition .priority (Priority .MEDIUM )
1717 .noClasses ()
18- .should (). dependOnClassesThat ( resideInAPackage ( "org.joda.time.." ) )
18+ .should (GeneralCodingRules . USE_JODATIME )
1919 .allowEmptyShould (true )
2020 .as ("No code should use Joda time library" )
2121 .because ("usage of Joda is deprecated. Please migrate to java.time." );
You can’t perform that action at this time.
0 commit comments