svn commit: r14721 - trunk/src/argouml-app/src/org/argouml/uml/generator/TempFileUtils.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-05-13 08:01:50-0700
New Revision: 14721

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/generator/TempFileUtils.java

Log:
Add collection types

Modified: trunk/src/argouml-app/src/org/argouml/uml/generator/TempFileUtils.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/generator/TempFileUtils.java?view=diff&rev=14721&p1=trunk/src/argouml-app/src/org/argouml/uml/generator/TempFileUtils.java&p2=trunk/src/argouml-app/src/org/argouml/uml/generator/TempFileUtils.java&r1=14720&r2=14721
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/generator/TempFileUtils.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/generator/TempFileUtils.java	2008-05-13 08:01:50-0700
@@ -1,5 +1,5 @@
 // $Id$

-// Copyright (c) 2006 The Regents of the University of California. All

+// Copyright (c) 2006-2008 The Regents of the University of California. All

 // Rights Reserved. Permission to use, copy, modify, and distribute this

 // software and its documentation without fee, and without a written

 // agreement is hereby granted, provided that the above copyright notice

@@ -94,9 +94,9 @@
      * @param dir directory to read files from

      * @return A collection of SourceUnit objects.

      */

-    public static Collection readAllFiles(File dir) {

+    public static Collection<SourceUnit> readAllFiles(File dir) {

         try {

-            final List ret = new ArrayList();

+            final List<SourceUnit> ret = new ArrayList<SourceUnit>();

             final int prefix = dir.getPath().length() + 1;

             traverseDir(dir, new FileAction() {

 

@@ -156,8 +156,8 @@
      * @param dir The base directory.

      * @return The collection of files.

      */

-    public static Collection readFileNames(File dir) {

-        final List ret = new ArrayList();

+    public static Collection<String> readFileNames(File dir) {

+        final List<String> ret = new ArrayList<String>();

         final int prefix = dir.getPath().length() + 1;

         try {

             traverseDir(dir, new FileAction() {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.