You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ja...@apache.org on 2015/06/29 09:00:26 UTC

[05/50] [abbrv] git commit: updated refs/heads/dhcpoffload to 45721ae

Resolve unsafe cast warnings reported by lint checker Add some debug config to compiler plugin

Signed-off-by: Daan Hoogland <da...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/540b163c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/540b163c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/540b163c

Branch: refs/heads/dhcpoffload
Commit: 540b163cfc41bc3838cedfe01c4ae34e82e780f7
Parents: 53e42fb
Author: Rafael da Fonseca <rs...@gmail.com>
Authored: Sun Jun 21 14:03:53 2015 +0200
Committer: Daan Hoogland <da...@gmail.com>
Committed: Mon Jun 22 13:01:18 2015 +0200

----------------------------------------------------------------------
 plugins/hypervisors/ovm3/pom.xml                     | 15 +++++++++++++++
 .../resources/helpers/Ovm3ConfigurationTest.java     | 10 +++++-----
 2 files changed, 20 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/540b163c/plugins/hypervisors/ovm3/pom.xml
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/ovm3/pom.xml b/plugins/hypervisors/ovm3/pom.xml
index 546e7e7..24ef6a4 100644
--- a/plugins/hypervisors/ovm3/pom.xml
+++ b/plugins/hypervisors/ovm3/pom.xml
@@ -49,6 +49,21 @@
         <directory>${basedir}/src/test/resources</directory>
       </testResource>
     </testResources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>3.3</version>
+        <configuration>
+        <useIncrementalCompilation>true</useIncrementalCompilation>
+        <forceJavacCompilerUse>true</forceJavacCompilerUse>
+        <compilerArgs>
+            <arg>-verbose</arg>
+            <arg>-Xlint:all,-options,-path</arg>
+          </compilerArgs>
+        </configuration>
+      </plugin>
+    </plugins>
   </build>
   <profiles>
     <profile>

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/540b163c/plugins/hypervisors/ovm3/src/test/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3ConfigurationTest.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/ovm3/src/test/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3ConfigurationTest.java b/plugins/hypervisors/ovm3/src/test/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3ConfigurationTest.java
index 5faff8f..5cbb2b7 100644
--- a/plugins/hypervisors/ovm3/src/test/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3ConfigurationTest.java
+++ b/plugins/hypervisors/ovm3/src/test/java/com/cloud/hypervisor/ovm3/resources/helpers/Ovm3ConfigurationTest.java
@@ -29,7 +29,7 @@ import com.cloud.hypervisor.ovm3.objects.XmlTestResultTest;
 public class Ovm3ConfigurationTest {
     XmlTestResultTest results = new XmlTestResultTest();
     private Ovm3Configuration ovm3config;
-    private static Map<String, Object> params;
+    private static HashMap<String, Object> params;
     static {
         params = new HashMap<String, Object>();
         params.put("agentusername", "oracle");
@@ -55,7 +55,7 @@ public class Ovm3ConfigurationTest {
         params.put("max.template.iso.size", "50");
         params.put("host", "ovm-1");
         params.put("com.cloud.network.Networks.RouterPrivateIpStrategy",
-                "DcGlobal");
+            "DcGlobal");
         params.put("agentport", "8899");
         params.put("Host.OS.Kernel.Version", "2.6.39-300.22.2.el5uek");
         params.put("migratewait", "3600");
@@ -83,13 +83,13 @@ public class Ovm3ConfigurationTest {
 
     @Test(expected = ConfigurationException.class)
     public void testFailedParams() throws ConfigurationException {
-        Map<String, Object> par = new HashMap(params);
+        HashMap<String, Object> par = new HashMap<String,Object>(params);
         par.put("pod", null);
         ovm3config = new Ovm3Configuration(par);
     }
     @Test
     public void testValidatePool() throws ConfigurationException {
-        Map<String, Object> par = new HashMap(params);
+        HashMap<String, Object> par = new HashMap<String,Object>(params);
         par.put("cluster", "1");
         par.put("ovm3vip", "this is not an IP!");
         ovm3config = new Ovm3Configuration(par);
@@ -99,7 +99,7 @@ public class Ovm3ConfigurationTest {
     }
     @Test
     public void testAgentPort() throws ConfigurationException {
-        Map<String, Object> par = new HashMap(params);
+        HashMap<String, Object> par = new HashMap<String,Object>(params);
         String altPort="6333";
         par.put("agentport", altPort);
         ovm3config = new Ovm3Configuration(par);