< prev index next >
src/com/sun/javatest/exec/ConfigurableTestFilter.java
Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg
@@ -78,11 +78,11 @@
* @param map The map containing previous filter settings.
* @param e The ExecTool that owns this instance of the filter.
* @throws IllegalStateException If the instance name is not present in the map or
* the exec model argument is null.
*/
- protected ConfigurableTestFilter(Map map, ExecModel e) {
+ protected ConfigurableTestFilter(Map<String, String> map, ExecModel e) {
if (e == null)
throw new IllegalArgumentException(i18n.getString("ctf.nullExec"));
execModel = e;
load(map);
@@ -132,12 +132,12 @@
* @param map The map of strings to load from.
* @return True if loading was successful and the filter is usable,
* false if the operation failed.
* @throws IllegalStateException If the instance name is not present in the map.
*/
- boolean load(Map map) {
- instanceName = (String)(map.get(INSTANCE_KEY));
+ boolean load(Map<String, String> map) {
+ instanceName = map.get(INSTANCE_KEY);
if (instanceName == null)
throw new IllegalStateException(i18n.getString("ctf.mapNoName"));
return true;
< prev index next >