cloudsim-plus/src/main/java/org/cloudbus/cloudsim/allocationpolicies/migration/VmAllocationPolicyMigrationAbstract.java
Avoid variables with short names like h
.filter(h -> !excludedHosts.contains(h))
Avoid variables with short names like vm
.filter(vm -> !vm.isInMigration())
Found 'UR'-anomaly for variable 'host' (lines '586'-'589').
private void saveAllocation() {
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/brokers/DatacenterBrokerNull.java
Avoid variables with short names like o
@Override public int compareTo(SimEntity o) {
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/cloudlets/CloudletDatacenterExecution.java
To avoid mistakes add a comment at the beginning of the getDatacenter method if you want a default access modifier
Datacenter getDatacenter() {
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/cloudlets/CloudletNull.java
This class has too many methods, consider refactoring it.
final class CloudletNull implements Cloudlet {
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/distributions/PoissonDistr.java
Avoid variables with short names like i
.map(i -> poisson.getK())
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/hosts/HostNull.java
Avoid variables with short names like vm
@Override public void deallocatePesForVm(Vm vm) {/**/}
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/network/IcmpPacket.java
Found 'DU'-anomaly for variable 'tab' (lines '175'-'194').
final String tab = " "; // 4 spaces
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/network/switches/AbstractSwitch.java
Avoid variables with short names like ev
protected void processPacketUp(final SimEvent ev) {
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/network/switches/SwitchNull.java
Avoid variables with short names like s
@Override public List<HostPacket> getUplinkSwitchPacketList(Switch s) {
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerNull.java
This class has too many methods, consider refactoring it.
final class CloudletSchedulerNull implements CloudletScheduler {
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/cloudlet/network/PacketSchedulerSimple.java
Avoid variables with short names like vm
private Vm vm;
cloudsim-plus/src/main/java/org/cloudbus/cloudsim/vms/VmUtilizationHistory.java
Avoid variables with short names like vm
public VmUtilizationHistory(final Vm vm) {
cloudsim-plus/src/main/java/org/cloudsimplus/listeners/VmDatacenterEventInfo.java
Avoid variables with short names like vm
static VmDatacenterEventInfo of(final EventListener<? extends EventInfo> listener, final Vm vm, final Datacenter datacenter) {
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/datacenters/DatacenterMocker.java
Avoid variables with short names like dc
private final Datacenter dc;
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/utilizationmodels/UtilizationModelDynamicTest.java
This class has too many methods, consider refactoring it.
public class UtilizationModelDynamicTest {
Method names should not contain underscores
public void testGetUtilization_defaultConstructor() {
Avoid variables with short names like i
final List<Integer> times = IntStream.rangeClosed(initSimulationTime, NUM_TIMES_TEST_USAGE).mapToObj(i -> i).collect(toList());
JUnit tests should include assert() or fail()
public void testGetUtilization_twoParamConstructorAndMaxUtilization() {
More
Previous Next