Browse Source

JDK 1.1 fix - thanks Stefan

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271945 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 23 years ago
parent
commit
bd737cd1a2
2 changed files with 4 additions and 8 deletions
  1. +3
    -5
      src/main/org/apache/tools/ant/util/depend/AbstractAnalyzer.java
  2. +1
    -3
      src/main/org/apache/tools/ant/util/depend/DependencyAnalyzer.java

+ 3
- 5
src/main/org/apache/tools/ant/util/depend/AbstractAnalyzer.java View File

@@ -113,13 +113,11 @@ public abstract class AbstractAnalyzer implements DependencyAnalyzer {
* which the root classes depend. * which the root classes depend.
* *
* @return an enumeration of File instances. * @return an enumeration of File instances.
* @exception UnsupportedOperationException if the analyzer cannot
* determine file dependencies.
*/ */
public Enumeration getFileDependencies()
throws UnsupportedOperationException {
public Enumeration getFileDependencies() {
if (!supportsFileDependencies()) { if (!supportsFileDependencies()) {
throw new UnsupportedOperationException();
throw new RuntimeException("File dependencies are not supported "
+ "by this analyzer");
} }
if (!determined) { if (!determined) {
determineDependencies(fileDependencies, classDependencies); determineDependencies(fileDependencies, classDependencies);


+ 1
- 3
src/main/org/apache/tools/ant/util/depend/DependencyAnalyzer.java View File

@@ -106,10 +106,8 @@ public interface DependencyAnalyzer {
* which the root classes depend. * which the root classes depend.
* *
* @return an enumeration of File instances. * @return an enumeration of File instances.
* @exception UnsupportedOperationException if the analyzer cannot
* determine file dependencies.
*/ */
Enumeration getFileDependencies() throws UnsupportedOperationException;
Enumeration getFileDependencies();


/** /**
* Get the list of classes upon which root classes depend. This is a * Get the list of classes upon which root classes depend. This is a


Loading…
Cancel
Save