summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DatabaseTaskJob.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DatabaseTaskJob.java b/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DatabaseTaskJob.java
index 6f6a7043d..ede35a8f6 100644
--- a/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DatabaseTaskJob.java
+++ b/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DatabaseTaskJob.java
@@ -54,7 +54,7 @@ public class DatabaseTaskJob
setJobDataMap( dataMap );
TaskQueue taskQueue = (TaskQueue) dataMap.get( TASK_QUEUE );
- String queuePolicy = dataMap.get( TASK_QUEUE_POLICY ).toString();
+ String queuePolicy = (String) dataMap.get( TASK_QUEUE_POLICY );
ArchivaTask task = new DatabaseTask();
task.setName( context.getJobDetail().getName() );