summaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2012-07-05 00:17:29 +0600
committerEvgeny Mandrikov <mandrikov@gmail.com>2012-07-05 00:17:29 +0600
commitd46e36a21f012c4acac4421a3ec5f680a5046e20 (patch)
tree2aaf8fbf92b3ad9cff3253d4c649452c29a6e58f /sonar-server
parentb547f32a3de0381e41b2da6cfab1545f7447b315 (diff)
downloadsonarqube-d46e36a21f012c4acac4421a3ec5f680a5046e20.tar.gz
sonarqube-d46e36a21f012c4acac4421a3ec5f680a5046e20.zip
Fix compatibility with Java 5
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/java/org/sonar/server/ui/ViewProxy.java2
1 files changed, 1 insertions, 1 deletions
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<V extends View> implements Comparable<ViewProxy> {
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() {