Skip to content

Commit

Permalink
Rename <signaturesResources/> to <signatures> in Ant task (see #78)
Browse files Browse the repository at this point in the history
  • Loading branch information
uschindler committed Sep 25, 2015
1 parent 89d0b58 commit 7140403
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/de/thetaphi/forbiddenapis/ant/AntTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public void setSignaturesFile(File file) {
}

/** Creates a collection of arbitrary Ant resources */
public Resources createSignaturesResources() {
public Resources createSignatures() {
return addSignaturesResource(new Resources());
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/antunit/TestFileSignatures.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
<au:expectfailure expectedMessage="Check for forbidden API calls failed, see log">
<forbiddenapis classpathref="path.all">
<fileset refid="main.classes"/>
<signaturesResources>
<signatures>
<file file="signatures1.txt"/>
<string>java.util.Locale#ENGLISH @ We are speaking chinese here!</string>
</signaturesResources>
</signatures>
</forbiddenapis>
</au:expectfailure>
<au:assertLogContains level="error" text="java.lang.String#substring(int,int) [You are crazy that you disallow substrings]"/>
Expand Down

0 comments on commit 7140403

Please sign in to comment.