Skip to content

Commit

Permalink
Java 1.5, continued
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1376015 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mbenson committed Aug 22, 2012
1 parent b01acc4 commit 1eec081
Show file tree
Hide file tree
Showing 89 changed files with 687 additions and 772 deletions.
1 change: 1 addition & 0 deletions src/main/org/apache/tools/ant/PropertyHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ boolean set(
String property, Object value, PropertyHelper propertyHelper);
}

//TODO PropertyEnumerator Delegate type, would improve PropertySet

// --------------------------------------------------------
//
Expand Down
8 changes: 4 additions & 4 deletions src/main/org/apache/tools/ant/taskdefs/ManifestTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ public ManifestTask() {
*/
public void addConfiguredSection(Manifest.Section section)
throws ManifestException {
Enumeration attributeKeys = section.getAttributeKeys();
Enumeration<String> attributeKeys = section.getAttributeKeys();
while (attributeKeys.hasMoreElements()) {
Attribute attribute = section.getAttribute(
(String) attributeKeys.nextElement());
attributeKeys.nextElement());
checkAttribute(attribute);
}
nestedManifest.addConfiguredSection(section);
Expand Down Expand Up @@ -249,9 +249,9 @@ public void execute() throws BuildException {
}

//look for and print warnings
for (Enumeration e = nestedManifest.getWarnings();
for (Enumeration<String> e = nestedManifest.getWarnings();
e.hasMoreElements();) {
log("Manifest warning: " + (String) e.nextElement(),
log("Manifest warning: " + e.nextElement(),
Project.MSG_WARN);
}
try {
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/apache/tools/ant/taskdefs/MatchingTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public FileSelector[] getSelectors(Project p) {
*
* @return an enumerator that goes through each of the selectors
*/
public Enumeration selectorElements() {
public Enumeration<FileSelector> selectorElements() {
return fileset.selectorElements();
}

Expand Down
Loading

0 comments on commit 1eec081

Please sign in to comment.