Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 29ca7db92b06
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2d909947683d
Choose a head ref
  • 2 commits
  • 5 files changed
  • 1 contributor

Commits on Aug 20, 2015

  1. Copy the full SHA
    691cee9 View commit details
  2. Copy the full SHA
    2d90994 View commit details
Original file line number Diff line number Diff line change
@@ -20,8 +20,6 @@
import org.jruby.truffle.nodes.RubyNode;
import org.jruby.truffle.nodes.dispatch.CallDispatchHeadNode;
import org.jruby.truffle.nodes.dispatch.DispatchHeadNodeFactory;
import org.jruby.truffle.nodes.objects.AllocateObjectNode;
import org.jruby.truffle.nodes.objects.AllocateObjectNodeGen;
import org.jruby.truffle.runtime.RubyContext;
import org.jruby.truffle.runtime.control.RaiseException;
import org.jruby.truffle.runtime.core.CoreLibrary;
@@ -33,12 +31,10 @@ public abstract class RangeLiteralNode extends RubyNode {
private final boolean excludeEnd;

@Child private CallDispatchHeadNode cmpNode;
@Child private AllocateObjectNode allocateNode;

public RangeLiteralNode(RubyContext context, SourceSection sourceSection, boolean excludeEnd) {
super(context, sourceSection);
this.excludeEnd = excludeEnd;
allocateNode = AllocateObjectNodeGen.create(context, sourceSection, null, null);
}

@Specialization
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
import javax.lang.model.element.ElementKind;
import javax.lang.model.element.TypeElement;
import javax.tools.JavaFileObject;
import java.io.FileNotFoundException;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
@@ -51,7 +51,7 @@ private void processLayout(TypeElement layoutElement) {

JavaFileObject output = processingEnv.getFiler().createSourceFile(layout.getInterfaceFullName() + "Impl", layoutElement);

try (PrintStream stream = new PrintStream(output.openOutputStream())) {
try (PrintStream stream = new PrintStream(output.openOutputStream(), false, "US-ASCII")) {
generator.generate(stream);
}
} catch (IOException e) {
@@ -60,9 +60,9 @@ private void processLayout(TypeElement layoutElement) {
}

public static void log(String file, String message) {
try (PrintStream stream = new PrintStream(new FileOutputStream(file, true))) {
try (PrintStream stream = new PrintStream(new FileOutputStream(file, true), false, "US-ASCII")) {
stream.println(message);
} catch (FileNotFoundException e) {
} catch (IOException e) {
e.printStackTrace();
}
}
Loading