Skip to content

Commit

Permalink
adding jsonignore filter back
Browse files Browse the repository at this point in the history
  • Loading branch information
ericm-db committed Nov 7, 2024
1 parent 2af4c6e commit 0d49797
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@ import java.util.Locale

import scala.reflect._

import org.apache.pulsar.client.impl.conf.{
ClientConfigurationData,
ProducerConfigurationData,
ReaderConfigurationData
}
import com.fasterxml.jackson.annotation.JsonIgnore
import org.apache.pulsar.client.impl.conf.{ClientConfigurationData, ProducerConfigurationData, ReaderConfigurationData}

object PulsarConfigurationUtils {

private def nonIgnoredFields[T: ClassTag] = {
classTag[T].runtimeClass.getDeclaredFields
.filter(f => !Modifier.isStatic(f.getModifiers))
.filter(f => f.getDeclaredAnnotation(classOf[JsonIgnore]) == null)
.map(_.getName)
}

Expand Down

0 comments on commit 0d49797

Please sign in to comment.