]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid string casing problems (#11970)
authorLeif Åstrand <leif@vaadin.com>
Wed, 12 Jun 2013 08:50:05 +0000 (11:50 +0300)
committerLeif Åstrand <leif@vaadin.com>
Wed, 12 Jun 2013 08:50:05 +0000 (11:50 +0300)
Change-Id: Id5c1f496bcd754e1c7e16e0df0d451d9a0bf054e

server/src/com/vaadin/server/DefaultDeploymentConfiguration.java

index 0a8096e84ccb84f1f59b033d00c3c480ca0cd101..993d60133b708b22ca389988f92bb4479bd87f38 100644 (file)
@@ -88,7 +88,7 @@ public class DefaultDeploymentConfiguration implements DeploymentConfiguration {
     private void checkLegacyPropertyToString() {
         // Verify that the default value has not changed without also
         // updating logic here
-        assert DEFAULT_LEGACY_PROPERTY_TO_STRING.toString().equals("warning");
+        assert DEFAULT_LEGACY_PROPERTY_TO_STRING == LegacyProperyToStringMode.WARNING;
 
         String param = getApplicationOrSystemProperty(
                 Constants.SERVLET_PARAMETER_LEGACY_PROPERTY_TOSTRING, "warning");