Skip to content

Commit f8258df

Browse files
committed
style fix
1 parent 4ed7caa commit f8258df

File tree

1 file changed

+28
-28
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/code

1 file changed

+28
-28
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/code/PCode.java

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -496,64 +496,64 @@ public boolean hasSourceLocation() {
496496
@Override
497497
@TruffleBoundary
498498
public String toString() {
499-
String name = this.getName() == null ? "None" : this.getName();
500-
String filename = this.getFilename() == null ? "None" : this.getFilename();
501-
int firstLineNo = this.getFirstLineNo() == 0 ? -1 : this.getFirstLineNo();
502-
return String.format("<code object %s, file \"%s\", line %d>", name, filename, firstLineNo);
499+
String codeName = this.getName() == null ? "None" : this.getName();
500+
String codeFilename = this.getFilename() == null ? "None" : this.getFilename();
501+
int codeFirstLineNo = this.getFirstLineNo() == 0 ? -1 : this.getFirstLineNo();
502+
return String.format("<code object %s, file \"%s\", line %d>", codeName, codeFilename, codeFirstLineNo);
503503
}
504504

505505
public Object co_name() {
506-
String name = this.getName();
507-
if (name != null) {
508-
return name;
506+
String codeName = this.getName();
507+
if (codeName != null) {
508+
return codeName;
509509
}
510510
return PNone.NONE;
511511
}
512512

513513
public PBytes co_code(PythonObjectFactory factory) {
514-
byte[] codestring = this.getCodestring();
515-
if (codestring == null) {
516-
codestring = new byte[0];
514+
byte[] codeCodeString = this.getCodestring();
515+
if (codeCodeString == null) {
516+
codeCodeString = new byte[0];
517517
}
518-
return factory.createBytes(codestring);
518+
return factory.createBytes(codeCodeString);
519519
}
520520

521521
public PTuple co_consts(PythonObjectFactory factory) {
522-
Object[] constants = this.getConstants();
523-
if (constants == null) {
524-
constants = new Object[0];
522+
Object[] codeConstants = this.getConstants();
523+
if (codeConstants == null) {
524+
codeConstants = new Object[0];
525525
}
526-
return factory.createTuple(constants);
526+
return factory.createTuple(codeConstants);
527527
}
528528

529529
public PTuple co_names(PythonObjectFactory factory) {
530-
Object[] names = this.getNames();
531-
if (names == null) {
532-
names = new Object[0];
530+
Object[] codeNames = this.getNames();
531+
if (codeNames == null) {
532+
codeNames = new Object[0];
533533
}
534-
return factory.createTuple(names);
534+
return factory.createTuple(codeNames);
535535
}
536536

537537
public PythonAbstractObject co_varnames(PythonObjectFactory factory) {
538-
Object[] varNames = this.getVarnames();
539-
if (varNames != null) {
540-
return factory.createTuple(varNames);
538+
Object[] codeVarNames = this.getVarnames();
539+
if (codeVarNames != null) {
540+
return factory.createTuple(codeVarNames);
541541
}
542542
return PNone.NONE;
543543
}
544544

545545
public PythonAbstractObject co_freevars(PythonObjectFactory factory) {
546-
Object[] freeVars = this.getFreeVars();
547-
if (freeVars != null) {
548-
return factory.createTuple(freeVars);
546+
Object[] codeFreeVars = this.getFreeVars();
547+
if (codeFreeVars != null) {
548+
return factory.createTuple(codeFreeVars);
549549
}
550550
return PNone.NONE;
551551
}
552552

553553
public PythonAbstractObject co_cellvars(PythonObjectFactory factory) {
554-
Object[] cellVars = this.getCellVars();
555-
if (cellVars != null) {
556-
return factory.createTuple(cellVars);
554+
Object[] codeCellVars = this.getCellVars();
555+
if (codeCellVars != null) {
556+
return factory.createTuple(codeCellVars);
557557
}
558558
return PNone.NONE;
559559
}

0 commit comments

Comments
 (0)