pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/jruby/jruby/commit/08a9ee7c97fef22ae92451186dfad8a798a65705

er-b48faa60c69660fa.css" /> Fix class variable naming checks to be 2.2-compatible · jruby/jruby@08a9ee7 · GitHub
Skip to content

Commit 08a9ee7

Browse files
committed
Fix class variable naming checks to be 2.2-compatible
1 parent 33693f9 commit 08a9ee7

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

core/src/main/java/org/jruby/util/IdUtil.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,12 @@ public static boolean isValidInstanceVariableName(String id) {
109109
return false;
110110
}
111111

112-
// Pickaxe says @@ must be followed by a name character, but MRI
113-
// does not require this.
114112
public static boolean isValidClassVariableName(String id) {
115113
int len;
116-
if ((len = id.length()) > 1 && '@' == id.charAt(0) && '@' == id.charAt(1)) {
117-
if (len > 2) {
118-
if (isInitialCharacter(id.charAt(2))) {
119-
return isNameString(id, 3, len);
120-
}
121-
return false;
114+
if ((len = id.length()) > 2 && '@' == id.charAt(0) && '@' == id.charAt(1)) {
115+
if (isInitialCharacter(id.charAt(2))) {
116+
return isNameString(id, 3, len);
122117
}
123-
return true;
124118
}
125119
return false;
126120
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy