-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 11609 fixes #13216
Issue 11609 fixes #13216
Conversation
…ate table and other minor changes.
…, unlocked and both choices
* @return Set of {@link WorkflowStatus} | ||
*/ | ||
public Set<WorkflowStatus> getShowOn() { | ||
return showOn; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private boolean assignable; | ||
private boolean commentable; | ||
private int order; | ||
private Set<WorkflowStatus> showOn = Collections.emptySet(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try { | ||
|
||
existsScheme = null != this.findScheme(schemeId); | ||
} catch (Exception e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new ImmutableList.Builder<>(); | ||
|
||
final List<Map<String, Object>> stepIdList = | ||
new DotConnect().setSQL(sql.SELECT_STEPS_ID_BY_ACTION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
if (null != stepIdList) { | ||
|
||
stepIdList.forEach( mapRow -> stepsBuilder.add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*/ | ||
public static Set<WorkflowStatus> toSet(Object value) { | ||
|
||
Set<WorkflowStatus> workflowStatusSet = Collections.emptySet(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
public Builder showOn(Set<WorkflowStatus> showOn) { | ||
this.showOn = showOn; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed
@@ -310,17 +311,19 @@ public void saveStep(WorkflowStep step) throws DotDataException, AlreadyExistExc | |||
@WrapInTransaction | |||
public void deleteStep(final WorkflowStep step) throws DotDataException { | |||
|
|||
Savepoint savepoint = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this variable is not used and can be delete it
PreparedStatement preparedStatement = null; | ||
try { | ||
|
||
preparedStatement = conn.prepareStatement(ALTER_TABLE + tableName + DROP_FOREIGN_KEY + constraintName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
|
||
try { | ||
preparedStatement = conn.prepareStatement(sql); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -4,6 +4,7 @@ | |||
import com.dotcms.contenttype.business.ContentTypeAPI; | |||
import com.dotcms.repackage.com.google.common.annotations.VisibleForTesting; | |||
import com.dotcms.repackage.org.apache.commons.beanutils.BeanUtils; | |||
import com.dotcms.util.CollectionsUtils; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -60,6 +60,7 @@ | |||
|
|||
import org.osgi.framework.BundleContext; | |||
|
|||
import java.sql.Savepoint; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SonarQube analysis reported 27 issues Watch the comments in this conversation to review them. 2 extra issuesNote: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:
|
No description provided.