Minor code simplification.
This commit is contained in:
parent
9960e1c919
commit
db8d239c32
1 changed files with 3 additions and 3 deletions
|
@ -417,8 +417,8 @@ public class ApplicationManager implements XmlRpcHandler {
|
|||
repositoryList.add(new FileRepository(
|
||||
new File(server.getAppsHome(), appName)));
|
||||
}
|
||||
repositories = new Repository[repositoryList.size()];
|
||||
repositories = (Repository[]) repositoryList.toArray(repositories);
|
||||
|
||||
this.repositories = (RepositoryInterface[]) repositoryList.toArray(new RepositoryInterface[repositoryList.size()]);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue