tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1360850 - in /tomcat/tc7.0.x/trunk: ./ java/org/apache/catalina/ant/jmx/Arg.java java/org/apache/catalina/ant/jmx/JMXAccessorCreateTask.java java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java
Date Thu, 12 Jul 2012 18:35:57 GMT
Author: markt
Date: Thu Jul 12 18:35:57 2012
New Revision: 1360850

URL: http://svn.apache.org/viewvc?rev=1360850&view=rev
Log:
Deprecate so they can be made private in 8.0.x

Modified:
    tomcat/tc7.0.x/trunk/   (props changed)
    tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/Arg.java
    tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorCreateTask.java
    tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java

Propchange: tomcat/tc7.0.x/trunk/
------------------------------------------------------------------------------
  Merged /tomcat/trunk:r1360838

Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/Arg.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/Arg.java?rev=1360850&r1=1360849&r2=1360850&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/Arg.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/Arg.java Thu Jul 12 18:35:57 2012
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.catalina.ant.jmx;
 
 /**
@@ -24,7 +23,15 @@ package org.apache.catalina.ant.jmx;
  * @since 5.5.10
  */
 public class Arg {
+    /**
+     * @deprecated  Use getter/setter
+     */
+    @Deprecated
     String type;
+    /**
+     * @deprecated  Use getter/setter
+     */
+    @Deprecated
     String value;
 
     public void setType( String type) {
@@ -33,6 +40,10 @@ public class Arg {
     public void setValue( String value ) {
         this.value=value;
     }
+    /**
+     * @deprecated  Use {@link #setValue(String)}
+     */
+    @Deprecated
     public void addText( String text ) {
         this.value=text;
     }

Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorCreateTask.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorCreateTask.java?rev=1360850&r1=1360849&r2=1360850&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorCreateTask.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorCreateTask.java Thu Jul
12 18:35:57 2012
@@ -173,8 +173,8 @@ public class JMXAccessorCreateTask exten
            sigA = new String[args.size()];
            for( int i=0; i<args.size(); i++ ) {
                Arg arg=args.get(i);
-               if( arg.type==null) {
-                   arg.type="java.lang.String";
+               if (arg.getType() == null) {
+                   arg.setType("java.lang.String");
                    sigA[i]=arg.getType();
                    argsA[i]=arg.getValue();
                } else {

Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java?rev=1360850&r1=1360849&r2=1360850&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorInvokeTask.java Thu Jul
12 18:35:57 2012
@@ -188,8 +188,8 @@ public class JMXAccessorInvokeTask exten
             String sigA[]=new String[args.size()];
             for( int i=0; i<args.size(); i++ ) {
                 Arg arg=args.get(i);
-                if( arg.type==null) {
-                    arg.type="java.lang.String";
+                if (arg.getType() == null) {
+                    arg.setType("java.lang.String");
                     sigA[i]=arg.getType();
                     argsA[i]=arg.getValue();
                 } else {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message