cloudsim-plus/src/main/java/org/cloudbus/cloudsim/resources/DatacenterStorage.java
Found 'UR'-anomaly for variable 'fileName' (lines '90'-'95').
public double predictFileTransferTime(final List<String> requiredFiles) {
Found 'UR'-anomaly for variable 'storage' (lines '113'-'115').
private double timeToTransferFileFromStorage(final String fileName) {
Found 'UR'-anomaly for variable 'storage' (lines '106'-'121').
public int addFile(final File file) {
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/resources/HarddriveStorage.java
This class has too many methods, consider refactoring it.
public class HarddriveStorage implements FileStorage {
Avoid using Literals in Conditional Statements
if (result == 0.0) {
Avoid using Literals in Conditional Statements
if (seekTime <= 0.0) {
Found 'UR'-anomaly for variable 'currentFile' (lines '260'-'270').
public File getFile(final String fileName) {
Found 'DU'-anomaly for variable 'size' (lines '266'-'283').
int size = 0;
Found 'DD'-anomaly for variable 'result' (lines '343'-'363').
double result = 0.0;
Avoid variables with short names like i
final int i = fileNameList.indexOf(fileName);
Found 'DU'-anomaly for variable 'seekTime' (lines '404'-'418').
final double seekTime = getSeekTime(file.getSize());
cloudsim-plus/src/main/java/org/cloudsimplus/autoscaling/VerticalVmScaling.java
Avoid unused imports such as 'org.cloudbus.cloudsim.resources'
import org.cloudbus.cloudsim.resources.*;
cloudsim-plus/src/main/java/org/cloudsimplus/builders/tables/AbstractTable.java
Found 'UR'-anomaly for variable 'col' (lines '123'-'132').
private void printRow(final List<Object> row) {
System.out.print is used
columns.forEach(col -> System.out.print(col.generateSubtitleHeader()));
Found 'UR'-anomaly for variable 'column' (lines '183'-'185').
public final Table addColumnList(final String... columnTitles) {
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/power/models/PowerModelTest.java
JUnit tests should include assert() or fail()
public void testNullObject() {
Found 'UR'-anomaly for variable 'utilization' (lines '18'-'25').
public void testNullObject() {
To avoid mistakes add a comment at the beginning of the createHostWithOneVm method if you want a default access modifier
static Host createHostWithOneVm(){
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/utilizationmodels/UtilizationModelPlanetLabTest.java
This class has too many methods, consider refactoring it.
public class UtilizationModelPlanetLabTest {
JUnit tests should not contain more than 1 assert(s).
public void testGetUtilization() {
More
Previous Next