From d46e36a21f012c4acac4421a3ec5f680a5046e20 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Thu, 5 Jul 2012 00:17:29 +0600 Subject: [PATCH] Fix compatibility with Java 5 --- sonar-server/src/main/java/org/sonar/server/ui/ViewProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/java/org/sonar/server/ui/ViewProxy.java b/sonar-server/src/main/java/org/sonar/server/ui/ViewProxy.java index 0770add2d14..5945598ca93 100644 --- a/sonar-server/src/main/java/org/sonar/server/ui/ViewProxy.java +++ b/sonar-server/src/main/java/org/sonar/server/ui/ViewProxy.java @@ -210,7 +210,7 @@ public class ViewProxy implements Comparable { public boolean isController() { String id = view.getId(); - return id != null && !id.isEmpty() && id.charAt(0) == '/'; + return StringUtils.isNotEmpty(id) && id.charAt(0) == '/'; } public String getTitle() { -- 2.39.5