improve BrowserResult api

This commit is contained in:
Sebastian Sdorra
2011-06-18 17:02:58 +02:00
parent 5adea3f28b
commit 72d5c590b9
7 changed files with 69 additions and 115 deletions

View File

@@ -460,16 +460,11 @@ public class RepositoryResource
*/
private void sort(BrowserResult result)
{
FileObject file = result.getFile();
List<FileObject> files = result.getFiles();
if (file != null)
if (files != null)
{
List<FileObject> children = file.getChildren();
if (children != null)
{
Collections.sort(children, FileObjectNameComparator.instance);
}
Collections.sort(files, FileObjectNameComparator.instance);
}
}
@@ -496,7 +491,7 @@ public class RepositoryResource
*
*
* @version Enter version here..., 11/06/18
* @author Enter your name here...
* @author Enter your name here...
*/
private static class BrowserStreamingOutput implements StreamingOutput
{