Skip to content
Browse files

LPS-25393 Source formatting

  • Loading branch information...
1 parent 0712b5b commit 9ed3e67988c615e9a2b36a56b39cf5723f11d031 @sergiogonzalez sergiogonzalez committed with brianchandotcom Mar 7, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 portal-service/src/com/liferay/portal/kernel/servlet/JasperVersionDetector.java
View
12 portal-service/src/com/liferay/portal/kernel/servlet/JasperVersionDetector.java
@@ -19,6 +19,7 @@
import com.liferay.portal.kernel.util.CharPool;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.StringPool;
+import com.liferay.portal.kernel.util.Validator;
import java.io.File;
@@ -106,15 +107,14 @@ private JasperVersionDetector() {
}
private boolean _isValidJasperVersion(String jasperVersion) {
- if ((jasperVersion == null) || (jasperVersion.length() == 0)) {
- return false;
- }
+ if (Validator.isNull(jasperVersion) ||
+ !Validator.isDigit(jasperVersion.charAt(0))) {
- if (!Character.isDigit(jasperVersion.charAt(0))) {
return false;
}
-
- return true;
+ else {
+ return true;
+ }
}
private static Log _log = LogFactoryUtil.getLog(

0 comments on commit 9ed3e67

Please sign in to comment.
Something went wrong with that request. Please try again.