chore: Drop @unused annotation from pekko (#2241)
This commit is contained in:
parent
5657514b39
commit
4f2434b650
115 changed files with 410 additions and 377 deletions
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
package org.apache.pekko.serialization.jackson
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode
|
||||
import scala.annotation.nowarn
|
||||
|
||||
import org.apache.pekko.util.unused
|
||||
import com.fasterxml.jackson.databind.JsonNode
|
||||
|
||||
/**
|
||||
* Data migration of old formats to current format can
|
||||
|
|
@ -51,7 +51,7 @@ abstract class JacksonMigration {
|
|||
* Override this method if you have changed the class name. Return
|
||||
* current class name.
|
||||
*/
|
||||
def transformClassName(@unused fromVersion: Int, className: String): String =
|
||||
def transformClassName(@nowarn("msg=never used") fromVersion: Int, className: String): String =
|
||||
className
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -58,7 +58,6 @@ import pekko.actor.{
|
|||
import pekko.actor.setup.Setup
|
||||
import pekko.annotation.InternalStableApi
|
||||
import pekko.event.{ Logging, LoggingAdapter }
|
||||
import pekko.util.unused
|
||||
|
||||
import com.typesafe.config.Config
|
||||
|
||||
|
|
@ -469,7 +468,7 @@ class JacksonObjectMapperFactory {
|
|||
* @param jsonFactory optional `JsonFactory` such as `CBORFactory`, for plain JSON `None` (defaults)
|
||||
* can be used
|
||||
*/
|
||||
def newObjectMapper(@unused bindingName: String, jsonFactory: JsonFactory): ObjectMapper =
|
||||
def newObjectMapper(@nowarn("msg=never used") bindingName: String, jsonFactory: JsonFactory): ObjectMapper =
|
||||
JsonMapper.builder(jsonFactory).build()
|
||||
|
||||
/**
|
||||
|
|
@ -485,7 +484,7 @@ class JacksonObjectMapperFactory {
|
|||
* `pekko.serialization.jackson.deserialization-features`
|
||||
*/
|
||||
def overrideConfiguredModules(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredModules: immutable.Seq[Module]): immutable.Seq[Module] =
|
||||
configuredModules
|
||||
|
||||
|
|
@ -502,7 +501,7 @@ class JacksonObjectMapperFactory {
|
|||
* `pekko.serialization.jackson.serialization-features`
|
||||
*/
|
||||
def overrideConfiguredSerializationFeatures(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredFeatures: immutable.Seq[(SerializationFeature, Boolean)])
|
||||
: immutable.Seq[(SerializationFeature, Boolean)] =
|
||||
configuredFeatures
|
||||
|
|
@ -520,7 +519,7 @@ class JacksonObjectMapperFactory {
|
|||
* `pekko.serialization.jackson.deserialization-features`
|
||||
*/
|
||||
def overrideConfiguredDeserializationFeatures(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredFeatures: immutable.Seq[(DeserializationFeature, Boolean)])
|
||||
: immutable.Seq[(DeserializationFeature, Boolean)] =
|
||||
configuredFeatures
|
||||
|
|
@ -538,7 +537,7 @@ class JacksonObjectMapperFactory {
|
|||
* `pekko.serialization.jackson3.enum-features`
|
||||
*/
|
||||
def overrideConfiguredEnumFeatures(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredFeatures: immutable.Seq[(EnumFeature, Boolean)])
|
||||
: immutable.Seq[(EnumFeature, Boolean)] =
|
||||
configuredFeatures
|
||||
|
|
@ -552,7 +551,7 @@ class JacksonObjectMapperFactory {
|
|||
* @param configuredFeatures the list of `MapperFeatures` that were configured in `pekko.serialization.jackson.mapper-features`
|
||||
*/
|
||||
def overrideConfiguredMapperFeatures(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredFeatures: immutable.Seq[(MapperFeature, Boolean)]): immutable.Seq[(MapperFeature, Boolean)] =
|
||||
configuredFeatures
|
||||
|
||||
|
|
@ -565,7 +564,7 @@ class JacksonObjectMapperFactory {
|
|||
* @param configuredFeatures the list of `JsonParser.Feature` that were configured in `pekko.serialization.jackson.json-parser-features`
|
||||
*/
|
||||
def overrideConfiguredJsonParserFeatures(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredFeatures: immutable.Seq[(JsonParser.Feature, Boolean)]): immutable.Seq[(JsonParser.Feature, Boolean)] =
|
||||
configuredFeatures
|
||||
|
||||
|
|
@ -578,7 +577,7 @@ class JacksonObjectMapperFactory {
|
|||
* @param configuredFeatures the list of `JsonGenerator.Feature` that were configured in `pekko.serialization.jackson.json-generator-features`
|
||||
*/
|
||||
def overrideConfiguredJsonGeneratorFeatures(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredFeatures: immutable.Seq[(JsonGenerator.Feature, Boolean)])
|
||||
: immutable.Seq[(JsonGenerator.Feature, Boolean)] =
|
||||
configuredFeatures
|
||||
|
|
@ -592,7 +591,7 @@ class JacksonObjectMapperFactory {
|
|||
* @param configuredFeatures the list of `StreamReadFeature` that were configured in `pekko.serialization.jackson.stream-read-features`
|
||||
*/
|
||||
def overrideConfiguredStreamReadFeatures(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredFeatures: immutable.Seq[(StreamReadFeature, Boolean)]): immutable.Seq[(StreamReadFeature, Boolean)] =
|
||||
configuredFeatures
|
||||
|
||||
|
|
@ -605,7 +604,7 @@ class JacksonObjectMapperFactory {
|
|||
* @param configuredFeatures the list of `StreamWriterFeature` that were configured in `pekko.serialization.jackson.stream-write-features`
|
||||
*/
|
||||
def overrideConfiguredStreamWriteFeatures(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredFeatures: immutable.Seq[(StreamWriteFeature, Boolean)]): immutable.Seq[(StreamWriteFeature, Boolean)] =
|
||||
configuredFeatures
|
||||
|
||||
|
|
@ -618,7 +617,7 @@ class JacksonObjectMapperFactory {
|
|||
* @param configuredFeatures the list of `JsonReadFeature` that were configured in `pekko.serialization.jackson.json-read-features`
|
||||
*/
|
||||
def overrideConfiguredJsonReadFeatures(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredFeatures: immutable.Seq[(JsonReadFeature, Boolean)]): immutable.Seq[(JsonReadFeature, Boolean)] =
|
||||
configuredFeatures
|
||||
|
||||
|
|
@ -631,7 +630,7 @@ class JacksonObjectMapperFactory {
|
|||
* @param configuredFeatures the list of `JsonWriteFeature` that were configured in `pekko.serialization.jackson.json-write-features`
|
||||
*/
|
||||
def overrideConfiguredJsonWriteFeatures(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredFeatures: immutable.Seq[(JsonWriteFeature, Boolean)]): immutable.Seq[(JsonWriteFeature, Boolean)] =
|
||||
configuredFeatures
|
||||
|
||||
|
|
@ -645,7 +644,7 @@ class JacksonObjectMapperFactory {
|
|||
* `pekko.serialization.jackson.visibility`
|
||||
*/
|
||||
def overrideConfiguredVisibility(
|
||||
@unused bindingName: String,
|
||||
@nowarn("msg=never used") bindingName: String,
|
||||
configuredFeatures: immutable.Seq[(PropertyAccessor, JsonAutoDetect.Visibility)])
|
||||
: immutable.Seq[(PropertyAccessor, JsonAutoDetect.Visibility)] =
|
||||
configuredFeatures
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue