[ 
https://issues.apache.org/jira/browse/JENA-938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14538699#comment-14538699
 ] 

ASF GitHub Bot commented on JENA-938:
-------------------------------------

Github user afs commented on a diff in the pull request:

    https://github.com/apache/jena/pull/63#discussion_r30086187
  
    --- Diff: jena-core/src/main/java/jena/rdfcompare.java ---
    @@ -108,11 +105,6 @@ protected static void usage() {
         
         protected static void read(Model model, String in, String lang) 
           throws java.io.FileNotFoundException {
    -        try {
    -            URL url = new URL(in);
    -            model.read(in, lang);
    -        } catch (java.net.MalformedURLException e) {
    -            model.read(new FileInputStream(in), "", lang);
    -        }
    +        model.read(in, lang);
    --- End diff --
    
    An historical note: 
    
    That is a way to handle URLs and plain file names.  It only works as plain 
`model.read(in, lang);` if RIOT is around otherwise there is no HTTP processing 
of `model.read(String, .....`


> Clean up dead code
> ------------------
>
>                 Key: JENA-938
>                 URL: https://issues.apache.org/jira/browse/JENA-938
>             Project: Apache Jena
>          Issue Type: Task
>          Components: Jena
>    Affects Versions: Jena 3.0.0
>            Reporter: A. Soroka
>            Priority: Minor
>              Labels: cleanup, jena
>
> This is an umbrella task to which several PRs will be attached, each 
> containing "clean up" for some modules in Jena. Each PR will contain only 
> non-controversial emendations, such as the removal of unused imports or 
> unthrown exceptions. Specifically disallowed are the removal of actual logic 
> or methods. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to