Commit 390eed2
authored
Close InputStream when validating assay transform scripts during save (#7578)
#### Rationale
We read transform scripts during assay design save. We open but don't
close the file. This is impolite, and Windows automated tests have been
noticing.
https://teamcity.labkey.org/buildConfiguration/LabKey_263Release_Premium_CommunitySqlserver_DailyCSqlserver/3929893?buildTab=tests&status=failed&expandedTest=build%3A%28id%3A3929893%29%2Cid%3A2000000048
#### Related Pull Requests
- LabKey/testAutomation#2946
#### Changes
- try-with-resources is the polite way to handle InputStreams
<!-- list of standard tasks (remove this comment to enable)
#### Tasks 📍
- [ ] Manual Testing
- [ ] Needs Automation
- [ ] Verify Fix
-->1 parent c11d7dc commit 390eed2
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
1274 | 1275 | | |
1275 | 1276 | | |
1276 | 1277 | | |
1277 | | - | |
| 1278 | + | |
1278 | 1279 | | |
1279 | | - | |
| 1280 | + | |
1280 | 1281 | | |
1281 | 1282 | | |
1282 | 1283 | | |
| |||
0 commit comments