Skip to content

Commit

Permalink
very minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
metas-ts committed Jul 23, 2021
1 parent f3948be commit 22f670a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
* Process executor: executes a process (sync or async) which was defined by given {@link ProcessInfo}.
*
* @author authors of earlier versions of this class are: Jorg Janke, Low Heng Sin, Teo Sarca
* @author metas-dev <dev@metasfresh.com>
* @author metas-dev dev@metasfresh.com>
*/
public final class ProcessExecutor
{
Expand Down Expand Up @@ -758,8 +758,6 @@ public Builder switchContextWhenRunning()
* If the callback fails, the exception is propagated, so the process will not be started.
* <p>
* A common use case of <code>beforeCallback</code> is to create to selections which are linked to this process instance.
*
* @param beforeCallback
*/
public Builder callBefore(final Consumer<ProcessInfo> beforeCallback)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonSubTypes({

@JsonSubTypes.Type(name = AttributesChangedEvent.TYPE, value = AttributesChangedEvent.class),

@JsonSubTypes.Type(name = SupplyRequiredEvent.TYPE, value = SupplyRequiredEvent.class),

@JsonSubTypes.Type(name = DDOrderAdvisedEvent.TYPE, value = DDOrderAdvisedEvent.class),
@JsonSubTypes.Type(name = DDOrderCreatedEvent.TYPE, value = DDOrderCreatedEvent.class),
@JsonSubTypes.Type(name = DDOrderDocStatusChangedEvent.TYPE, value = DDOrderDocStatusChangedEvent.class),
Expand Down Expand Up @@ -111,6 +110,8 @@
@JsonSubTypes.Type(name = StockEstimateCreatedEvent.TYPE, value = StockEstimateCreatedEvent.class),
@JsonSubTypes.Type(name = StockEstimateDeletedEvent.TYPE, value = StockEstimateDeletedEvent.class),

@JsonSubTypes.Type(name = SupplyRequiredEvent.TYPE, value = SupplyRequiredEvent.class),

@JsonSubTypes.Type(name = TransactionCreatedEvent.TYPE, value = TransactionCreatedEvent.class),
@JsonSubTypes.Type(name = TransactionDeletedEvent.TYPE, value = TransactionDeletedEvent.class)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class AttributesChangedEvent implements MaterialEvent
{
public static final String TYPE = "AttributesChangedEvent";

private final EventDescriptor eventDescriptor;
EventDescriptor eventDescriptor;

@NonNull
WarehouseId warehouseId;
Expand Down

0 comments on commit 22f670a

Please sign in to comment.