cloudsim-plus/src/main/java/org/cloudbus/cloudsim/brokers/DatacenterBrokerAbstract.java
Avoid variables with short names like c
cloudlets.forEach(c -> c.setVm(vm));
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/hosts/Host.java
Avoid variables with short names like vm
void removeMigratingInVm(Vm vm);
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerAbstract.java
Avoid variables with short names like um
final UtilizationModel um,
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/vm/VmScheduler.java
Avoid variables with short names like vm
boolean allocatePesForVm(Vm vm, List<Double> requestedMips);
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/vm/VmSchedulerAbstract.java
Avoid variables with short names like vm
public List<Double> getRequestedMips(final Vm vm) {
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/vm/VmSchedulerTimeSharedOverSubscription.java
Avoid variables with short names like vm
protected boolean isSuitableForVmInternal(final Vm vm, final List<Double> requestedMips, final boolean showLog){
Found 'UR'-anomaly for variable 'entry' (lines '98'-'106').
private void redistributeMipsDueToOverSubscription() {
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/util/MathUtil.java
Found 'DD'-anomaly for variable 'weights2' (lines '291'-'295').
final double[] weights2 = new double[n];
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/util/WorkloadFileReader.java
Consider using varargs for methods or constructors which take an array the last parameter.
private Cloudlet createCloudletFromTraceLine(final String[] array) {
cloudsim-plus/src/main/java/org/cloudsimplus/heuristics/CloudletToVmMappingSolution.java
Found 'DU'-anomaly for variable 'i' (lines '348'-'357').
for(int i = 0; selected.size() < 2 && it.hasNext(); ){
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/hosts/HostSimpleTest.java
Avoid instantiating new objects inside loops
final List<Double> history = new ArrayList<>(i);
JUnit tests should not contain more than 1 assert(s).
public void testReallocateMigratingInVms_allVmsAllocatedToTheHost() {
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerSpaceSharedTest.java
The String literal "See the todo inside the tested method" appears 4 times in this file; the first occurrence is on line 339
@Test @Ignore("See the todo inside the tested method")
Avoid variables with short names like ce
final CloudletExecution ce = new CloudletExecution(Cloudlet.NULL);
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerTimeSharedTest.java
Method names should not contain underscores
public void testCloudletResume_CloudletNotInPausedList() {
Method names should not contain underscores
public void testCloudletResume_CloudletInPausedList() {
JUnit tests should not contain more than 1 assert(s).
public void testGetCloudletExecList_EmptyAfterFinishedCloudletsForTwoSchedulerPes() {
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/schedulers/vm/VmSchedulerTimeSharedTest.java
Avoid variables with short names like i
LongStream.range(0, pesNumber).forEach(i -> peList.add(new PeSimple(mips, new PeProvisionerSimple())));
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/util/MathUtilTest.java
JUnit tests should not contain more than 1 assert(s).
public void testSum() {
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/vms/VmSimpleTest.java
Method names should not contain underscores
public void testRemoveOnHostDeallocationListener_Null() {
More
Previous Next