[jboss-cvs] JBoss Profiler SVN: r526 - branches/JBossProfiler2/src/main/org/jboss/profiler/agent.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Apr 26 13:50:54 EDT 2009
Author: jesper.pedersen
Date: 2009-04-26 13:50:53 -0400 (Sun, 26 Apr 2009)
New Revision: 526
Modified:
branches/JBossProfiler2/src/main/org/jboss/profiler/agent/Agent.java
Log:
[JBPROFILER-73] Integrate checkstyle
Modified: branches/JBossProfiler2/src/main/org/jboss/profiler/agent/Agent.java
===================================================================
--- branches/JBossProfiler2/src/main/org/jboss/profiler/agent/Agent.java 2009-04-26 17:07:18 UTC (rev 525)
+++ branches/JBossProfiler2/src/main/org/jboss/profiler/agent/Agent.java 2009-04-26 17:50:53 UTC (rev 526)
@@ -228,13 +228,8 @@
private static boolean parseBoolean(String p, boolean def) {
if (p != null) {
p = p.trim();
- if ("ON".equalsIgnoreCase(p) ||
- "YES".equalsIgnoreCase(p) ||
- "TRUE".equalsIgnoreCase(p)) {
- return true;
- } else {
- return false;
- }
+
+ return ("ON".equalsIgnoreCase(p) || "YES".equalsIgnoreCase(p) || "TRUE".equalsIgnoreCase(p));
}
return def;
@@ -376,11 +371,8 @@
private static boolean parseStore(String p, boolean def) {
if (p != null) {
p = p.trim();
- if ("FILE".equalsIgnoreCase(p)) {
- return false;
- } else {
- return true;
- }
+
+ return !("FILE".equalsIgnoreCase(p));
}
return def;
More information about the jboss-cvs-commits
mailing list