Commit 88775ec
committed
ScriptService: getScript now creates the script
To avoid a proliferation of case logic and repeated creation code,
ScriptService needs public API that retrieves a cached script and
creates it if it doesn't exist.
It is not necessary to have both a lookup-only and a lookup-and-create
method: if an API consumer wants to check the existence of a ScriptInfo,
the containing Collection is accessible.
Thus getScript now simply creates the ScriptInfo if it does not already
exist.1 parent 5715522 commit 88775ec
File tree
2 files changed
+4
-4
lines changed- src/main/java/org/scijava/script
2 files changed
+4
-4
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
| 120 | + | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
0 commit comments