Misc clean-up
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 27 Feb 2011 14:29:07 +0000 (14:29 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 27 Feb 2011 14:29:07 +0000 (14:29 +0000)
 - Suppress Eclipse warnings
 - Remove unused code
 - Correct Javadoc

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1075061 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/ant/jmx/JMXAccessorTask.java

index b44d2f1..451b8a8 100644 (file)
@@ -420,6 +420,7 @@ public class JMXAccessorTask extends BaseRedirectorHelperTask {
      * @throws MalformedURLException
      * @throws IOException
      */
+    @SuppressWarnings("null")
     public static MBeanServerConnection accessJMXConnection(Project project,
             String url, String host, String port, String username,
             String password, String refId) throws MalformedURLException,
@@ -680,22 +681,9 @@ public class JMXAccessorTask extends BaseRedirectorHelperTask {
     }
 
     /**
-     * get all properties, when project is there got all project Properties
-     * @return properties
-     */
-    public Map getProperties() {
-        Project currentProject = getProject();
-        if (currentProject != null) {
-            return currentProject.getProperties();
-        } else {
-            return properties;
-        }        
-    }
-    
-    /**
-     * get all Properties
-     * @param property
-     * @return The property
+     * Get Property
+     * @param property name
+     * @return The property value
      */
     public String getProperty(String property) {
         Project currentProject = getProject();