summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-06-21 13:07:44 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-06-21 13:07:44 +0000
commit1b39cb5478dc178ef8f0bc6d70ead9bffc2d7934 (patch)
tree43149f45e40b9c5465ed3fdbd2c841b3fd6fac49 /sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache
parent20f2eba6f4622b605173ed163bba508fd232c132 (diff)
Fix up IDE warnings
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@956562 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache')
-rw-r--r--sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
index 63d85b362a..933ef333f7 100644
--- a/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
+++ b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
@@ -137,9 +137,7 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St
private PolicySubjectProcessor policyProcessor;
private ConfiguredOperationProcessor configuredOperationProcessor;
protected StAXArtifactProcessor<Object> extensionProcessor;
-
- private FactoryExtensionPoint modelFactories; // DOB
public JMSBindingProcessor(FactoryExtensionPoint modelFactories, StAXArtifactProcessor<Object> extensionProcessor) {
this.policyFactory = modelFactories.getFactory(PolicyFactory.class);
this.policyProcessor = new PolicySubjectProcessor(policyFactory);
@@ -147,7 +145,6 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St
this.configuredOperationProcessor =
new ConfiguredOperationProcessor(modelFactories);
this.extensionProcessor = extensionProcessor;
- this.modelFactories = modelFactories;
}
/**
@@ -382,7 +379,6 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St
}
public void resolve(JMSBinding model, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException {
- Monitor monitor = context.getMonitor();
if (model.getRequestConnectionName() != null) {
model.setRequestConnectionBinding(getConnectionBinding(model, "requestConnection", model.getRequestConnectionName(), resolver, context));
}
@@ -394,7 +390,6 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St
}
}
- @SuppressWarnings("unchecked")
private JMSBinding getConnectionBinding(JMSBinding model, String attrName, QName bindingName, ModelResolver resolver, ProcessorContext context) {
JMSBinding binding = new JMSBinding();
binding.setTargetNamespace(bindingName.getNamespaceURI());
@@ -1054,6 +1049,7 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St
* If the value is of type box (e.g.Integer, Long) or BindingProperty, the output will be
* <property name="key" type="int">42</property>
*/
+ @SuppressWarnings("unchecked")
private void writeProperties(Map<String, Object> properties, XMLStreamWriter writer) throws XMLStreamException {
if (( properties == null ) || ( properties.size() == 0 )) {
return;
@@ -1201,6 +1197,7 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St
* If the value is of type box (e.g.Integer, Long) or BindingProperty, the output will be
* <property name="key" type="int">42</property>
*/
+ @SuppressWarnings("unchecked")
private void writeBindingProperties(Map<String, BindingProperty> properties, XMLStreamWriter writer) throws XMLStreamException {
if (( properties == null ) || ( properties.size() == 0 )) {
return;