Skip to content

Commit

Permalink
Fix Sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankrnr32 committed Apr 5, 2023
1 parent 579daa7 commit ab32700
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.alpha.mongodb.sharding.core.configuration;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
Expand All @@ -19,6 +20,7 @@
* @author SHashank Sharma
*/
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class CollectionShardingOptions extends ShardingOptions {

private final List<String> defaultCollectionHints;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.alpha.mongodb.sharding.core.configuration;

import lombok.AccessLevel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
Expand All @@ -19,6 +20,7 @@
* @author SHashank Sharma
*/
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class CompositeShardingOptions extends DatabaseShardingOptions {

@Getter(AccessLevel.PACKAGE)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.alpha.mongodb.sharding.core.configuration;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
Expand All @@ -17,6 +18,7 @@
* @author Shashank Sharma
*/
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class DatabaseShardingOptions extends ShardingOptions {

private final List<String> defaultDatabaseHints;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.alpha.mongodb.sharding.core.configuration;

import lombok.EqualsAndHashCode;

/**
* Delegated Collection Sharding options that is used with CompositeShardingOptions.
* Use {@link CollectionShardingOptions} for defining sharding options for a collection
Expand All @@ -8,6 +10,7 @@
* @author Shashank Sharma
* @see com.alpha.mongodb.sharding.core.configuration.CollectionShardingOptions
*/
@EqualsAndHashCode(callSuper = true)
public class DelegatedCollectionShardingOptions extends CollectionShardingOptions {

private final CompositeShardingOptions delegate;
Expand Down

0 comments on commit ab32700

Please sign in to comment.