Skip to content

Commit

Permalink
#13469 codacy feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan authored and Jonathan committed Jan 26, 2018
1 parent 7a606ec commit e25d04c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.IntStream;

import static com.dotmarketing.db.HibernateUtil.addSyncCommitListener;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public boolean existSchemeIdOnSchemesList(String schemeId, List<WorkflowScheme>
return workFlowFactory.existSchemeIdOnSchemesList(schemeId, schemes);
}

public WorkflowTask findTaskById(String id) throws DotDataException {
public WorkflowTask findTaskById(final String id) throws DotDataException {
return workFlowFactory.findWorkFlowTaskById(id);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ private String getStringValue(Map<String, Object> row, String key) {
}

private Long getLongValue(final Map<String, Object> row, final String key) {
return ConversionUtils.toLong(row.get(key), 0l);
return ConversionUtils.toLong(row.get(key), 0L);
}
// christian escalation
public List<WorkflowTask> searchAllTasks(WorkflowSearcher searcher) throws DotDataException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public long getLanguageId() {
return languageId;
}

public void setLanguageId(long languageId) {
public void setLanguageId(final long languageId) {
this.languageId = languageId;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

package com.dotmarketing.startup.runonce;

import static com.dotcms.util.CollectionsUtils.*;

import com.dotcms.util.CollectionsUtils;
import com.dotcms.util.ConversionUtils;
import com.dotmarketing.common.db.DotConnect;
import com.dotmarketing.db.DbConnectionFactory;
Expand All @@ -22,6 +19,8 @@
import java.util.List;
import java.util.Map;

import static com.dotcms.util.CollectionsUtils.map;

/**
* This upgrade task will add the column language_id to the workflow_task, set the default language id to all of current records
* and add an index for the language_id.
Expand Down

0 comments on commit e25d04c

Please sign in to comment.