Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/url/URLConstruction.aj')
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/url/URLConstruction.aj25
1 files changed, 0 insertions, 25 deletions
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/url/URLConstruction.aj b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/url/URLConstruction.aj
deleted file mode 100644
index 2d765ff..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/url/URLConstruction.aj
+++ /dev/null
@@ -1,25 +0,0 @@
-package org.eclipse.jet.internal.core.url;
-
-import java.net.URI;
-import java.net.URL;
-import java.net.URLStreamHandler;
-
-public aspect URLConstruction {
- pointcut newNonEncodingURL() : call(URL.new(String,String,int,String))
- || call(URL.new(String,String,int,String,URLStreamHandler))
- || call(URL.new(String,String,String));
-
- pointcut newEncodingURL() : call(URL.new(String))
- || call(URL.new(URL,String))
- || call(URL.new(URL,String,URLStreamHandler));
-
- pointcut uriToURL() : call(URL URI.toURL());
-
- pointcut inURLUtilities() : within(org.eclipse.jet.internal.core.url.URLUtility);
-
- declare error : newNonEncodingURL() && !inURLUtilities() : "Encoding of URL is suspect. Use or enhance URLUtility instead.";
-
- declare error: uriToURL() && !inURLUtilities() : "Conversion to URL is suspect. Use URLUtility.toURL(URI) instead.";
-
- declare error: newEncodingURL() && !inURLUtilities() : "Who is using this?";
-}

Back to the top