[OSM-dev] [RFC] Beautify scale bar

David Sheldon dave-osm at earth.li
Sat May 13 22:29:28 BST 2006


On Sat, May 13, 2006 at 10:45:20PM +0200, Jan-Benedict Glaw wrote:
>     [javac] Compiling 1 source file to /home/jbglaw/vax-linux/scm/cvs-repos/osm/svn.openstreetmap.
> org/java/build
>     [javac] Note: /home/jbglaw/vax-linux/scm/cvs-repos/osm/svn.openstreetmap.org/java/src/org/open
> streetmap/processing/OsmApplet.java uses unchecked or unsafe operations.
> 
> which comes from:
> 
>                 String meters = "" + StrictMath.round(factor[used_factor]
>                                      * StrictMath.pow(10.0, exponent)) + "m";
> 

That error was in the code before and isn't to do with the code you
introduced. What made you think it was that line, as far as I can
remember that error message doesn't specify a line number that caused it.

It is caused by making assumptions about the return types from the new
1.5 collection types.

David

-- 
 "Strange women lying in ponds distributing swords is no basis for a
system of government! Supreme executive power is derived by a mandate
      from the masses, not from some farcical aquatic ceremony!"




More information about the dev mailing list