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: 9f2ee605fb0b
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 56643d93c66f
Choose a head ref
  • 4 commits
  • 8 files changed
  • 1 contributor

Commits on May 8, 2017

  1. Copy the full SHA
    12e3e64 View commit details
  2. Copy the full SHA
    d78494d View commit details
  3. Copy the full SHA
    2848ddd View commit details
  4. Copy the full SHA
    56643d9 View commit details
2 changes: 0 additions & 2 deletions core/src/main/java/org/jruby/RubyModule.java
Original file line number Diff line number Diff line change
@@ -3759,8 +3759,6 @@ public IRubyObject getConstantFromNoConstMissing(String name) {
}

public IRubyObject getConstantFromNoConstMissing(String name, boolean includePrivate) {
assert name == name.intern() : name + " is not interned";

final Ruby runtime = getRuntime();
final RubyClass objectClass = runtime.getObject();

2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ast/FalseNode.java
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@
* Represents a false literal.
*/
public class FalseNode extends Node implements INameNode, SideEffectFree {
ByteList FALSE = new ByteList(new byte[] {'f', 'a', 'l', 's', 'e'});
static final ByteList FALSE = new ByteList(new byte[] {'f', 'a', 'l', 's', 'e'});

public FalseNode(ISourcePosition position) {
super(position, false);
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ast/NilNode.java
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@
* represents 'nil'
*/
public class NilNode extends Node implements INameNode, SideEffectFree {
ByteList NIL = new ByteList(new byte[] {'n', 'i', 'l'});
static final ByteList NIL = new ByteList(new byte[] {'n', 'i', 'l'});

public NilNode(ISourcePosition position) {
super(position, false);
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ast/SelfNode.java
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@
* Represents 'self' keyword
*/
public class SelfNode extends Node implements INameNode, SideEffectFree {
ByteList SELF = new ByteList(new byte[] {'s', 'e', 'l', 'f'});
static final ByteList SELF = new ByteList(new byte[] {'s', 'e', 'l', 'f'});

public SelfNode(ISourcePosition position) {
super(position, false);
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ast/TrueNode.java
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@
* Represents 'true'.
*/
public class TrueNode extends Node implements INameNode, SideEffectFree {
ByteList TRUE = new ByteList(new byte[] {'t', 'r', 'u', 'e'});
static final ByteList TRUE = new ByteList(new byte[] {'t', 'r', 'u', 'e'});

public TrueNode(ISourcePosition position) {
super(position, false);
6 changes: 5 additions & 1 deletion core/src/main/java/org/jruby/parser/ParserSupport.java
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@
import java.util.ArrayList;
import java.util.List;
import org.jcodings.Encoding;
import org.jcodings.specific.USASCIIEncoding;
import org.jruby.RubyBignum;
import org.jruby.RubyRegexp;
import org.jruby.ast.*;
@@ -1659,8 +1660,11 @@ public Node new_defined(ISourcePosition position, Node something) {
return new DefinedNode(position, something);
}

public static final ByteList INTERNAL_ID = new ByteList(new byte[] {}, USASCIIEncoding.INSTANCE);

@Deprecated
public String internalId() {
return "";
return INTERNAL_ID.toString();
}

}
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/parser/RubyParser.java
Original file line number Diff line number Diff line change
@@ -5363,7 +5363,7 @@ public Object yyparse (RubyLexer yyLex) throws java.io.IOException {
};
states[586] = new ParserState() {
@Override public Object execute(ParserSupport support, RubyLexer lexer, Object yyVal, Object[] yyVals, int yyTop) {
yyVal = support.internalId();
yyVal = support.INTERNAL_ID;
return yyVal;
}
};
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/parser/RubyParser.y
Original file line number Diff line number Diff line change
@@ -2518,7 +2518,7 @@ f_kwrest : kwrest_mark tIDENTIFIER {
$$ = $2;
}
| kwrest_mark {
$$ = support.internalId();
$$ = support.INTERNAL_ID;
}

f_opt : f_arg_asgn '=' arg_value {