Skip to content

Commit 6e894cd

Browse files
committed
Fix formatting, replace fmt for spotify group, rebase
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent 4d645da commit 6e894cd

File tree

8 files changed

+24
-14
lines changed

8 files changed

+24
-14
lines changed

api/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
</executions>
145145
</plugin>
146146
<plugin>
147-
<groupId>com.coveo</groupId>
147+
<groupId>com.spotify.fmt</groupId>
148148
<artifactId>fmt-maven-plugin</artifactId>
149149
<configuration>
150150
<sourceDirectory>src/main/java</sourceDirectory>

api/src/test/java/io/serverlessworkflow/api/test/MarkupToWorkflowTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import io.serverlessworkflow.api.workflow.*;
4242
import java.util.List;
4343
import java.util.Map;
44-
4544
import org.junit.jupiter.params.ParameterizedTest;
4645
import org.junit.jupiter.params.provider.ValueSource;
4746

@@ -263,7 +262,8 @@ public void testTransitions(String workflowLocation) {
263262
assertNotNull(cond2.getTransition().getProduceEvents());
264263
assertEquals(1, cond2.getTransition().getProduceEvents().size());
265264
assertNotNull(cond2.getTransition().getProduceEvents().get(0).getContextAttributes());
266-
Map<String, String> contextAttributes = cond2.getTransition().getProduceEvents().get(0).getContextAttributes();
265+
Map<String, String> contextAttributes =
266+
cond2.getTransition().getProduceEvents().get(0).getContextAttributes();
267267
assertEquals(2, contextAttributes.size());
268268
assertEquals("IN", contextAttributes.get("order_location"));
269269
assertEquals("online", contextAttributes.get("order_type"));

diagram/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
</executions>
131131
</plugin>
132132
<plugin>
133-
<groupId>com.coveo</groupId>
133+
<groupId>com.spotify.fmt</groupId>
134134
<artifactId>fmt-maven-plugin</artifactId>
135135
<configuration>
136136
<sourceDirectory>src/main/java</sourceDirectory>

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<version.deploy.plugin>2.8.2</version.deploy.plugin>
6161
<version.enforcer.plugin>3.0.0-M2</version.enforcer.plugin>
6262
<version.failsafe.plugin>3.1.2</version.failsafe.plugin>
63-
<version.fmt-maven-plugin>2.13</version.fmt-maven-plugin>
63+
<version.fmt-maven-plugin>2.21.1</version.fmt-maven-plugin>
6464
<version.gpg.plugin>3.1.0</version.gpg.plugin>
6565
<version.jar.plugin>3.2.0</version.jar.plugin>
6666
<version.jdk>${java.version}</version.jdk>
@@ -383,7 +383,7 @@
383383
<version>${version.checkstyle.plugin}</version>
384384
</plugin>
385385
<plugin>
386-
<groupId>com.coveo</groupId>
386+
<groupId>com.spotify.fmt</groupId>
387387
<artifactId>fmt-maven-plugin</artifactId>
388388
<version>${version.fmt-maven-plugin}</version>
389389
</plugin>

spi/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
</executions>
103103
</plugin>
104104
<plugin>
105-
<groupId>com.coveo</groupId>
105+
<groupId>com.spotify.fmt</groupId>
106106
<artifactId>fmt-maven-plugin</artifactId>
107107
<configuration>
108108
<sourceDirectory>src/main/java</sourceDirectory>

utils/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
</executions>
103103
</plugin>
104104
<plugin>
105-
<groupId>com.coveo</groupId>
105+
<groupId>com.spotify.fmt</groupId>
106106
<artifactId>fmt-maven-plugin</artifactId>
107107
<configuration>
108108
<sourceDirectory>src/main/java</sourceDirectory>

utils/src/main/java/io/serverlessworkflow/utils/WorkflowUtils.java

+15-5
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,24 @@ public static List<EventDefinition> getDefinedEvents(
117117
.collect(Collectors.toList());
118118
}
119119

120-
/** @return {@code int} Returns count of defined event count matching eventKind */
120+
/**
121+
* @return {@code int} Returns count of defined event count matching eventKind
122+
*/
121123
public static int getDefinedEventsCount(Workflow workflow, EventDefinition.Kind eventKind) {
122124
List<EventDefinition> definedEvents = getDefinedEvents(workflow, eventKind);
123125
return definedEvents == null ? 0 : definedEvents.size();
124126
}
125127

126-
/** @return {@code int} Returns count of Defined Consumed Event Count */
128+
/**
129+
* @return {@code int} Returns count of Defined Consumed Event Count
130+
*/
127131
public static int getDefinedConsumedEventsCount(Workflow workflow) {
128132
return getDefinedEventsCount(workflow, EventDefinition.Kind.CONSUMED);
129133
}
130134

131-
/** @return {@code int} Returns count of Defined Produced Event Count */
135+
/**
136+
* @return {@code int} Returns count of Defined Produced Event Count
137+
*/
132138
public static int getDefinedProducedEventsCount(Workflow workflow) {
133139
return getDefinedEventsCount(workflow, EventDefinition.Kind.PRODUCED);
134140
}
@@ -252,7 +258,9 @@ public static int getWorkflowProducedEventsCount(Workflow workflow) {
252258
return workflowProducedEvents == null ? 0 : workflowProducedEvents.size();
253259
}
254260

255-
/** @return Returns function definition for actions */
261+
/**
262+
* @return Returns function definition for actions
263+
*/
256264
public static FunctionDefinition getFunctionDefinitionsForAction(
257265
Workflow workflow, String action) {
258266
if (!hasFunctionDefs(workflow)) return null;
@@ -267,7 +275,9 @@ public static FunctionDefinition getFunctionDefinitionsForAction(
267275
return functionDefinition.isPresent() ? functionDefinition.get() : null;
268276
}
269277

270-
/** @return : Returns @{code List<Action>} which uses a function defintion */
278+
/**
279+
* @return : Returns @{code List<Action>} which uses a function defintion
280+
*/
271281
public static List<Action> getActionsForFunctionDefinition(
272282
Workflow workflow, String functionDefinitionName) {
273283
if (!hasFunctionDefs(workflow, functionDefinitionName)) return null;

validation/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
</executions>
125125
</plugin>
126126
<plugin>
127-
<groupId>com.coveo</groupId>
127+
<groupId>com.spotify.fmt</groupId>
128128
<artifactId>fmt-maven-plugin</artifactId>
129129
<configuration>
130130
<sourceDirectory>src/main/java</sourceDirectory>

0 commit comments

Comments
 (0)