From e4e1a26d5860ee6ff45d28ac29233e30eeecf1f3 Mon Sep 17 00:00:00 2001 From: Evgeny Zakrevsky Date: Mon, 22 Oct 2012 15:19:30 +0400 Subject: [PATCH] fix compilation --- .../com/intellij/tasks/generic/GenericWebRepository.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/tasks/tasks-core/src/com/intellij/tasks/generic/GenericWebRepository.java b/plugins/tasks/tasks-core/src/com/intellij/tasks/generic/GenericWebRepository.java index ce3e3ae73338..5667f41a08e7 100644 --- a/plugins/tasks/tasks-core/src/com/intellij/tasks/generic/GenericWebRepository.java +++ b/plugins/tasks/tasks-core/src/com/intellij/tasks/generic/GenericWebRepository.java @@ -52,7 +52,7 @@ public class GenericWebRepository extends BaseRepositoryImpl { } @Override - public List getIssues(@Nullable final String query, final int max, final long since) throws Exception { + public Task[] getIssues(@Nullable final String query, final int max, final long since) throws Exception { final HttpClient httpClient = getHttpClient(); if (!isLoginAnonymously()) login(httpClient); @@ -83,7 +83,7 @@ public class GenericWebRepository extends BaseRepositoryImpl { tasks = TaskSearchSupport.filterTasks(query != null ? query : "", tasks); tasks = tasks.subList(0, Math.min(max, tasks.size())); - return tasks; + return tasks.toArray(new Task[tasks.size()]); } private void login(final HttpClient httpClient) throws Exception { @@ -167,8 +167,8 @@ public class GenericWebRepository extends BaseRepositoryImpl { return new CancellableConnection() { @Override protected void doTest() throws Exception { - final List issues = getIssues("", 1, 0); - if (issues.size() == 0) throw new Exception("Tasks not found. Probably, you don't login."); + final Task[] issues = getIssues("", 1, 0); + if (issues.length == 0) throw new Exception("Tasks not found. Probably, you don't login."); } @Override