Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2016-10-06 14:59:18 -0400
committerMarvin Mueller2016-10-31 09:08:59 -0400
commitc3e45430100a463048b9a882484d0d3e0df05f77 (patch)
tree9d7eb3f9adc032c306839ee8c347f09c5cd58507
parent4d5f7313b68cf7b677ace86e3b31122bdf40d5b9 (diff)
downloadorg.eclipse.jubula.core-c3e45430100a463048b9a882484d0d3e0df05f77.tar.gz
org.eclipse.jubula.core-c3e45430100a463048b9a882484d0d3e0df05f77.tar.xz
org.eclipse.jubula.core-c3e45430100a463048b9a882484d0d3e0df05f77.zip
Minor refactoring: use of generics
-rw-r--r--org.eclipse.jubula.client.archive/src/org/eclipse/jubula/client/archive/JsonExporter.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.jubula.client.archive/src/org/eclipse/jubula/client/archive/JsonExporter.java b/org.eclipse.jubula.client.archive/src/org/eclipse/jubula/client/archive/JsonExporter.java
index 89fc48ee0..8dfac351f 100644
--- a/org.eclipse.jubula.client.archive/src/org/eclipse/jubula/client/archive/JsonExporter.java
+++ b/org.eclipse.jubula.client.archive/src/org/eclipse/jubula/client/archive/JsonExporter.java
@@ -28,8 +28,8 @@ import org.eclipse.jubula.client.archive.dto.AutDTO;
import org.eclipse.jubula.client.archive.dto.CapDTO;
import org.eclipse.jubula.client.archive.dto.CategoryDTO;
import org.eclipse.jubula.client.archive.dto.CheckConfigurationDTO;
-import org.eclipse.jubula.client.archive.dto.ComponentNamesPairDTO;
import org.eclipse.jubula.client.archive.dto.ComponentNameDTO;
+import org.eclipse.jubula.client.archive.dto.ComponentNamesPairDTO;
import org.eclipse.jubula.client.archive.dto.DataRowDTO;
import org.eclipse.jubula.client.archive.dto.DefaultEventHandlerDTO;
import org.eclipse.jubula.client.archive.dto.EventTestCaseDTO;
@@ -104,7 +104,6 @@ import org.eclipse.jubula.tools.internal.constants.StringConstants;
import org.eclipse.jubula.tools.internal.exception.ProjectDeletedException;
import org.eclipse.jubula.tools.internal.messagehandling.MessageIDs;
import org.eclipse.jubula.tools.internal.objects.IMonitoringValue;
-import org.eclipse.jubula.tools.internal.objects.MonitoringValue;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -917,12 +916,13 @@ public class JsonExporter {
}
Map<String, IMonitoringValue>
tmpMap = poSummary.getMonitoringValues();
- Iterator it = tmpMap.entrySet().iterator();
+ Iterator<Map.Entry<String, IMonitoringValue>> it =
+ tmpMap.entrySet().iterator();
while (it.hasNext()) {
- Map.Entry pairs = (Map.Entry) it.next();
- MonitoringValue tmp = (MonitoringValue)pairs.getValue();
+ Map.Entry<String, IMonitoringValue> pairs = it.next();
+ IMonitoringValue tmp = pairs.getValue();
MonitoringValuesDTO monValDTO = new MonitoringValuesDTO();
- monValDTO.setKey((String)pairs.getKey());
+ monValDTO.setKey(pairs.getKey());
monValDTO.setCategory(tmp.getCategory());
monValDTO.setSignificant(tmp.isSignificant());
monValDTO.setType(tmp.getType());

Back to the top