e316471d88
Along the way, I also converted many "for (;;)" loops into modern "for (:)" loops. I didn't systematically look for all opportunities to do this, though. I merely made this change where I was already converting raw Iterator uses into modern Iterator<...> uses. Better use of generics also allowed many casts to become statically redundant. I have removed all such redundant casts. Only three raw-types warnings remain after this batch of fixes. All three involve raw uses of CallGraphBuilder. I've tried to fix these too, but it quickly snowballs into a cascade of changes that may or may not eventually reach a statically-type-save fixed point. I may give these last few problem areas another go in the future. For now, though, the hundreds of other fixes seem worth keeping even if there are a few stragglers. This commit may change some public APIs, but only by making weaker type signatures stronger by replacing raw types with generic types. For example, we may change something like "Set" into "Set<String>", but we're not adding new arguments, changing any underlying (post-generics-erasure) types, etc. |
||
---|---|---|
.. | ||
A.java | ||
B.java | ||
JustThrow.java | ||
Slice1.java | ||
Slice2.java | ||
Slice3.java | ||
Slice4.java | ||
Slice5.java | ||
Slice6.java | ||
Slice7.java | ||
Slice8.java | ||
Slice9.java | ||
TestArrays.java | ||
TestCD1.java | ||
TestCD2.java | ||
TestCD3.java | ||
TestCD4.java | ||
TestCD5.java | ||
TestCD6.java | ||
TestFields.java | ||
TestGlobal.java | ||
TestId.java | ||
TestInetAddr.java | ||
TestMessageFormat.java | ||
TestMultiTarget.java | ||
TestPrimGetterSetter.java | ||
TestPrimGetterSetter2.java | ||
TestRecursion.java | ||
TestThin1.java | ||
TestThrowCatch.java |