Skip to content

Commit a3c17b9

Browse files
committed
style fixes
1 parent 0bd807d commit a3c17b9

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/PythonBuiltinClassType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,14 +551,14 @@ static long asJavaLongWithState(PythonBuiltinClassType type, ThreadState state,
551551
}
552552

553553
@ExportMessage
554-
public Object lookupAttributeInternal(ThreadState state, String name, boolean strict,
554+
public Object lookupAttributeInternal(ThreadState state, String attribName, boolean strict,
555555
@Cached ConditionProfile gotState,
556556
@Cached.Exclusive @Cached PythonAbstractObject.LookupAttributeNode lookup) {
557557
VirtualFrame frame = null;
558558
if (gotState.profile(state != null)) {
559559
frame = PArguments.frameForCall(state);
560560
}
561-
return lookup.execute(frame, this, name, strict);
561+
return lookup.execute(frame, this, attribName, strict);
562562
}
563563

564564
@ExportMessage

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/CodecsModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ enum Errors {
645645
ERR_UNKNOWN,
646646
}
647647

648-
private Errors getErrors(String err) {
648+
private static Errors getErrors(String err) {
649649
if (err.equals(STRICT)) {
650650
return Errors.ERR_STRICT;
651651
} else if (err.equals(REPLACE)) {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/map/MapBuiltins.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ boolean doit(VirtualFrame frame, PMap self, Object x,
183183
@GenerateNodeFactory
184184
public abstract static class ReduceNode extends PythonBuiltinNode {
185185
@Specialization
186-
PTuple doit(PMap self, @SuppressWarnings("unused") Object ignored,
187-
@CachedLibrary(limit = "getCallSiteInlineCacheMaxDepth()") PythonObjectLibrary lib) {
186+
PTuple doit(PMap self, @SuppressWarnings("unused") Object ignored) {
188187
Object[] iterators = self.getIterators();
189188
Object[] args = new Object[iterators.length + 1];
190189
args[0] = self.getFunction();

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/method/AbstractMethodBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private Object getQualName(VirtualFrame frame, Object self, Object func, TypeNod
306306
}
307307
}
308308

309-
private String getName(VirtualFrame frame, Object func, CastToJavaStringNode toJavaStringNode, PythonObjectLibrary pol) {
309+
private static String getName(VirtualFrame frame, Object func, CastToJavaStringNode toJavaStringNode, PythonObjectLibrary pol) {
310310
return toJavaStringNode.execute(pol.lookupAttribute(func, frame, __NAME__));
311311
}
312312
}
@@ -356,7 +356,7 @@ Object doSelfIsObjet(VirtualFrame frame, PBuiltinMethod method, @SuppressWarning
356356
return factory().createTuple(new Object[]{getattr, args});
357357
}
358358

359-
private String getName(VirtualFrame frame, Object func, CastToJavaStringNode toJavaStringNode, PythonObjectLibrary pol) {
359+
private static String getName(VirtualFrame frame, Object func, CastToJavaStringNode toJavaStringNode, PythonObjectLibrary pol) {
360360
return toJavaStringNode.execute(pol.lookupAttribute(func, frame, __NAME__));
361361
}
362362
}

0 commit comments

Comments
 (0)