Skip to content

Commit

Permalink
JBIDE-13885 : cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <fbricon@gmail.com>
  • Loading branch information
fbricon committed Jun 20, 2013
1 parent 3d0d107 commit 80e1bd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private List<ExpressionBasedDiscoveryConnector> getConnectors() throws SecurityE
public void testLocalDiscovery() throws Exception {
String url = discoveryViewer.getDirectoryUrl();
try {
discoveryViewer.setDirectoryUrl("file:/"+new File("test-resources", "directory.xml").getAbsolutePath().toString().replace('\\', '/'));
discoveryViewer.setDirectoryUrl("file:/"+new File("test-resources", "directory.xml").getAbsolutePath().replace('\\', '/'));
discoveryViewer.updateDiscovery();
assertNotNull("Couldn't find connector from local discovery", getConnector("test.local.discovery"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ public File getStorageFolder() throws CoreException {
}

private File createTempFolder() throws IOException {
File temporaryStorage = null;
temporaryStorage = File.createTempFile(RemoteExternalBundleDiscoveryStrategy.class.getSimpleName(), ".tmp");//$NON-NLS-1$
File temporaryStorage = File.createTempFile(RemoteExternalBundleDiscoveryStrategy.class.getSimpleName(), ".tmp");//$NON-NLS-1$
if (!temporaryStorage.delete() ||
!temporaryStorage.mkdirs()) {
throw new IOException("Can't create temporary directory"); //$NON-NLS-1$
Expand Down

0 comments on commit 80e1bd8

Please sign in to comment.