mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
improve BrowserResult api
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user