Skip to content

Commit

Permalink
Added some wildcards to some of the rule matches
Browse files Browse the repository at this point in the history
  • Loading branch information
jsight committed Oct 17, 2014
1 parent 48acf66 commit 1b40853
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public Configuration getConfiguration(GraphContext context)
Configuration configuration = ConfigurationBuilder
.begin()
.addRule()
.when(JavaClass.references("edu.oswego.cs.dl.util.concurrent"))
.when(JavaClass.references("edu.oswego.cs.dl.util.concurrent.*"))
.perform(Hint.withText("Upgrade to javax.util.concurrent in Java 5+").withEffort(0))

.addRule()
.when(JavaClass.references("edu.emory.mathcs.backport.java.util"))
.when(JavaClass.references("edu.emory.mathcs.backport.java.util.*"))
.perform(Hint.withText("Upgrade to javax.util.concurrent in Java 5+").withEffort(0))

.addRule()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ public Configuration getConfiguration(GraphContext context)
.withEffort(0))

.addRule()
.when(JavaClass.references("net.sf.hibernate.criterion").at(TypeReferenceLocation.IMPORT))
.when(JavaClass.references("net.sf.hibernate.criterion.*").at(TypeReferenceLocation.IMPORT))
.perform(Hint.withText("Has undergone significant refactoring, be careful during migration")
.withEffort(0))

.addRule()
.when(JavaClass.references("net.sf.hibernate.mapping").at(TypeReferenceLocation.IMPORT))
.when(JavaClass.references("net.sf.hibernate.mapping.*").at(TypeReferenceLocation.IMPORT))
.perform(Hint.withText("Has undergone significant refactoring, be careful during migration")
.withEffort(0));

Expand Down

0 comments on commit 1b40853

Please sign in to comment.