Skip to content

Commit

Permalink
Fix PMD Violation
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorCavichioli committed Aug 14, 2024
1 parent fe81103 commit ba16141
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public String getLocalDatacenter()
* @return the DataCenterAwarePolicy.
*/
@JsonProperty("datacenterAwarePolicy")
public final Class<? extends DefaultLoadBalancingPolicy> getDatacenterAwarePolicy()
public Class<? extends DefaultLoadBalancingPolicy> getDatacenterAwarePolicy()
{
return myDatacenterAwarePolicy;
}
Expand All @@ -123,7 +123,9 @@ public final Class<? extends DefaultLoadBalancingPolicy> getDatacenterAwarePolic
* the DataCenterAwarePolicy to set.
*/
@JsonProperty("datacenterAwarePolicy")
public final void setDatacenterAwarePolicy(final Class<? extends DefaultLoadBalancingPolicy> datacenterAwarePolicy) throws NoSuchMethodException
public void setDatacenterAwarePolicy(
final Class<? extends DefaultLoadBalancingPolicy> datacenterAwarePolicy
) throws NoSuchMethodException
{
myDatacenterAwarePolicy = datacenterAwarePolicy;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private void reconnect(final Node node) throws IOException, EcChronosException
}
catch
(
AllNodesFailedException|QueryExecutionException|IOException|SecurityException e)
AllNodesFailedException | QueryExecutionException | IOException | SecurityException e)
{
LOG.error("Failed to create JMX connection with node {} because of {}", node.getHostId(), e.getMessage());
myEccNodesSync.updateNodeStatus(NodeStatus.UNAVAILABLE, node.getDatacenter(), node.getHostId());
Expand Down

0 comments on commit ba16141

Please sign in to comment.