maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject svn commit: r1755538 - in /maven/plugins/trunk/maven-ear-plugin/src: main/java/org/apache/maven/plugin/ear/ test/java/org/apache/maven/plugin/ear/ test/java/org/apache/maven/plugin/ear/stub/
Date Mon, 08 Aug 2016 20:32:12 GMT
Author: rfscholte
Date: Mon Aug  8 20:32:12 2016
New Revision: 1755538

URL: http://svn.apache.org/viewvc?rev=1755538&view=rev
Log:
Fix IDE reported warnings

Modified:
    maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarExecutionContext.java
    maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
    maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/EnvEntryTest.java
    maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/stub/ArtifactTestStub.java

Modified: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarExecutionContext.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarExecutionContext.java?rev=1755538&r1=1755537&r2=1755538&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarExecutionContext.java
(original)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarExecutionContext.java
Mon Aug  8 20:32:12 2016
@@ -90,7 +90,6 @@ public class EarExecutionContext
         return artifactRepository;
     }
 
-    @SuppressWarnings( "unchecked" )
     private void initialize( MavenProject project, String mainArtifactId, String defaultLibBundleDir,
                              JbossConfiguration jbossConfiguration, String fileNameMappingName,
                              ArtifactTypeMappingService typeMappingService )

Modified: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java?rev=1755538&r1=1755537&r2=1755538&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
(original)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
Mon Aug  8 20:32:12 2016
@@ -69,7 +69,6 @@ public final class EarModuleFactory
      * @return an ear module for this artifact
      * @throws UnknownArtifactTypeException if the artifact is not handled
      */
-    @SuppressWarnings( "deprecation" )
     // CHECKSTYLE_OFF: LineLength
     public static EarModule newEarModule( Artifact artifact, JavaEEVersion javaEEVersion,
String defaultLibBundleDir,
                                           Boolean includeInApplicationXml, ArtifactTypeMappingService
typeMappingService )

Modified: maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/EnvEntryTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/EnvEntryTest.java?rev=1755538&r1=1755537&r2=1755538&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/EnvEntryTest.java
(original)
+++ maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/EnvEntryTest.java
Mon Aug  8 20:32:12 2016
@@ -21,8 +21,8 @@ package org.apache.maven.plugin.ear;
 
 import org.junit.Test;
 
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertNotNull;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
 
 /**
  * @author Stephane Nicoll

Modified: maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/stub/ArtifactTestStub.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/stub/ArtifactTestStub.java?rev=1755538&r1=1755537&r2=1755538&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/stub/ArtifactTestStub.java
(original)
+++ maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/stub/ArtifactTestStub.java
Mon Aug  8 20:32:12 2016
@@ -143,7 +143,7 @@ public class ArtifactTestStub
         throw new UnsupportedOperationException( "not implemented ; fake artifact stub" );
     }
 
-    public Collection getMetadataList()
+    public Collection<ArtifactMetadata> getMetadataList()
     {
         throw new UnsupportedOperationException( "not implemented ; fake artifact stub" );
     }
@@ -188,12 +188,12 @@ public class ArtifactTestStub
         return new ArtifactHandlerTestStub( "jar" );
     }
 
-    public List getDependencyTrail()
+    public List<String> getDependencyTrail()
     {
         throw new UnsupportedOperationException( "not implemented ; fake artifact stub" );
     }
 
-    public void setDependencyTrail( List list )
+    public void setDependencyTrail( List<String> list )
     {
         throw new UnsupportedOperationException( "not implemented ; fake artifact stub" );
     }
@@ -263,12 +263,12 @@ public class ArtifactTestStub
         throw new UnsupportedOperationException( "not implemented ; fake artifact stub" );
     }
 
-    public List getAvailableVersions()
+    public List<ArtifactVersion> getAvailableVersions()
     {
         throw new UnsupportedOperationException( "not implemented ; fake artifact stub" );
     }
 
-    public void setAvailableVersions( List list )
+    public void setAvailableVersions( List<ArtifactVersion> list )
     {
         throw new UnsupportedOperationException( "not implemented ; fake artifact stub" );
     }



Mime
View raw message