Author: simonetripodi
Date: Thu Sep 1 20:27:20 2011
New Revision: 1164260
URL: http://svn.apache.org/viewvc?rev=1164260&view=rev
Log:
fixed checkstyle violation: Variable 'frozen' must be private and have accessor methods.
Modified:
commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/impl/ChainBase.java
Modified: commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/impl/ChainBase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/impl/ChainBase.java?rev=1164260&r1=1164259&r2=1164260&view=diff
==============================================================================
--- commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/impl/ChainBase.java
(original)
+++ commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/impl/ChainBase.java
Thu Sep 1 20:27:20 2011
@@ -123,7 +123,7 @@ public class ChainBase<C extends Context
* <p>Flag indicating whether the configuration of our commands list
* has been frozen by a call to the <code>execute()</code> method.</p>
*/
- protected boolean frozen = false;
+ private boolean frozen = false;
// ---------------------------------------------------------- Chain Methods
@@ -226,6 +226,18 @@ public class ChainBase<C extends Context
}
+ /**
+ * Returns true, if the configuration of our commands list
+ * has been frozen by a call to the <code>execute()</code> method,
+ * false otherwise.
+ *
+ * @return true, if the configuration of our commands list
+ * has been frozen by a call to the <code>execute()</code> method,
+ * false otherwise.
+ */
+ public boolean isFrozen() {
+ return frozen;
+ }
// -------------------------------------------------------- Package Methods
|