• R/O
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision271 (tree)
Time2016-05-03 21:38:22
Authort_nakayama1971

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/apache/commons-chain2/src/main/java/org/apache/commons/chain2/impl/ContextMap.java (revision 270)
+++ trunk/apache/commons-chain2/src/main/java/org/apache/commons/chain2/impl/ContextMap.java (revision 271)
@@ -14,6 +14,7 @@
1414 * See the License for the specific language governing permissions and
1515 * limitations under the License.
1616 */
17+
1718 package org.apache.commons.chain2.impl;
1819
1920 import org.apache.commons.chain2.Context;
@@ -24,21 +25,20 @@
2425 /**
2526 * Convenience base class for {@link Context} implementations.
2627 *
28+ * @version $Id$
2729 * @param <K> the type of keys maintained by the context associated with this context
2830 * @param <V> the type of mapped values
2931 *
3032 * @since 2.0
31- * @version $Id$
3233 */
3334 public class ContextMap<K, V> extends ConcurrentHashMap<K, V> implements Context<K, V> {
3435
35- /**
36- *
37- */
36+ /** serialVersionUID */
3837 private static final long serialVersionUID = 20120724L;
3938
4039 /**
41- * Creates a new, empty Context with a default initial capacity, load factor, and concurrencyLevel.
40+ * Creates a new, empty Context with a default initial capacity,
41+ * load factor, and concurrencyLevel.
4242 */
4343 public ContextMap() {
4444 super();
@@ -45,22 +45,25 @@
4545 }
4646
4747 /**
48- * Creates a new, empty Context with the specified initial capacity, and with default load factor and concurrencyLevel
48+ * Creates a new, empty Context with the specified initial capacity,
49+ * and with default load factor and concurrencyLevel
4950 *
5051 * @param initialCapacity the initial capacity.
5152 */
52- public ContextMap(int initialCapacity) {
53+ public ContextMap(final int initialCapacity) {
5354 super(initialCapacity);
5455 }
5556
5657 /**
57- * Creates a new, empty Context with the specified initial capacity, load factor, and concurrency level.
58+ * Creates a new, empty Context with the specified initial capacity,
59+ * load factor, and concurrency level.
5860 *
5961 * @param initialCapacity the initial capacity.
6062 * @param loadFactor the load factor threshold, used to control resizing.
6163 * @param concurrencyLevel the estimated number of concurrently updating threads.
6264 */
63- public ContextMap(int initialCapacity, float loadFactor, int concurrencyLevel) {
65+ public ContextMap(final int initialCapacity,
66+ final float loadFactor, final int concurrencyLevel) {
6467 super(initialCapacity, loadFactor, concurrencyLevel);
6568 }
6669
@@ -69,7 +72,7 @@
6972 *
7073 * @param t Map whose key-value pairs are added
7174 */
72- public ContextMap(Map<? extends K, ? extends V> t) {
75+ public ContextMap(final Map<? extends K, ? extends V> t) {
7376 super(t);
7477 }
7578 /**
@@ -76,13 +79,12 @@
7679 * {@inheritDoc}
7780 */
7881 @Override
79- public <T extends V> T retrieve(K key) {
82+ public <T extends V> T retrieve(final K key) {
8083 V valueObject = get(key);
8184 if (valueObject == null) {
8285 return null;
8386 }
8487 // will throw ClassCastException if type are not assignable anyway
85- @SuppressWarnings("unchecked")
8688 T value = (T) valueObject;
8789 return value;
8890 }