Skip to content

Commit

Permalink
Remove unnessary Lombok noise. (neo4j#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-simons authored and injectives committed Sep 6, 2021
1 parent 9810ba2 commit ef80d79
Show file tree
Hide file tree
Showing 47 changed files with 8 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,15 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Map;

@Setter
@Getter
@NoArgsConstructor
@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.PROPERTY, property="name")
@JsonTypeInfo( use = JsonTypeInfo.Id.NAME, property = "name" )
public class AuthorizationToken
{
@JsonProperty("data")
@JsonProperty( "data" )
private Map<String,String> tokens;

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.TestkitState;
import neo4j.org.testkit.backend.messages.responses.MultiDBSupport;
Expand All @@ -30,7 +29,6 @@

@Setter
@Getter
@NoArgsConstructor
public class CheckMultiDBSupport implements TestkitRequest
{
private CheckMultiDBSupportBody data;
Expand Down Expand Up @@ -63,7 +61,6 @@ private MultiDBSupport createResponse( boolean available )

@Setter
@Getter
@NoArgsConstructor
public static class CheckMultiDBSupportBody
{
private String driverId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
@NoArgsConstructor
public class DomainNameResolutionCompleted implements TestkitCallbackResult
{
private DomainNameResolutionCompletedBody data;
Expand All @@ -39,7 +37,6 @@ public String getCallbackId()

@Setter
@Getter
@NoArgsConstructor
public static class DomainNameResolutionCompletedBody
{
private String requestId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.TestkitState;
import neo4j.org.testkit.backend.messages.responses.Driver;
Expand All @@ -30,7 +29,6 @@

@Setter
@Getter
@NoArgsConstructor
public class DriverClose implements TestkitRequest
{
private DriverCloseBody data;
Expand Down Expand Up @@ -58,7 +56,6 @@ private Driver createResponse()

@Setter
@Getter
@NoArgsConstructor
private static class DriverCloseBody
{
private String driverId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.TestkitState;
import neo4j.org.testkit.backend.messages.responses.FeatureList;
Expand All @@ -35,7 +34,6 @@

@Setter
@Getter
@NoArgsConstructor
public class GetFeatures implements TestkitRequest
{
private static final Set<String> COMMON_FEATURES = new HashSet<>( Arrays.asList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.TestkitState;
import neo4j.org.testkit.backend.messages.responses.RoutingTable;
Expand All @@ -42,7 +41,6 @@

@Setter
@Getter
@NoArgsConstructor
public class GetRoutingTable implements TestkitRequest
{
private GetRoutingTableBody data;
Expand Down Expand Up @@ -86,7 +84,6 @@ public CompletionStage<Optional<TestkitResponse>> processAsync( TestkitState tes

@Setter
@Getter
@NoArgsConstructor
public static class GetRoutingTableBody
{
private String driverId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import com.fasterxml.jackson.annotation.JacksonInject;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.CommandProcessor;
Expand Down Expand Up @@ -63,7 +62,7 @@ public class NewDriver implements TestkitRequest
{
private final CommandProcessor commandProcessor;

public NewDriver( @JacksonInject(CommandProcessor.COMMAND_PROCESSOR_ID) CommandProcessor commandProcessor )
public NewDriver( @JacksonInject( CommandProcessor.COMMAND_PROCESSOR_ID ) CommandProcessor commandProcessor )
{
this.commandProcessor = commandProcessor;
}
Expand Down Expand Up @@ -242,7 +241,6 @@ private Optional<TestkitResponse> handleExceptionAsErrorResponse( TestkitState t

@Setter
@Getter
@NoArgsConstructor
public static class NewDriverBody
{
private String uri;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.AsyncSessionState;
import neo4j.org.testkit.backend.SessionState;
Expand All @@ -42,7 +41,6 @@

@Setter
@Getter
@NoArgsConstructor
public class NewSession implements TestkitRequest
{
private NewSessionBody data;
Expand Down Expand Up @@ -98,7 +96,6 @@ private AsyncSessionState createAsyncSessionState( Driver driver, SessionConfig

@Setter
@Getter
@NoArgsConstructor
public static class NewSessionBody
{
private String driverId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
@NoArgsConstructor
public class ResolverResolutionCompleted implements TestkitCallbackResult
{
private ResolverResolutionCompletedBody data;
Expand All @@ -39,7 +37,6 @@ public String getCallbackId()

@Setter
@Getter
@NoArgsConstructor
public static class ResolverResolutionCompletedBody
{
private String requestId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.TestkitState;
import neo4j.org.testkit.backend.messages.responses.NullRecord;
Expand All @@ -34,7 +33,6 @@

@Setter
@Getter
@NoArgsConstructor
public class ResultConsume implements TestkitRequest
{
private ResultConsumeBody data;
Expand Down Expand Up @@ -78,7 +76,6 @@ private Summary createResponse( org.neo4j.driver.summary.ResultSummary summary )

@Setter
@Getter
@NoArgsConstructor
public static class ResultConsumeBody
{
private String resultId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.TestkitState;
import neo4j.org.testkit.backend.messages.responses.Record;
Expand All @@ -33,7 +32,6 @@

@Setter
@Getter
@NoArgsConstructor
public class ResultList implements TestkitRequest
{
private ResultListBody data;
Expand Down Expand Up @@ -65,7 +63,6 @@ private RecordList createResponse( List<org.neo4j.driver.Record> records )

@Setter
@Getter
@NoArgsConstructor
public static class ResultListBody
{
private String resultId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.TestkitState;
import neo4j.org.testkit.backend.messages.responses.NullRecord;
Expand All @@ -34,7 +33,6 @@

@Setter
@Getter
@NoArgsConstructor
public class ResultNext implements TestkitRequest
{
private ResultNextBody data;
Expand Down Expand Up @@ -69,7 +67,6 @@ private Record createResponse( org.neo4j.driver.Record record )

@Setter
@Getter
@NoArgsConstructor
public static class ResultNextBody
{
private String resultId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.AsyncSessionState;
import neo4j.org.testkit.backend.SessionState;
Expand All @@ -32,7 +31,6 @@

@Setter
@Getter
@NoArgsConstructor
public class RetryableNegative implements TestkitRequest
{
private RetryableNegativeBody data;
Expand Down Expand Up @@ -69,7 +67,6 @@ public CompletionStage<Optional<TestkitResponse>> processAsync( TestkitState tes

@Setter
@Getter
@NoArgsConstructor
public static class RetryableNegativeBody
{
private String sessionId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.SessionState;
import neo4j.org.testkit.backend.TestkitState;
Expand All @@ -31,7 +30,6 @@

@Setter
@Getter
@NoArgsConstructor
public class RetryablePositive implements TestkitRequest
{
private RetryablePositiveBody data;
Expand All @@ -57,7 +55,6 @@ public CompletionStage<Optional<TestkitResponse>> processAsync( TestkitState tes

@Setter
@Getter
@NoArgsConstructor
public static class RetryablePositiveBody
{
private String sessionId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.AsyncSessionState;
import neo4j.org.testkit.backend.SessionState;
Expand All @@ -37,7 +36,6 @@

@Setter
@Getter
@NoArgsConstructor
public class SessionBeginTransaction implements TestkitRequest
{
private SessionBeginTransactionBody data;
Expand Down Expand Up @@ -101,7 +99,6 @@ private Transaction transaction( String txId )
}

@Getter
@NoArgsConstructor
@Setter
public static class SessionBeginTransactionBody
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.TestkitState;
import neo4j.org.testkit.backend.messages.responses.Session;
Expand All @@ -30,7 +29,6 @@

@Setter
@Getter
@NoArgsConstructor
public class SessionClose implements TestkitRequest
{
private SessionCloseBody data;
Expand Down Expand Up @@ -58,7 +56,6 @@ private Session createResponse()

@Setter
@Getter
@NoArgsConstructor
private static class SessionCloseBody
{
private String sessionId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package neo4j.org.testkit.backend.messages.requests;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import neo4j.org.testkit.backend.SessionState;
import neo4j.org.testkit.backend.TestkitState;
Expand All @@ -34,7 +33,6 @@

@Setter
@Getter
@NoArgsConstructor
public class SessionLastBookmarks implements TestkitRequest
{
private SessionLastBookmarksBody data;
Expand Down Expand Up @@ -66,7 +64,6 @@ private Bookmarks createResponse( Bookmark bookmark )

@Setter
@Getter
@NoArgsConstructor
public static class SessionLastBookmarksBody
{
private String sessionId;
Expand Down
Loading

0 comments on commit ef80d79

Please sign in to comment.