• 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

Revision2621 (tree)
Time2023-12-13 23:46:33
Authort_nakayama1971

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/apache/commons-chain2/src/main/java/org/apache/commons/chain2/impl/ChainBase.java (revision 2620)
+++ trunk/apache/commons-chain2/src/main/java/org/apache/commons/chain2/impl/ChainBase.java (revision 2621)
@@ -76,7 +76,9 @@
7676 * is <code>null</code>
7777 */
7878 public ChainBase(final Command<K, V, C> command) {
79- addCommand(command);
79+ if (command != null) {
80+ this.commands.add(command);
81+ }
8082 }
8183
8284 /**
@@ -92,7 +94,9 @@
9294 public ChainBase(final Command<K, V, C>... cmds) {
9395 if (cmds != null) {
9496 for (final Command<K, V, C> command : cmds) {
95- addCommand(command);
97+ if (command != null) {
98+ this.commands.add(command);
99+ }
96100 }
97101 }
98102 }
@@ -110,7 +114,9 @@
110114 public ChainBase(final Collection<Command<K, V, C>> cmds) {
111115 if (cmds != null) {
112116 for (final Command<K, V, C> command : cmds) {
113- addCommand(command);
117+ if (command != null) {
118+ this.commands.add(command);
119+ }
114120 }
115121 }
116122 }