Skip to content

Commit

Permalink
Check for awt usages
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Jun 6, 2019
1 parent 17d33c0 commit f9997ed
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ public static void doNotUseJGoodies(JavaClasses classes) {
public static void doNotUseGlazedLists(JavaClasses classes) {
noClasses().should().accessClassesThat().resideInAPackage("ca.odell.glazedlists..").check(classes);
}

@ArchTest
public static void doNotUseJavaAWT(JavaClasses classes) {
noClasses().should().accessClassesThat().resideInAPackage("java.awt..").check(classes);
}
}

0 comments on commit f9997ed

Please sign in to comment.