[OpenMap Users] Java 1.6 requirement

From: Pete Flugstad <pete.flugstad_at_email.domain.hidden>
Date: Fri Jul 02 2010 - 15:21:36 EDT

Hello!

  com.bbn.openmap.LayerHandler.addLayer(Layer layer, int position) is calling
java.lang.String.isEmpty:

            String pre = layer.getPropertyPrefix();
            if (pre != null && !pre.isEmpty() ) {

However, isEmpty is a new method in Java 1.6.

It's trivial to remain Java 1.5 compliant:

            if (pre != null && pre.length() != 0 ) {

I haven't run into any other Java 1.6ism's yet, and I don't know if
you want to remain
Java 1.5 compliant - just pointing this out. The embedded JVM I'm
evaluating is
only Java 1.5 compliant, so it can't deal with the above.

Thanks,
Pete

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Jul 2 15:28:59 2010

This archive was generated by hypermail 2.1.8 : Fri Jul 02 2010 - 15:29:00 EDT