Skip to content

Commit

Permalink
fix dependency issue with pulsar-io-common (apache#4398)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrypeng authored and srkukarni committed May 29, 2019
1 parent 819916d commit 347d4ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions pulsar-io/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-common</artifactId>
<version>${project.version}</version>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
package org.apache.pulsar.io.common;

import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.pulsar.common.util.ObjectMapperFactory;
import org.apache.pulsar.io.core.SinkContext;
import org.apache.pulsar.io.core.SourceContext;
import org.apache.pulsar.io.core.annotations.FieldDoc;
Expand Down Expand Up @@ -65,6 +65,6 @@ private static <T> T loadWithSecrets(Map<String, Object> map, Class<T> clazz, Fu

}
}
return ObjectMapperFactory.getThreadLocal().convertValue(configs, clazz);
return new ObjectMapper().convertValue(configs, clazz);
}
}

0 comments on commit 347d4ab

Please sign in to comment.