• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

temporalio / sdk-java / #299

12 Aug 2024 06:16AM UTC coverage: 77.696% (+0.005%) from 77.691%
#299

push

github

web-flow
Warn on dangling handlers and add method to help await on all handlers. (#2144)

Warn on dangling handlers and add method to help
await on all handlers

96 of 108 new or added lines in 14 files covered. (88.89%)

9 existing lines in 3 files now uncovered.

19961 of 25691 relevant lines covered (77.7%)

0.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

87.5
/temporal-sdk/src/main/java/io/temporal/internal/sync/UpdateHandlerInfo.java
1
/*
2
 * Copyright (C) 2022 Temporal Technologies, Inc. All Rights Reserved.
3
 *
4
 * Copyright (C) 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
5
 *
6
 * Modifications copyright (C) 2017 Uber Technologies, Inc.
7
 *
8
 * Licensed under the Apache License, Version 2.0 (the "License");
9
 * you may not use this material except in compliance with the License.
10
 * You may obtain a copy of the License at
11
 *
12
 *   http://www.apache.org/licenses/LICENSE-2.0
13
 *
14
 * Unless required by applicable law or agreed to in writing, software
15
 * distributed under the License is distributed on an "AS IS" BASIS,
16
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
 * See the License for the specific language governing permissions and
18
 * limitations under the License.
19
 */
20

21
package io.temporal.internal.sync;
22

23
import io.temporal.workflow.HandlerUnfinishedPolicy;
24

25
public class UpdateHandlerInfo {
26
  private String updateId;
27
  private String name;
28
  private HandlerUnfinishedPolicy policy;
29

30
  public UpdateHandlerInfo(String updateId, String name, HandlerUnfinishedPolicy policy) {
1✔
31
    this.updateId = updateId;
1✔
32
    this.name = name;
1✔
33
    this.policy = policy;
1✔
34
  }
1✔
35

36
  public String getName() {
NEW
37
    return name;
×
38
  }
39

40
  public HandlerUnfinishedPolicy getPolicy() {
41
    return policy;
1✔
42
  }
43

44
  @Override
45
  public String toString() {
46
    return "UpdateHandlerInfo{"
1✔
47
        + "updateId='"
48
        + updateId
49
        + '\''
50
        + ", name='"
51
        + name
52
        + '\''
53
        + ", policy="
54
        + policy
55
        + '}';
56
  }
57
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc