Skip to content

Commit

Permalink
Remove @JsonIgnore annotations for private members of TaskAction
Browse files Browse the repository at this point in the history
…classes (apache#16099)

* Remove @JsonIgnore annotations for private members

* checkstyle fix - removed unused imports.
  • Loading branch information
abhishekrb19 authored Mar 11, 2024
1 parent 94d2a28 commit 8084f22
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@
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;
import org.joda.time.Interval;

public class LockReleaseAction implements TaskAction<Void>
{
@JsonIgnore
private final Interval interval;

@JsonCreator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,14 @@
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;
import org.joda.time.Interval;

public class MarkSegmentsAsUnusedAction implements TaskAction<Integer>
{
@JsonIgnore
private final String dataSource;

@JsonIgnore
private final Interval interval;

@JsonCreator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -34,16 +33,9 @@

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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -38,7 +37,6 @@

public class SegmentMetadataUpdateAction implements TaskAction<Void>
{
@JsonIgnore
private final Set<DataSegment> segments;

@JsonCreator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -38,7 +37,6 @@

public class SegmentNukeAction implements TaskAction<Void>
{
@JsonIgnore
private final Set<DataSegment> segments;

@JsonCreator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -41,11 +40,7 @@
public class TimeChunkLockAcquireAction implements TaskAction<TaskLock>
{
private final TaskLockType type;

@JsonIgnore
private final Interval interval;

@JsonIgnore
private final long timeoutMs;

@JsonCreator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -38,10 +37,7 @@
*/
public class TimeChunkLockTryAcquireAction implements TaskAction<TaskLock>
{
@JsonIgnore
private final TaskLockType type;

@JsonIgnore
private final Interval interval;

@JsonCreator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -30,7 +29,6 @@

public class UpdateLocationAction implements TaskAction<Void>
{
@JsonIgnore
private final TaskLocation taskLocation;

@JsonCreator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -32,9 +31,7 @@

public class UpdateStatusAction implements TaskAction<Void>
{
@JsonIgnore
private final String status;
@JsonIgnore
private final TaskStatus statusFull;

@Deprecated
Expand Down

0 comments on commit 8084f22

Please sign in to comment.