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

    https://github.com/apache/jena/pull/463#discussion_r210921706
  
    --- Diff: 
jena-fuseki2/jena-fuseki-embedded/src/main/java/org/apache/jena/fuseki/embedded/FusekiServer.java
 ---
    @@ -455,30 +527,36 @@ private static void 
setMimeTypes(ServletContextHandler context) {
     
             private void servlets(ServletContextHandler context) {
                 // Fuseki dataset services filter
    +            // This goes as the filter at the end of any filter chaining.
                 FusekiFilter ff = new FusekiFilter();
    -            FilterHolder h = new FilterHolder(ff);
    -            context.addFilter(h, "/*", null);
    -
    -            other.forEach(p->addServlet(context, p.getLeft(), 
p.getRight()));
    +            addFilter(context, "/*", ff);
                 
                 if ( withStats )
                     addServlet(context, "/$/stats", new ActionStats());
                 if ( withPing )
                     addServlet(context, "/$/ping", new ActionPing());
                 
    +            servlets.forEach(p->addServlet(context, p.getLeft(), 
p.getRight()));
    +            filters.forEach (p-> addFilter(context, p.getLeft(), 
p.getRight()));
    +
                 if ( staticContentDir != null ) {
                     DefaultServlet staticServlet = new DefaultServlet();
                     ServletHolder staticContent = new 
ServletHolder(staticServlet);
                     staticContent.setInitParameter("resourceBase", 
staticContentDir);
                     context.addServlet(staticContent, "/");
                 }
             }
    -
    +        
    --- End diff --
    
    These leading space arise in Eclipse. After a closing "}" the cursor is 
padded to the same depth as the "}". Is there a way to change that without 
using a save action?


---

Reply via email to