Skip to content

Commit e7c8344

Browse files
committed
eliminate some cosmetic warnings
1 parent bc4eddd commit e7c8344

5 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/main/java/org/apache/maven/plugin/eclipse/MyEclipsePlugin.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ public class MyEclipsePlugin
7979
private static final String MYECLIPSE_J2EE_13_CLASSPATH_CONTAINER =
8080
"com.genuitec.eclipse.j2eedt.core.J2EE13_CONTAINER";
8181

82-
private static final String MYECLIPSE_DEFAULT_HIBERNATE_CFG_XML = "src/main/resources/applicationContext.xml";
83-
8482
/**
8583
* Spring configuration placeholder
8684
* <p/>

src/test/java/org/apache/maven/plugin/eclipse/InstallPluginsMojoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.net.URL;
2525
import java.util.Collections;
2626

27-
import junit.framework.Assert;
27+
import org.junit.Assert;
2828
import junit.framework.TestCase;
2929

3030
import org.apache.maven.artifact.Artifact;

src/test/java/org/apache/maven/plugin/eclipse/TempEclipseWorkspace.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
import java.io.DataOutputStream;
2424
import java.io.File;
2525
import java.io.FileInputStream;
26-
import java.io.FileNotFoundException;
2726
import java.io.FileOutputStream;
2827
import java.io.IOException;
29-
import java.net.MalformedURLException;
3028
import java.util.Properties;
3129

3230
import org.apache.commons.io.FileUtils;

src/test/java/org/apache/maven/plugin/eclipse/it/AbstractEclipsePluginIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ protected void executeMaven( File pom, Properties properties, List goals, boolea
490490

491491
try
492492
{
493-
buildLogUrl = buildLog.toURL().toExternalForm();
493+
buildLogUrl = buildLog.toURI().toURL().toExternalForm();
494494
}
495495
catch ( MalformedURLException e )
496496
{

src/test/java/org/apache/maven/plugin/eclipse/writers/workspace/EclipseCodeFormatterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void testLoadFormatter()
3030
File testStyleFile = new File( basedir, "src/test/resources/projects/workspace-02/code-styles.xml" );
3131

3232
EclipseCodeFormatterProfile formatter = new EclipseCodeFormatterProfile();
33-
formatter.init( testStyleFile.toURL(), null );
33+
formatter.init( testStyleFile.toURI().toURL(), null );
3434

3535
assertEquals( "format-1", formatter.getProfileName() );
3636

0 commit comments

Comments
 (0)