Skip to main content
diff options
authorJohn Ross2013-10-11 18:55:07 +0000
committerJohn Ross2013-10-23 12:43:42 +0000
commit7554a9da2858a672fff996bd62e6d45223fab438 (patch)
tree3746e62ab6d53a61d1e114562f2dc123d54050c0 /bundles/org.eclipse.osgi/pom.xml
parent991b5bda78bf294034a20b859b421a76ff616758 (diff)
Bug 418663 - [osgi] Get rid of compile warnings in official build
Update jdt core prefs to org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=disabled. Remove @SuppressWarnings annotations. Parameterize Collections.empty*** methods rather than using Collections.EMPTY_*** fields. Fix synthetic accessor method warnings. Fix hiding field warnings. Fix non-externalized string literal warnings. Suppress wanrings in pom for external source. Update copyrights. Remove J2SE-1.5 as a BREE. Remove the associated workaround from the pom. This is no longer necessary now that the org.eclipse.equinox.weaving.hook system bundle fragment was moved up to JavaSE-1.6 as part of the same bug. Set org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled to prevent workspace warnings due to having to remove "unnecessary" @SupressWarnings annotations because of the "unused' warning suppression in the pom. Note that the "unused" warning suppression in the pom leaves a workspace warning in ClasspathEntry. The @SuppressWarnings annotation had to be removed but we do not wish to ignore warnings for unused private members.
Diffstat (limited to 'bundles/org.eclipse.osgi/pom.xml')
1 files changed, 6 insertions, 3 deletions
diff --git a/bundles/org.eclipse.osgi/pom.xml b/bundles/org.eclipse.osgi/pom.xml
index 4f05adfc7..4383930d9 100644
--- a/bundles/org.eclipse.osgi/pom.xml
+++ b/bundles/org.eclipse.osgi/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
- Copyright (c) 2012 Eclipse Foundation.
+ Copyright (c) 2012, 2013 Eclipse Foundation.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Distribution License v1.0
which accompanies this distribution, and is available at
@@ -26,9 +26,12 @@
- <artifactId>target-platform-configuration</artifactId>
+ <artifactId>tycho-compiler-plugin</artifactId>
+ <version>${tycho.version}</version>
- <executionEnvironment>JavaSE-1.6</executionEnvironment>
+ <compilerArgs>
+ <arg>-warn:-raw,unchecked,hiding,unused</arg>
+ </compilerArgs>

Back to the top