From 1010a6556df9c940bad0582ee531c8f363ac009e Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 28 Oct 2014 14:42:45 +0300 Subject: [PATCH] cleanup --- .../src/com/intellij/ide/fileTemplates/impl/UrlUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/UrlUtil.java b/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/UrlUtil.java index 400620fc4644..7eb88034c6e3 100644 --- a/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/UrlUtil.java +++ b/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/UrlUtil.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2011 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,9 +36,9 @@ import java.util.zip.ZipFile; * Date: 3/25/11 */ public class UrlUtil { - private static final String JAR_SEPARATOR = "!/"; + private static final String JAR_SEPARATOR = URLUtil.JAR_SEPARATOR; private static final String URL_PATH_SEPARATOR = "/"; - private static final String FILE_PROTOCOL = "file"; + private static final String FILE_PROTOCOL = URLUtil.FILE_PROTOCOL; private static final String FILE_PROTOCOL_PREFIX = FILE_PROTOCOL + ":"; public static String loadText(URL url) throws IOException { @@ -56,7 +56,7 @@ public class UrlUtil { if ("jar".equalsIgnoreCase(protocol)) { return getChildPathsFromJar(root); } - if ("file".equalsIgnoreCase(protocol)){ + if (FILE_PROTOCOL.equalsIgnoreCase(protocol)){ return getChildPathsFromFile(root); } return Collections.emptyList();