Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Poon2015-08-11 19:52:30 -0400
committerKenneth Poon2015-08-12 17:01:56 -0400
commit82cd9c122c88a94ef4e7b699b510b40d2991ed11 (patch)
treed50de01274b906f76b5dea0962784b87ef039987 /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal
parenteff1cccfaa7d3a6dca543d273e094ba3464bffbc (diff)
downloadorg.eclipse.mylyn.tasks-82cd9c122c88a94ef4e7b699b510b40d2991ed11.tar.gz
org.eclipse.mylyn.tasks-82cd9c122c88a94ef4e7b699b510b40d2991ed11.tar.xz
org.eclipse.mylyn.tasks-82cd9c122c88a94ef4e7b699b510b40d2991ed11.zip
474751: Deprecate TaskDataCollector.MAX_HITS and remove logging
Change-Id: I517252df90afd78f64c081b5a79f59f71d43cc84 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=474751 Signed-off-by: Kenneth Poon <kenneth.poon@tasktop.com>
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java
index 8496cc638..a8e611a22 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeQueriesJob.java
@@ -118,8 +118,6 @@ public class SynchronizeQueriesJob extends SynchronizationJob {
}
- public static final String MAX_HITS_REACHED = Messages.SynchronizeQueriesJob_Max_allowed_number_of_hits_returned_exceeded;
-
private final AbstractRepositoryConnector connector;
private final Set<RepositoryQuery> queries;
@@ -248,10 +246,11 @@ public class SynchronizeQueriesJob extends SynchronizationJob {
} catch (OperationCanceledException e) {
return Status.CANCEL_STATUS;
} catch (Exception e) {
- StatusHandler.log(new Status(IStatus.ERROR, ITasksCoreConstants.ID_PLUGIN, "Synchronization failed", e)); //$NON-NLS-1$
+ StatusHandler
+ .log(new Status(IStatus.ERROR, ITasksCoreConstants.ID_PLUGIN, "Synchronization failed", e)); //$NON-NLS-1$
} catch (LinkageError e) {
- StatusHandler.log(new Status(IStatus.ERROR, ITasksCoreConstants.ID_PLUGIN, NLS.bind(
- "Synchronization for connector ''{0}'' failed", connector.getConnectorKind()), e)); //$NON-NLS-1$
+ StatusHandler.log(new Status(IStatus.ERROR, ITasksCoreConstants.ID_PLUGIN,
+ NLS.bind("Synchronization for connector ''{0}'' failed", connector.getConnectorKind()), e)); //$NON-NLS-1$
} finally {
monitor.done();
}
@@ -311,11 +310,6 @@ public class SynchronizeQueriesJob extends SynchronizationJob {
}
IStatus result = connector.performQuery(repository, repositoryQuery, collector, event, monitor);
if (result == null || result.isOK()) {
- if (collector.getResultCount() >= TaskDataCollector.MAX_HITS) {
- StatusHandler.log(new Status(IStatus.WARNING, ITasksCoreConstants.ID_PLUGIN, MAX_HITS_REACHED + "\n" //$NON-NLS-1$
- + repositoryQuery.getSummary()));
- }
-
Set<ITask> removedChildren = collector.getRemovedChildren();
if (!removedChildren.isEmpty()) {
taskList.removeFromContainer(repositoryQuery, removedChildren);

Back to the top