Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cicoyle/java-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: dapr/java-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 4 commits
  • 48 files changed
  • 3 contributors

Commits on Jun 11, 2025

  1. Pull out createTimer logic (dapr#1419)

    * pull out logical changes from @salaboy's PR to release it
    
    Signed-off-by: Cassandra Coyle <[email protected]>
    
    * add missing import
    
    Signed-off-by: Cassandra Coyle <[email protected]>
    
    ---------
    
    Signed-off-by: Cassandra Coyle <[email protected]>
    cicoyle authored Jun 11, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e3fc48d View commit details

Commits on Jun 12, 2025

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    2454fec View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7cf6533 View commit details

Commits on Jun 16, 2025

  1. Bump org.springframework:spring-web in /dapr-spring (dapr#1424)

    Bumps [org.springframework:spring-web](https://github.com/spring-projects/spring-framework) from 6.1.20 to 6.1.21.
    - [Release notes](https://github.com/spring-projects/spring-framework/releases)
    - [Commits](spring-projects/spring-framework@v6.1.20...v6.1.21)
    
    ---
    updated-dependencies:
    - dependency-name: org.springframework:spring-web
      dependency-version: 6.1.21
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 16, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d01da7a View commit details
Showing with 244 additions and 52 deletions.
  1. +10 −0 checkstyle.xml
  2. +0 −1 ...ot-autoconfigure/src/main/java/io/dapr/spring/boot/autoconfigure/client/DaprClientProperties.java
  3. +0 −1 ...ot-autoconfigure/src/main/java/io/dapr/spring/boot/autoconfigure/pubsub/DaprPubSubProperties.java
  4. +13 −0 .../io/dapr/spring/boot/testcontainers/service/connection/DaprContainerConnectionDetailsFactory.java
  5. +0 −1 dapr-spring/dapr-spring-data/src/main/java/io/dapr/spring/data/MySQLDaprKeyValueAdapter.java
  6. +13 −1 dapr-spring/dapr-spring-data/src/main/java/io/dapr/spring/data/repository/query/DaprPredicate.java
  7. +0 −3 dapr-spring/dapr-spring-messaging/src/main/java/io/dapr/spring/messaging/DaprMessagingTemplate.java
  8. +0 −2 ...ring-messaging/src/main/java/io/dapr/spring/messaging/observation/DaprMessagingSenderContext.java
  9. +13 −0 ...pr-spring-workflows/src/main/java/io/dapr/spring/workflows/config/DaprWorkflowsConfiguration.java
  10. +13 −1 ...ring/dapr-spring-workflows/src/main/java/io/dapr/spring/workflows/config/EnableDaprWorkflows.java
  11. +1 −1 dapr-spring/pom.xml
  12. +1 −0 examples/src/main/java/io/dapr/examples/workflows/childworkflow/DemoChildWorkflow.java
  13. +0 −1 sdk-actors/src/main/java/io/dapr/actors/ActorId.java
  14. +0 −1 sdk-actors/src/main/java/io/dapr/actors/client/ActorClient.java
  15. +0 −2 sdk-springboot/src/main/java/io/dapr/springboot/DaprController.java
  16. +0 −1 sdk-springboot/src/main/java/io/dapr/springboot/DaprTopicSubscription.java
  17. +1 −4 sdk-workflows/src/main/java/io/dapr/workflows/WorkflowContext.java
  18. +6 −0 sdk-workflows/src/main/java/io/dapr/workflows/runtime/DefaultWorkflowContext.java
  19. +0 −1 sdk-workflows/src/main/java/io/dapr/workflows/runtime/WorkflowActivityClassWrapper.java
  20. +1 −1 sdk-workflows/src/main/java/io/dapr/workflows/runtime/WorkflowRuntime.java
  21. +11 −8 sdk-workflows/src/test/java/io/dapr/workflows/DefaultWorkflowContextTest.java
  22. +0 −1 sdk/src/main/java/io/dapr/client/AbstractDaprClient.java
  23. +0 −1 sdk/src/main/java/io/dapr/client/GrpcChannelFacade.java
  24. +0 −1 sdk/src/main/java/io/dapr/client/domain/BulkPublishEntry.java
  25. +1 −1 sdk/src/main/java/io/dapr/client/domain/BulkSubscribeAppResponseStatus.java
  26. +1 −1 sdk/src/main/java/io/dapr/client/domain/BulkSubscribeMessage.java
  27. +0 −1 sdk/src/main/java/io/dapr/client/domain/LockRequest.java
  28. +0 −2 sdk/src/main/java/io/dapr/client/domain/QueryStateItem.java
  29. +0 −1 sdk/src/main/java/io/dapr/client/domain/QueryStateResponse.java
  30. +0 −1 sdk/src/main/java/io/dapr/client/domain/UnlockResponseStatus.java
  31. +1 −1 sdk/src/main/java/io/dapr/client/domain/query/Query.java
  32. +0 −2 sdk/src/main/java/io/dapr/config/Properties.java
  33. +1 −2 sdk/src/main/java/io/dapr/exceptions/DaprErrorDetails.java
  34. +0 −3 sdk/src/main/java/io/dapr/internal/grpc/interceptors/DaprMetadataReceiverInterceptor.java
  35. +13 −0 sdk/src/main/java/io/dapr/serializer/CustomizableObjectSerializer.java
  36. +0 −2 sdk/src/main/java/io/dapr/utils/DefaultContentTypeConverter.java
  37. +1 −2 sdk/src/main/java/io/dapr/utils/NetworkUtils.java
  38. +13 −0 testcontainers-dapr/src/main/java/io/dapr/testcontainers/ConfigurationSettings.java
  39. +13 −0 testcontainers-dapr/src/main/java/io/dapr/testcontainers/DaprContainerConstants.java
  40. +13 −0 testcontainers-dapr/src/main/java/io/dapr/testcontainers/HttpEndpoint.java
  41. +13 −0 testcontainers-dapr/src/main/java/io/dapr/testcontainers/OtelTracingConfigurationSettings.java
  42. +13 −0 testcontainers-dapr/src/main/java/io/dapr/testcontainers/ZipkinTracingConfigurationSettings.java
  43. +13 −0 testcontainers-dapr/src/main/java/io/dapr/testcontainers/converter/ComponentYamlConverter.java
  44. +13 −0 testcontainers-dapr/src/main/java/io/dapr/testcontainers/converter/ConfigurationYamlConverter.java
  45. +13 −0 testcontainers-dapr/src/main/java/io/dapr/testcontainers/converter/HttpEndpointYamlConverter.java
  46. +13 −0 testcontainers-dapr/src/main/java/io/dapr/testcontainers/converter/SubscriptionYamlConverter.java
  47. +13 −0 testcontainers-dapr/src/main/java/io/dapr/testcontainers/converter/YamlConverter.java
  48. +13 −0 testcontainers-dapr/src/main/java/io/dapr/testcontainers/converter/YamlMapperFactory.java
10 changes: 10 additions & 0 deletions checkstyle.xml
Original file line number Diff line number Diff line change
@@ -112,6 +112,7 @@
<module name="ModifierOrder"/>
<module name="EmptyLineSeparator">
<property name="allowNoEmptyLineBetweenFields" value="true"/>
<property name="allowMultipleEmptyLines" value="false"/>
</module>
<module name="SeparatorWrap">
<property name="id" value="SeparatorWrapDot"/>
@@ -287,4 +288,13 @@
<module name="SuppressWarningsHolder"/>
</module>
<module name="SuppressWarningsFilter"/>
<module name="RegexpHeader">
<property name="headerFile" value="${checkstyle.header.file}"/>
<property name="fileExtensions" value="java,xml"/>
</module>
<module name="SuppressionSingleFilter">
<property name="checks" value="RegexpHeader"/>
<property name="files" value=".*\.properties$"/>
</module>
<module name="NewlineAtEndOfFile"/>
</module>
Original file line number Diff line number Diff line change
@@ -23,7 +23,6 @@ public class DaprClientProperties {
private Integer httpPort;
private Integer grpcPort;


/**
* Constructs a {@link DaprClientProperties}.
*/
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@

import org.springframework.boot.context.properties.ConfigurationProperties;


@ConfigurationProperties(prefix = DaprPubSubProperties.CONFIG_PREFIX)
public class DaprPubSubProperties {

Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright 2021 The Dapr Authors
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
limitations under the License.
*/

package io.dapr.spring.boot.testcontainers.service.connection;

import io.dapr.spring.boot.autoconfigure.client.DaprConnectionDetails;
Original file line number Diff line number Diff line change
@@ -76,7 +76,6 @@ public MySQLDaprKeyValueAdapter(DaprClient daprClient, ObjectMapper mapper, Stri
this.bindingName = bindingName;
}


@Override
public <T> Iterable<T> getAllOf(String keyspace, Class<T> type) {
Assert.hasText(keyspace, "Keyspace must not be empty");
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright 2021 The Dapr Authors
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
limitations under the License.
*/

package io.dapr.spring.data.repository.query;

import org.springframework.beans.BeanWrapper;
@@ -18,7 +31,6 @@ public DaprPredicate(PropertyPath path, Object expected) {
this(path, expected, (valueToCompare) -> ObjectUtils.nullSafeEquals(valueToCompare, expected));
}


/**
* Creates a new {@link DaprPredicate}.
*
Original file line number Diff line number Diff line change
@@ -192,7 +192,6 @@ public SendMessageBuilder<T> withTopic(String topic) {
return this;
}


@Override
public void send() {
template.doSend(topic, message);
@@ -202,7 +201,5 @@ public void send() {
public Mono<Void> sendAsync() {
return template.doSendAsync(topic, message);
}

}

}
Original file line number Diff line number Diff line change
@@ -58,7 +58,6 @@ public Map<String, String> properties() {
return carrier.properties();
}


/**
* The name of the bean sending the message (typically a {@code DaprMessagingTemplate}).
* @return the name of the bean sending the message
@@ -75,7 +74,6 @@ public String getDestination() {
return this.destination;
}


/**
* Acts as a carrier for a Dapr message and records the propagated properties for
* later access by the Dapr.
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright 2021 The Dapr Authors
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
limitations under the License.
*/

package io.dapr.spring.workflows.config;

import io.dapr.workflows.Workflow;
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
package io.dapr.spring.workflows.config;
/*
* Copyright 2021 The Dapr Authors
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
limitations under the License.
*/

package io.dapr.spring.workflows.config;

import org.springframework.context.annotation.Import;

2 changes: 1 addition & 1 deletion dapr-spring/pom.xml
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@
<junit.version>5.11.2</junit.version>
<dapr.spring.version>0.16.0-SNAPSHOT</dapr.spring.version>
<springboot.version>3.2.6</springboot.version>
<springframework.version>6.1.20</springframework.version>
<springframework.version>6.1.21</springframework.version>
<logback-core.version>1.4.14</logback-core.version>
</properties>

Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@

package io.dapr.examples.workflows.childworkflow;

import io.dapr.durabletask.interruption.OrchestratorBlockedException;
import io.dapr.workflows.Workflow;
import io.dapr.workflows.WorkflowStub;
import io.dapr.workflows.WorkflowTaskOptions;
1 change: 0 additions & 1 deletion sdk-actors/src/main/java/io/dapr/actors/ActorId.java
Original file line number Diff line number Diff line change
@@ -123,7 +123,6 @@ public static ActorId createRandom() {
return new ActorId(id.toString());
}


/**
* Compares if two actors have the same content.
*
Original file line number Diff line number Diff line change
@@ -130,7 +130,6 @@ public void close() {
}
}


/**
* Build an instance of the Client based on the provided setup.
*
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@

package io.dapr.springboot;


import io.dapr.actors.runtime.ActorRuntime;
import io.dapr.serializer.DefaultObjectSerializer;
import org.springframework.http.MediaType;
@@ -124,5 +123,4 @@ public Mono<Void> invokeActorReminder(@PathVariable("type") String type,
@RequestBody(required = false) byte[] body) {
return ActorRuntime.getInstance().invokeReminder(type, id, reminder, body);
}

}
Original file line number Diff line number Diff line change
@@ -123,7 +123,6 @@ class DaprTopicSubscription {
this(pubsubName, topic, route, "", routes, metadata, bulkSubscribe);
}


/**
* Create a subscription topic.
*
Original file line number Diff line number Diff line change
@@ -347,10 +347,7 @@ default Task<Task<?>> anyOf(Task<?>... tasks) {
* @param zonedDateTime timestamp with specific zone when the timer should expire
* @return a new {@code Task} that completes after the specified delay
*/
default Task<Void> createTimer(ZonedDateTime zonedDateTime) {
throw new UnsupportedOperationException("This method is not implemented.");
}

Task<Void> createTimer(ZonedDateTime zonedDateTime);

/**
* Gets the deserialized input of the current task orchestration.
Original file line number Diff line number Diff line change
@@ -33,6 +33,7 @@

import java.time.Duration;
import java.time.Instant;
import java.time.ZonedDateTime;
import java.util.List;
import java.util.UUID;

@@ -189,6 +190,11 @@ public Task<Void> createTimer(Duration duration) {
return this.innerContext.createTimer(duration);
}

@Override
public Task<Void> createTimer(ZonedDateTime zonedDateTime) {
return this.innerContext.createTimer(zonedDateTime);
}

/**
* {@inheritDoc}
*/
Original file line number Diff line number Diff line change
@@ -48,7 +48,6 @@ public String getName() {
return name;
}


@Override
public TaskActivity create() {
return ctx -> {
Original file line number Diff line number Diff line change
@@ -94,4 +94,4 @@ private void shutDownWorkerPool() {
Thread.currentThread().interrupt();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -39,14 +39,10 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.Mockito.*;

public class DefaultWorkflowContextTest {
private DefaultWorkflowContext context;
@@ -124,6 +120,11 @@ public Task<Void> createTimer(Duration duration) {
return null;
}

@Override
public Task<Void> createTimer(ZonedDateTime zonedDateTime) {
return null;
}

@Override
public <V> V getInput(Class<V> targetType) {
return null;
@@ -269,8 +270,10 @@ public void createTimerTest() {
}

@Test
public void createTimerWithZonedDateTimeThrowsTest() {
assertThrows(UnsupportedOperationException.class, () -> context.createTimer(ZonedDateTime.now()));
public void createTimerWithZonedDateTimeTest() {
ZonedDateTime now = ZonedDateTime.now();
context.createTimer(now);
verify(mockInnerContext, times(1)).createTimer(now);
}

@Test
1 change: 0 additions & 1 deletion sdk/src/main/java/io/dapr/client/AbstractDaprClient.java
Original file line number Diff line number Diff line change
@@ -655,7 +655,6 @@ public Mono<UnlockResponseStatus> unlock(String storeName, String resourceId, St
return this.unlock(request);
}


private List<String> filterEmptyKeys(String... keys) {
return Arrays.stream(keys)
.filter(key -> !key.trim().isEmpty())
1 change: 0 additions & 1 deletion sdk/src/main/java/io/dapr/client/GrpcChannelFacade.java
Original file line number Diff line number Diff line change
@@ -32,7 +32,6 @@ class GrpcChannelFacade implements Closeable {
*/
private final ManagedChannel channel;


/**
* Default access level constructor, in order to create an instance of this class use io.dapr.client.DaprClientBuilder
*
Original file line number Diff line number Diff line change
@@ -81,7 +81,6 @@ public T getEvent() {
return event;
}


public String getContentType() {
return contentType;
}
Original file line number Diff line number Diff line change
@@ -20,4 +20,4 @@ public enum BulkSubscribeAppResponseStatus {
SUCCESS,
RETRY,
DROP
}
}
Original file line number Diff line number Diff line change
@@ -55,4 +55,4 @@ public String getTopic() {
public Map<String, String> getMetadata() {
return metadata;
}
}
}
1 change: 0 additions & 1 deletion sdk/src/main/java/io/dapr/client/domain/LockRequest.java
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@

package io.dapr.client.domain;


import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
2 changes: 0 additions & 2 deletions sdk/src/main/java/io/dapr/client/domain/QueryStateItem.java
Original file line number Diff line number Diff line change
@@ -13,10 +13,8 @@

package io.dapr.client.domain;


public class QueryStateItem<T> {


/**
* The value of the state.
*/
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@

package io.dapr.client.domain;


import java.util.Collections;
import java.util.List;
import java.util.Map;
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@

package io.dapr.client.domain;


public enum UnlockResponseStatus {

/**
2 changes: 1 addition & 1 deletion sdk/src/main/java/io/dapr/client/domain/query/Query.java
Original file line number Diff line number Diff line change
@@ -72,4 +72,4 @@ public Query setPagination(Pagination pagination) {
this.pagination = pagination;
return this;
}
}
}
2 changes: 0 additions & 2 deletions sdk/src/main/java/io/dapr/config/Properties.java
Original file line number Diff line number Diff line change
@@ -254,8 +254,6 @@ public class Properties {
"DAPR_HTTP_CLIENT_MAX_IDLE_CONNECTIONS",
DEFAULT_HTTP_CLIENT_MAX_IDLE_CONNECTIONS);



/**
* Dapr's default maximum inbound message size for GRPC in bytes.
*/
3 changes: 1 addition & 2 deletions sdk/src/main/java/io/dapr/exceptions/DaprErrorDetails.java
Original file line number Diff line number Diff line change
@@ -217,5 +217,4 @@ public enum ErrorDetailType {
HELP,
LOCALIZED_MESSAGE,
}

}
}
Loading