FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
jruby/test/DefaultPackageClass.java at master · coderhs/jruby · GitHub
coderhs
/
jruby
Public
forked from
jruby/jruby
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
jruby
/
test
/
DefaultPackageClass.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (12 loc) · 488 Bytes
Breadcrumbs
jruby
/
test
/
DefaultPackageClass.java
Copy path
File metadata and controls
13 lines (12 loc) · 488 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
public
class
DefaultPackageClass
{
public
String
foo
() {
return
"foo"
; }
public
static
int
compareTo
(
org
.
jruby
.
RubyObject
o1
,
org
.
jruby
.
RubyObject
o2
) {
if
(
o1
==
null
) {
// JI always converts nil to null
o1
= (
org
.
jruby
.
RubyNil
)
o2
.
getRuntime
().
getNil
();
}
if
(
o2
==
null
) {
// JI always converts nil to null
o2
= (
org
.
jruby
.
RubyNil
)
o1
.
getRuntime
().
getNil
();
}
return
((
Comparable
)
o1
).
compareTo
(
o2
);
}
}
Back
|
FazBrowse Home
|
New Git URL