Community
Participate
Working Groups
org.eclipse.core.runtime causes many compile warnings in official build
I'm not sure I got every one, but I took a stab at this for some late Friday afternoon fun: http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=31d231e66c2153c781982346e03342ad94529dd6
(In reply to John Arthorne from comment #1) > I'm not sure I got every one, but I took a stab at this for some late Friday > afternoon fun: > > http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/ > ?id=31d231e66c2153c781982346e03342ad94529dd6 The amount of warnings did not go down (still 104). It looks like just tried to ignore them by tweaking the project settings. However, those are not read by the builder. If you really want to ignore the problems instead of fixing them, then this needs to be done in the build.properties for PDE Build and in the POM for Tycho.
(In reply to Dani Megert from comment #2) > (In reply to John Arthorne from comment #1) > > I'm not sure I got every one, but I took a stab at this for some late Friday > > afternoon fun: > > > > http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/ > > ?id=31d231e66c2153c781982346e03342ad94529dd6 > > The amount of warnings did not go down (still 104). Sorry John, other projects also have lots of more warnings again. I filed bug bug 418793 to track that. Looking at N20131005-1500 only 2 warnings appear.
(In reply to Dani Megert from comment #3) > Looking at N20131005-1500 only 2 warnings appear. Actually Dani would you mind taking a quick look at this last one. It says both unnecessary @SuppressWarnings("unchecked"), and a warning saying I have an unchecked cast! There must be something I am misunderstanding about how @SuppressWarnings is scoped. The code is here (lines 266-268): http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/tree/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/AuthorizationHandler.java
(In reply to John Arthorne from comment #4) > (In reply to Dani Megert from comment #3) > > Looking at N20131005-1500 only 2 warnings appear. > > Actually Dani would you mind taking a quick look at this last one. It says > both unnecessary @SuppressWarnings("unchecked"), and a warning saying I have > an unchecked cast! There must be something I am misunderstanding about how > @SuppressWarnings is scoped. The code is here (lines 266-268): It's scoped to the declaration. Fixed with http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=fef422582be3393016e5221f366138ae7ff5f38f
Verified in N20131007-2000.