Remove `@JsonIgnore` annotations for private members of `TaskAction` classes (#16099)

* Remove @JsonIgnore annotations for private members

* checkstyle fix - removed unused imports.
This commit is contained in:
Abhishek Radhakrishnan 2024-03-12 02:42:36 +08:00 committed by GitHub
parent 94d2a28465
commit 8084f2206b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 0 additions and 38 deletions

View File

@ -20,7 +20,6 @@
package org.apache.druid.indexing.common.actions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import org.apache.druid.indexing.common.task.Task;
@ -28,7 +27,6 @@ import org.joda.time.Interval;
public class LockReleaseAction implements TaskAction<Void>
{
@JsonIgnore
private final Interval interval;
@JsonCreator

View File

@ -20,7 +20,6 @@
package org.apache.druid.indexing.common.actions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import org.apache.druid.indexing.common.task.Task;
@ -28,10 +27,7 @@ import org.joda.time.Interval;
public class MarkSegmentsAsUnusedAction implements TaskAction<Integer>
{
@JsonIgnore
private final String dataSource;
@JsonIgnore
private final Interval interval;
@JsonCreator

View File

@ -20,7 +20,6 @@
package org.apache.druid.indexing.common.actions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import org.apache.druid.indexing.common.task.Task;
@ -34,16 +33,9 @@ import java.util.List;
public class RetrieveUnusedSegmentsAction implements TaskAction<List<DataSegment>>
{
@JsonIgnore
private final String dataSource;
@JsonIgnore
private final Interval interval;
@JsonIgnore
private final Integer limit;
@JsonIgnore
private final DateTime maxUsedStatusLastUpdatedTime;
@JsonCreator

View File

@ -20,7 +20,6 @@
package org.apache.druid.indexing.common.actions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.common.base.Preconditions;
@ -67,13 +66,8 @@ public class RetrieveUsedSegmentsAction implements TaskAction<Collection<DataSeg
{
private static final Logger log = new Logger(RetrieveUsedSegmentsAction.class);
@JsonIgnore
private final String dataSource;
@JsonIgnore
private final List<Interval> intervals;
@JsonIgnore
private final Segments visibility;
@JsonCreator

View File

@ -20,7 +20,6 @@
package org.apache.druid.indexing.common.actions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.common.collect.ImmutableSet;
@ -38,7 +37,6 @@ import java.util.stream.Collectors;
public class SegmentMetadataUpdateAction implements TaskAction<Void>
{
@JsonIgnore
private final Set<DataSegment> segments;
@JsonCreator

View File

@ -20,7 +20,6 @@
package org.apache.druid.indexing.common.actions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.common.collect.ImmutableSet;
@ -38,7 +37,6 @@ import java.util.stream.Collectors;
public class SegmentNukeAction implements TaskAction<Void>
{
@JsonIgnore
private final Set<DataSegment> segments;
@JsonCreator

View File

@ -20,7 +20,6 @@
package org.apache.druid.indexing.common.actions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.common.base.Preconditions;
@ -41,11 +40,7 @@ import javax.annotation.Nullable;
public class TimeChunkLockAcquireAction implements TaskAction<TaskLock>
{
private final TaskLockType type;
@JsonIgnore
private final Interval interval;
@JsonIgnore
private final long timeoutMs;
@JsonCreator

View File

@ -20,7 +20,6 @@
package org.apache.druid.indexing.common.actions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import org.apache.druid.indexing.common.TaskLock;
@ -38,10 +37,7 @@ import javax.annotation.Nullable;
*/
public class TimeChunkLockTryAcquireAction implements TaskAction<TaskLock>
{
@JsonIgnore
private final TaskLockType type;
@JsonIgnore
private final Interval interval;
@JsonCreator

View File

@ -20,7 +20,6 @@
package org.apache.druid.indexing.common.actions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.common.base.Optional;
@ -30,7 +29,6 @@ import org.apache.druid.indexing.overlord.TaskRunner;
public class UpdateLocationAction implements TaskAction<Void>
{
@JsonIgnore
private final TaskLocation taskLocation;
@JsonCreator

View File

@ -20,7 +20,6 @@
package org.apache.druid.indexing.common.actions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.common.base.Optional;
@ -32,9 +31,7 @@ import java.util.Objects;
public class UpdateStatusAction implements TaskAction<Void>
{
@JsonIgnore
private final String status;
@JsonIgnore
private final TaskStatus statusFull;
@Deprecated