Commit 36398488 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

Revert "fix builder generic type"

This reverts commit 51f54f0d.
parent 51f54f0d
......@@ -28,8 +28,9 @@ import org.bonitasoft.studio.model.process.ProcessFactory;
*/
public class ActivityBuilder<T extends Activity, B extends ActivityBuilder<T, B>> extends FlowElementBuilder<T, B> {
public static <T extends Activity, B extends ActivityBuilder<T, B>> ActivityBuilder<T, B> create() {
return new ActivityBuilder<T,B>();
@SuppressWarnings("rawtypes")
public static ActivityBuilder<?, ?> create() {
return new ActivityBuilder();
}
public B withDuration(final String duration) {
......
......@@ -25,7 +25,6 @@ import org.bonitasoft.studio.model.process.ProcessFactory;
*/
public class BusinessObjectDataBuilder extends JavaObjectDataBuilder<BusinessObjectData, BusinessObjectDataBuilder> {
@SuppressWarnings("unchecked")
public static BusinessObjectDataBuilder create() {
return new BusinessObjectDataBuilder();
}
......
......@@ -26,8 +26,9 @@ import org.bonitasoft.studio.model.process.ProcessFactory;
*/
public class DataBuilder<T extends Data, B extends DataBuilder<T, B>> extends ElementBuilder<T, B> {
public static <T extends Data, B extends DataBuilder<T, B>> DataBuilder<T, B> create() {
return new DataBuilder<T, B>();
@SuppressWarnings("rawtypes")
public static DataBuilder<?, ?> create() {
return new DataBuilder();
}
public B withDatasourceId(final String datasourceId) {
......
......@@ -25,8 +25,9 @@ import org.bonitasoft.studio.model.process.ProcessFactory;
*/
public class JavaObjectDataBuilder<T extends JavaObjectData, B extends JavaObjectDataBuilder<T, B>> extends DataBuilder<T, B> {
public static <T extends JavaObjectData, B extends JavaObjectDataBuilder<T, B>> JavaObjectDataBuilder<T, B> create() {
return new JavaObjectDataBuilder<T, B>();
@SuppressWarnings("rawtypes")
public static JavaObjectDataBuilder<?, ?> create() {
return new JavaObjectDataBuilder();
}
public B withClassname(final String classname) {
......
......@@ -26,7 +26,6 @@ import org.bonitasoft.studio.model.process.Task;
*/
public class TaskBuilder extends ActivityBuilder<Task, TaskBuilder> {
@SuppressWarnings("unchecked")
public static TaskBuilder create() {
return new TaskBuilder();
}
......
......@@ -25,7 +25,6 @@ import org.bonitasoft.studio.model.process.XMLData;
*/
public class XMLDataBuilder extends DataBuilder<XMLData, XMLDataBuilder> {
@SuppressWarnings("unchecked")
public static XMLDataBuilder create() {
return new XMLDataBuilder();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment