diff options
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/styles/StyleMapper.java')
-rw-r--r-- | reportbuilder/java/com/sun/star/report/pentaho/styles/StyleMapper.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/styles/StyleMapper.java b/reportbuilder/java/com/sun/star/report/pentaho/styles/StyleMapper.java index 2728fe0c4bf3..3edca3ca52ae 100644 --- a/reportbuilder/java/com/sun/star/report/pentaho/styles/StyleMapper.java +++ b/reportbuilder/java/com/sun/star/report/pentaho/styles/StyleMapper.java @@ -42,11 +42,11 @@ import org.pentaho.reporting.libraries.resourceloader.ResourceManager; public class StyleMapper { - private final Map backend; + private final Map<StyleMapperKey,StyleMappingRule> backend; public StyleMapper() { - this.backend = new HashMap(); + this.backend = new HashMap<StyleMapperKey,StyleMappingRule>(); } public void addMapping(final StyleMappingRule rule) @@ -60,7 +60,7 @@ public class StyleMapper final String attributeName) { final StyleMapperKey key = new StyleMapperKey(elementNamespace, elementTagName, attributeNamespace, attributeName); - final StyleMappingRule rule = (StyleMappingRule) backend.get(key); + final StyleMappingRule rule = backend.get(key); return rule != null && rule.isListOfValues(); } @@ -70,7 +70,7 @@ public class StyleMapper final String attributeName) { final StyleMapperKey key = new StyleMapperKey(elementNamespace, elementTagName, attributeNamespace, attributeName); - final StyleMappingRule rule = (StyleMappingRule) backend.get(key); + final StyleMappingRule rule = backend.get(key); if (rule == null) { return null; |