Skip to content

Commit

Permalink
v0.5.4
Browse files Browse the repository at this point in the history
fix inspections
  • Loading branch information
thevpc committed Apr 21, 2019
1 parent cff2f95 commit 507eb5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions nuts-core/nb-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ That way multiple projects can share the same settings (useful for formatting ru
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<org-netbeans-modules-javascript2-requirejs.enabled>true</org-netbeans-modules-javascript2-requirejs.enabled>
<netbeans.hint.jdkPlatform>JDK_1.8</netbeans.hint.jdkPlatform>
</properties>
</project-shared-configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;
import java.util.logging.Level;
Expand Down Expand Up @@ -479,8 +480,11 @@ public PrintStream createPrintStream(OutputStream out, NutsTerminalMode mode) {
return createPrintStream(((NutsFormatFilteredPrintStream) out).getUnformattedInstance(), mode);
}
//return new NutsDefaultFormattedPrintStream(out);
HashMap<String,Object> m=new HashMap<>();
m.put("workspace", this);
m.put("out", out);
return (PrintStream) ws.extensions().createSupported(NutsFormattedPrintStream.class,
Map.of("workspace", this, "out", out),
m,
new Class[]{OutputStream.class}, new Object[]{out});
}
case FILTERED: {
Expand All @@ -491,8 +495,11 @@ public PrintStream createPrintStream(OutputStream out, NutsTerminalMode mode) {
return createPrintStream(((NutsFormattedPrintStream) out).getUnformattedInstance(), mode);
}
//return new NutsDefaultFormattedPrintStream(out);
HashMap<String,Object> m=new HashMap<>();
m.put("workspace", this);
m.put("out", out);
return (PrintStream) ws.extensions().createSupported(NutsFormatFilteredPrintStream.class,
Map.of("workspace", this, "out", out),
m,
new Class[]{OutputStream.class}, new Object[]{out});
}
case INHERITED: {
Expand Down

0 comments on commit 507eb5e

Please sign in to comment.