[java-identity-provider] 01/03: Tidy test

Rod Widdowson rdw at steadingsoftware.com
Sun Nov 9 14:10:14 UTC 2025


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
https://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=552eb0afd8235817117a8a7e763bac3c83fbf596

commit 552eb0afd8235817117a8a7e763bac3c83fbf596
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sun Nov 9 13:44:32 2025 +0000

    Tidy test
---
 .../idp/admin/impl/InstallableComponentPropertyCacheTest.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/idp-admin-impl/src/test/java/net/shibboleth/idp/admin/impl/InstallableComponentPropertyCacheTest.java b/idp-admin-impl/src/test/java/net/shibboleth/idp/admin/impl/InstallableComponentPropertyCacheTest.java
index 8e813a7cd..1e02cd707 100644
--- a/idp-admin-impl/src/test/java/net/shibboleth/idp/admin/impl/InstallableComponentPropertyCacheTest.java
+++ b/idp-admin-impl/src/test/java/net/shibboleth/idp/admin/impl/InstallableComponentPropertyCacheTest.java
@@ -58,9 +58,9 @@ public class InstallableComponentPropertyCacheTest {
     private void writeFile(final String value) throws IOException {
         final Properties p = new Properties();
         p.put(KEY, value);
-        FileOutputStream f =new FileOutputStream(outputFile.toFile());
-        p.store(f, "Comment");
-        f.close();
+        try(final FileOutputStream f = new FileOutputStream(outputFile.toFile())) {
+            p.store(f, "Comment");
+        }
     }
 
     @Test public void testNone() throws IOException, ComponentInitializationException {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list