Skip to content

Commit

Permalink
Fixed smaller errors and several warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRoeder committed Oct 14, 2023
1 parent a4732c9 commit bbc976c
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 34 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/hobbit/core/Commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private static ImmutableMap<Byte, String> generateMap() {
* @return the name of the command or its id if the name is not known
*/
public static String toString(byte command) {
Byte commandObject = new Byte(command);
Byte commandObject = Byte.valueOf(command);
if (Commands.ID_TO_COMMAND_NAME_MAP.containsKey(commandObject)) {
return ID_TO_COMMAND_NAME_MAP.get(commandObject);
} else {
Expand Down
11 changes: 0 additions & 11 deletions src/main/java/org/hobbit/core/data/BenchmarkMetaData.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,22 @@
*/
package org.hobbit.core.data;

import java.util.Map;
import java.util.Set;

public class BenchmarkMetaData extends ImageMetaData {

public Set<String> definedApis;
protected Map<String, Object> systemHardwareConstraints = null;

public BenchmarkMetaData() {
}

public BenchmarkMetaData(BenchmarkMetaData other) {
super(other);
this.definedApis = other.definedApis;
this.systemHardwareConstraints = other.systemHardwareConstraints;
}

@Override
public Object clone() {
return new BenchmarkMetaData(this);
}

public Map<String, Object> getSystemHardwareConstraints() {
return systemHardwareConstraints;
}

public void setSystemHardwareConstraints(Map<String, Object> systemHardwareConstraints) {
this.systemHardwareConstraints = systemHardwareConstraints;
}
}
2 changes: 2 additions & 0 deletions src/main/java/org/hobbit/vocab/HOBBIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ protected static final Property property(String local) {
public static final Property involvesSystemInstance = property("involvesSystemInstance");
public static final Property isPartOf = property("isPartOf");
public static final Property isTaskOf = property("isTaskOf");
public static final Property maxHardware = property("maxHardware");
public static final Property minHardware = property("minHardware");
public static final Property measuresKPI = property("measuresKPI");
public static final Property organizer = property("organizer");
public static final Property publicationDate = property("publicationDate");
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/hobbit/vocab/XHV.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package org.hobbit.vocab;

import org.apache.jena.rdf.model.Property;
import org.apache.jena.rdf.model.Resource;
import org.apache.jena.rdf.model.ResourceFactory;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,32 @@
*/
package org.hobbit.core.components;

import org.apache.commons.configuration2.Configuration;
import org.apache.commons.configuration2.PropertiesConfiguration;
import org.hobbit.core.components.dummy.DummyComponentExecutor;
import java.util.Random;

import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.MessageProperties;
import org.hobbit.core.rabbit.RabbitMQUtils;
import org.hobbit.utils.config.HobbitConfiguration;
import static org.junit.Assert.assertEquals;

import java.io.IOException;
import org.hobbit.core.Commands;
import org.hobbit.core.components.dummy.AbstractDummyPlatformController;
import org.hobbit.core.data.StartCommandData;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.stream.Stream;

import org.hobbit.core.components.dummy.DummyCommandReceivingComponent;
import org.apache.commons.configuration2.Configuration;
import org.apache.commons.configuration2.PropertiesConfiguration;
import org.hobbit.core.Commands;
import org.hobbit.core.Constants;
import org.hobbit.core.TestConstants;
import org.hobbit.core.components.dummy.AbstractDummyPlatformController;
import org.hobbit.core.components.dummy.DummyCommandReceivingComponent;
import org.hobbit.core.components.dummy.DummyComponentExecutor;
import org.hobbit.core.data.StartCommandData;
import org.hobbit.core.rabbit.RabbitMQUtils;
import org.hobbit.utils.config.HobbitConfiguration;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Stopwatch;
import static org.junit.Assert.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.rabbitmq.client.AMQP;


public class ContainerCreationNoCorrelationTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import org.hobbit.utils.config.HobbitConfiguration;
import org.hobbit.vocab.HobbitExperiments;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/org/hobbit/utils/docker/DockerHelperTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
*/
package org.hobbit.utils.docker;

import org.hobbit.utils.docker.DockerHelper;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
Expand Down
Empty file modified start_test_environment.sh
100755 → 100644
Empty file.

0 comments on commit bbc976c

Please sign in to comment.