ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/util/depend AbstractAnalyzer.java DependencyAnalyzer.java
Date Thu, 21 Mar 2002 11:12:19 GMT
conor       02/03/21 03:12:19

  Modified:    src/main/org/apache/tools/ant/util/depend
                        AbstractAnalyzer.java DependencyAnalyzer.java
  Log:
  JDK 1.1 fix - thanks Stefan
  
  Revision  Changes    Path
  1.3       +3 -5      jakarta-ant/src/main/org/apache/tools/ant/util/depend/AbstractAnalyzer.java
  
  Index: AbstractAnalyzer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/util/depend/AbstractAnalyzer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -w -u -r1.2 -r1.3
  --- AbstractAnalyzer.java	18 Mar 2002 02:44:30 -0000	1.2
  +++ AbstractAnalyzer.java	21 Mar 2002 11:12:19 -0000	1.3
  @@ -113,13 +113,11 @@
        * which the root classes depend.
        *
        * @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()) {
  -            throw new UnsupportedOperationException();
  +            throw new RuntimeException("File dependencies are not supported " 
  +                + "by this analyzer");
           }
           if (!determined) {
               determineDependencies(fileDependencies, classDependencies);
  
  
  
  1.3       +1 -3      jakarta-ant/src/main/org/apache/tools/ant/util/depend/DependencyAnalyzer.java
  
  Index: DependencyAnalyzer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/util/depend/DependencyAnalyzer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -w -u -r1.2 -r1.3
  --- DependencyAnalyzer.java	18 Mar 2002 02:44:30 -0000	1.2
  +++ DependencyAnalyzer.java	21 Mar 2002 11:12:19 -0000	1.3
  @@ -106,10 +106,8 @@
        * which the root classes depend.
        *
        * @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
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message