mirror of https://github.com/apache/jclouds.git
Merge pull request #962 from andrewgaul/checkstyle-simplify-boolean-expression
Ensure simple boolean expressions via Checkstyle
This commit is contained in:
commit
48eab9bf3d
|
@ -242,7 +242,7 @@ public class RequestAuthorizeSignature implements HttpRequestFilter, RequestSign
|
|||
char separator = '?';
|
||||
for (String paramName : Ordering.natural().sortedCopy(params.keySet())) {
|
||||
// Skip any parameters that aren't part of the canonical signed string
|
||||
if (SIGNED_PARAMETERS.contains(paramName) == false)
|
||||
if (!SIGNED_PARAMETERS.contains(paramName))
|
||||
continue;
|
||||
toSign.append(separator).append(paramName);
|
||||
String paramValue = get(params.get(paramName), 0);
|
||||
|
|
|
@ -160,7 +160,7 @@ public class NodeCreator implements Function<NodeSpec, NodeAndInitialCredentials
|
|||
machineUtils.runScriptOnNode(partialNodeMetadata, new DeleteGShadowLock(), RunScriptOptions.NONE);
|
||||
|
||||
if(optionalNatIfaceCard.isPresent())
|
||||
checkState(networkUtils.enableNetworkInterface(partialNodeMetadata, optionalNatIfaceCard.get()) == true,
|
||||
checkState(networkUtils.enableNetworkInterface(partialNodeMetadata, optionalNatIfaceCard.get()),
|
||||
"cannot enable Nat Interface");
|
||||
|
||||
LoginCredentials credentials = partialNodeMetadata.getCredentials();
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
</module>
|
||||
<module name="ModifierOrder"/>
|
||||
<module name="MultipleVariableDeclarations"/>
|
||||
<module name="SimplifyBooleanExpression"/>
|
||||
<module name="UnusedImports"/>
|
||||
</module>
|
||||
<module name="RegexpMultiline">
|
||||
|
|
Loading…
Reference in New Issue