tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r448824 - /incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/Operation.java
Date Fri, 22 Sep 2006 06:15:37 GMT
Author: rfeng
Date: Thu Sep 21 23:15:37 2006
New Revision: 448824

URL: http://svn.apache.org/viewvc?view=rev&rev=448824
Log:
Fix a PMD violation which complains that Class.getName() is overriddable (it seems to be false
alarm since Class is final).

Modified:
    incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/Operation.java

Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/Operation.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/Operation.java?view=diff&rev=448824&r1=448823&r2=448824
==============================================================================
--- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/Operation.java
(original)
+++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/model/Operation.java
Thu Sep 21 23:15:37 2006
@@ -30,6 +30,8 @@
  * @version $Rev$ $Date$
  */
 public class Operation<T> {
+    private static final String NAME = Operation.class.getName();
+
     protected Map<String, Object> metaData;
 
     private final String name;
@@ -89,11 +91,11 @@
         this.dataBinding = dataBinding;
         // Register the operation with the types
         for (DataType<?> d : this.inputType.getLogical()) {
-            d.setMetadata(Operation.class.getName(), this);
+            d.setMetadata(NAME, this);
         }
-        this.outputType.setMetadata(Operation.class.getName(), this);
+        this.outputType.setMetadata(NAME, this);
         for (DataType<?> d : this.faultTypes) {
-            d.setMetadata(Operation.class.getName(), this);
+            d.setMetadata(NAME, this);
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message