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

talsma-ict / context-propagation / #1516

06 Nov 2024 01:38PM CUT coverage: 83.968% (-7.8%) from 91.752%
#1516

push

web-flow
Merge 5d3025a76 into eef10dfb8

115 of 171 new or added lines in 25 files covered. (67.25%)

2 existing lines in 1 file now uncovered.

948 of 1129 relevant lines covered (83.97%)

0.84 hits per line

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

33.33
/context-propagation-core/src/main/java/nl/talsmasoftware/context/functions/ConsumerWithContext.java
1
/*
2
 * Copyright 2016-2024 Talsma ICT
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *         http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package nl.talsmasoftware.context.functions;
17

18
import nl.talsmasoftware.context.api.ContextSnapshot;
19

20
import java.util.function.Consumer;
21
import java.util.function.Supplier;
22

23
/**
24
 * A wrapper for {@link Consumer} that {@link ContextSnapshot#reactivate() reactivates a context snapshot} before
25
 * calling a delegate.
26
 *
27
 * @author Sjoerd Talsma
28
 * @deprecated Moved to package {@code nl.talsmasoftware.context.core.function}.
29
 */
30
@Deprecated
31
public class ConsumerWithContext<T> extends nl.talsmasoftware.context.core.function.ConsumerWithContext<T> {
32

33
    public ConsumerWithContext(ContextSnapshot snapshot, Consumer<T> delegate) {
34
        super(snapshot, delegate);
×
35
    }
×
36

37
    public ConsumerWithContext(ContextSnapshot snapshot, Consumer<T> delegate, Consumer<ContextSnapshot> consumer) {
38
        super(snapshot, delegate, consumer);
×
39
    }
×
40

41
    protected ConsumerWithContext(Supplier<ContextSnapshot> supplier, Consumer<T> delegate, Consumer<ContextSnapshot> consumer) {
42
        super(supplier, delegate, consumer);
1✔
43
    }
1✔
44

45
}
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

© 2025 Coveralls, Inc