Skip to content

Commit f7e6c0d

Browse files
authored
Declare osgi.serviceloader.registrar requirement as optional. (#822)
1 parent 85391c7 commit f7e6c0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/fasterxml/jackson/core/JsonFactory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter;
2424
import com.fasterxml.jackson.core.util.JacksonFeature;
2525

26+
import static aQute.bnd.annotation.Resolution.OPTIONAL;
27+
2628
/**
2729
* The main factory class of Jackson package, used to configure and
2830
* construct reader (aka parser, {@link JsonParser})
@@ -44,7 +46,7 @@
4446
* @author Tatu Saloranta
4547
*/
4648
@SuppressWarnings("resource")
47-
@ServiceProvider(JsonFactory.class) // will be `TokenStreamFactory` in 3.x
49+
@ServiceProvider(value = JsonFactory.class, resolution = OPTIONAL) // will be `TokenStreamFactory` in 3.x
4850
public class JsonFactory
4951
extends TokenStreamFactory
5052
implements Versioned,

0 commit comments

Comments
 (0)