Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-04-19 01:26:14 -0400
committerMatthew Piggott2011-04-19 01:27:13 -0400
commit9c4c9e6f0c3b7f1636ba2ca0975d8b2aea7ae613 (patch)
tree4bc9be734dcc0a0aaa3fd85e4c38648cfbf7277b /org.eclipse.m2e.editor
parent903e349338bfabcccb07e9916c3e16c8e6909427 (diff)
downloadm2e-core-9c4c9e6f0c3b7f1636ba2ca0975d8b2aea7ae613.tar.gz
m2e-core-9c4c9e6f0c3b7f1636ba2ca0975d8b2aea7ae613.tar.xz
m2e-core-9c4c9e6f0c3b7f1636ba2ca0975d8b2aea7ae613.zip
Code cleanup
Diffstat (limited to 'org.eclipse.m2e.editor')
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java4
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java2
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java3
3 files changed, 4 insertions, 5 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
index df6cfd90..623cc95a 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/composites/DependenciesComposite.java
@@ -82,6 +82,7 @@ import org.w3c.dom.Element;
/**
* @author Eugene Kuleshov
*/
+@SuppressWarnings("synthetic-access")
public class DependenciesComposite extends Composite {
private static final Logger log = LoggerFactory.getLogger(DependenciesComposite.class);
@@ -540,7 +541,6 @@ public class DependenciesComposite extends Composite {
}
- @SuppressWarnings("unchecked")
public void loadData() {
resetDependencies();
resetManagedDependencies();
@@ -971,6 +971,7 @@ public class DependenciesComposite extends Composite {
public Dependency() {}
+ @SuppressWarnings("rawtypes")
public Object getAdapter(Class adapter) {
if (ArtifactKey.class.equals(adapter)) {
return new ArtifactKey(groupId, artifactId, version, classifier);
@@ -978,5 +979,4 @@ public class DependenciesComposite extends Composite {
return null;
}
}
-
}
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
index 580ab800..28658929 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java
@@ -1004,7 +1004,7 @@ public class MavenPomEditor extends FormEditor implements IResourceChangeListene
}
@Override
- @SuppressWarnings("unchecked")
+ @SuppressWarnings("rawtypes")
public Object getAdapter(Class adapter) {
Object result = super.getAdapter(adapter);
if(result != null && Display.getCurrent() == null) {
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java
index 2520c46a..0626dda1 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java
@@ -30,7 +30,6 @@ import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.ToolBarManager;
-import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.viewers.ICellModifier;
import org.eclipse.jface.viewers.IOpenListener;
import org.eclipse.jface.viewers.OpenEvent;
@@ -101,6 +100,7 @@ import static org.eclipse.m2e.core.ui.internal.editing.PomEdits.*;
/**
* @author Eugene Kuleshov
*/
+@SuppressWarnings("synthetic-access")
public class OverviewPage extends MavenPomEditorPage {
static final Logger LOG = LoggerFactory.getLogger(OverviewPage.class);
@@ -624,7 +624,6 @@ public class OverviewPage extends MavenPomEditorPage {
modulesEditor.setRemoveButtonListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
- IDocument document = getPomEditor().getDocument();
try {
performEditOperation( new Operation() {
public void process(Document document) {

Back to the top