reformat and remove unnecessary code
@@ -500,7 +500,6 @@ public class EmrHelper extends AwsHelper
if (awsInstanceTypeConfig != null)
{
EmrClusterInstanceTypeSpecification emrClusterInstanceTypeSpecification = new EmrClusterInstanceTypeSpecification();
-
emrClusterInstanceTypeSpecification.setInstanceType(awsInstanceTypeConfig.getInstanceType());
emrClusterInstanceTypeSpecification.setWeightedCapacity(awsInstanceTypeConfig.getWeightedCapacity());
emrClusterInstanceTypeSpecification.setBidPrice(awsInstanceTypeConfig.getBidPrice());
@@ -564,14 +563,11 @@ public class EmrHelper extends AwsHelper
parameters = new ArrayList<>();
for (Map.Entry<String, String> entry : properties.entrySet())
- {
- if (entry != null)
{
Parameter parameter = new Parameter(entry.getKey(), entry.getValue());
parameters.add(parameter);
}
}
- }
return parameters;
}
