Source:
<code>public void testSupportedKeys() throws IOException { FileInputStream in = null; try { Properties properties = new Properties(); in = new FileInputStream(new File("resources/testbuild.properties")); <START> properties.load(in); <END> BuildPropertiesImpl buildProperties = new BuildPropertiesImpl(properties); assertEquals("1.3", buildProperties.getJavacSource()); assertEquals("1.1", buildProperties.getJavacTarget()); assertEquals("JavaSE-1.6", buildProperties.getJreCompilationProfile()); assertEquals(Arrays.asList("folder/", "file.txt"), buildProperties.getBinIncludes()); assertEquals(Arrays.asList("excluded_folder/", "excluded_file.txt"), buildProperties.getBinExcludes()); assertEquals(Arrays.asList("src_folder/", "src_file.txt"), buildProperties.getSourceIncludes()); assertEquals(Arrays.asList("excluded_src_folder/", "excluded_src_file.txt"), buildProperties.getSourceExcludes()); assertEquals(Collections.singletonList("platform_URL"), buildProperties.getJarsExtraClasspath()); assertEquals(Arrays.asList("foo.jar", "bar.jar"), buildProperties.getJarsCompileOrder()); assertEquals(Collections.singletonMap(".", Arrays.asList("extra.jar")), buildProperties.getJarToExtraClasspathMap()); assertEquals(Collections.singletonMap(".", "ISO-8859-1"), buildProperties.getJarToJavacDefaultEncodingMap()); assertEquals("20120101000000", buildProperties.getForceContextQualifier()); assertEquals(Collections.singletonMap(".", Arrays.asList("foo/", "bar/")), buildProperties.getJarToSourceFolderMap()); assertEquals(Collections.singletonMap(".", "bin/"), buildProperties.getJarToOutputFolderMap()); Map<String, String> rootEntries = buildProperties.getRootEntries(); assertEquals(2, rootEntries.size()); assertEquals("rootFolder/", rootEntries.get("root")); assertEquals("winRootFolder/", rootEntries.get("root.win32.win32.x86")); assertFalse(buildProperties.isRootFilesUseDefaultExcludes()); } finally { if (in != null) { in.close(); } } }</code><technical_language>move finally block</technical_language>

Target:
public void testSupportedKeys() throws IOException { FileInputStream in = null; Properties properties = new Properties(); try { in = new FileInputStream(new File("resources/testbuild.properties")); properties.load(in); } finally { if (in != null) { in.close(); } } BuildPropertiesImpl buildProperties = new BuildPropertiesImpl(properties); assertEquals("1.3", buildProperties.getJavacSource()); assertEquals("1.1", buildProperties.getJavacTarget()); assertEquals("JavaSE-1.6", buildProperties.getJreCompilationProfile()); assertEquals(Arrays.asList("folder/", "file.txt"), buildProperties.getBinIncludes()); assertEquals(Arrays.asList("excluded_folder/", "excluded_file.txt"), buildProperties.getBinExcludes()); assertEquals(Arrays.asList("src_folder/", "src_file.txt"), buildProperties.getSourceIncludes()); assertEquals(Arrays.asList("excluded_src_folder/", "excluded_src_file.txt"), buildProperties.getSourceExcludes()); assertEquals(Collections.singletonList("platform_URL"), buildProperties.getJarsExtraClasspath()); assertEquals(Arrays.asList("foo.jar", "bar.jar"), buildProperties.getJarsCompileOrder()); assertEquals(Collections.singletonMap(".", Arrays.asList("extra.jar")), buildProperties.getJarToExtraClasspathMap()); assertEquals(Collections.singletonMap(".", "ISO-8859-1"), buildProperties.getJarToJavacDefaultEncodingMap()); assertEquals("20120101000000", buildProperties.getForceContextQualifier()); assertEquals(Collections.singletonMap(".", Arrays.asList("foo/", "bar/")), buildProperties.getJarToSourceFolderMap()); assertEquals(Collections.singletonMap(".", "bin/"), buildProperties.getJarToOutputFolderMap()); Map<String, String> rootEntries = buildProperties.getRootEntries(); assertEquals(2, rootEntries.size()); assertEquals("rootFolder/", rootEntries.get("root")); assertEquals("winRootFolder/", rootEntries.get("root.win32.win32.x86")); assertFalse(buildProperties.isRootFilesUseDefaultExcludes()); }