commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r732444 - in /commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml: SCInstance.java env/xpath/FunctionResolver.java
Date Wed, 07 Jan 2009 19:43:20 GMT
Author: sebb
Date: Wed Jan  7 11:43:20 2009
New Revision: 732444

URL: http://svn.apache.org/viewvc?rev=732444&view=rev
Log:
Autoboxing of these booleans is OK

Modified:
    commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/SCInstance.java
    commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/env/xpath/FunctionResolver.java

Modified: commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/SCInstance.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/SCInstance.java?rev=732444&r1=732443&r2=732444&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/SCInstance.java
(original)
+++ commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/SCInstance.java
Wed Jan  7 11:43:20 2009
@@ -372,6 +372,7 @@
      *
      * @since 0.7
      */
+    @SuppressWarnings("boxing")
     public boolean isDone(final TransitionTarget transitionTarget) {
         if (completions.containsKey(transitionTarget)) {
             return completions.get(transitionTarget);
@@ -388,6 +389,7 @@
      *
      * @since 0.7
      */
+    @SuppressWarnings("boxing")
     public void setDone(final TransitionTarget transitionTarget,
             final boolean done) {
         completions.put(transitionTarget, done);

Modified: commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/env/xpath/FunctionResolver.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/env/xpath/FunctionResolver.java?rev=732444&r1=732443&r2=732444&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/env/xpath/FunctionResolver.java
(original)
+++ commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/env/xpath/FunctionResolver.java
Wed Jan  7 11:43:20 2009
@@ -111,7 +111,7 @@
          * @see Builtin#isMember(Set, String)
          */
         @Override
-        @SuppressWarnings("unchecked")
+        @SuppressWarnings({ "unchecked", "boxing" })
         public Object evaluate(final List args) throws XPathFunctionException {
             Set<TransitionTarget> allStates =
                 (Set<TransitionTarget>) xctx.get(STATES);



Mime
View raw message