Re: Fixing unnecessary cast warnings

2008-01-31 Thread Roland Weber
sebb wrote: > Eclipse is showing a few "unnecessary cast" warnings for the projects > now using Java 1.5. > > Any objections to removing such casts? No, if they are unnecessary and trigger warnings, just go ahead and remove them. Oleg does the same when I leave unused imports somewhere :-) cheer

Fixing unnecessary cast warnings

2008-01-31 Thread sebb
Eclipse is showing a few "unnecessary cast" warnings for the projects now using Java 1.5. For example: return (String) this.params.get(name.toLowerCase()); at RFC2617Scheme.java:162 does not need the (String) cast because params is a Map. Also, clone() invocations such as: this.datepatterns =