tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r956562 - /tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
Date Mon, 21 Jun 2010 13:07:44 GMT
Author: antelder
Date: Mon Jun 21 13:07:44 2010
New Revision: 956562

URL: http://svn.apache.org/viewvc?rev=956562&view=rev
Log:
Fix up IDE warnings

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java?rev=956562&r1=956561&r2=956562&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
Mon Jun 21 13:07:44 2010
@@ -137,9 +137,7 @@ public class JMSBindingProcessor extends
     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
         this.configuredOperationProcessor = 
             new ConfiguredOperationProcessor(modelFactories);
         this.extensionProcessor = extensionProcessor;
-        this.modelFactories = modelFactories;
     }
     
     /**
@@ -382,7 +379,6 @@ public class JMSBindingProcessor extends
     }
 
     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
         }
     }
 
-    @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
      * 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
      * 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;



Mime
View raw message