Skip to content

Commit 1be31f6

Browse files
committed
style fix
1 parent b470802 commit 1be31f6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -400,18 +400,15 @@ private Arity.KeywordName[] getKeywordNames() {
400400
}
401401

402402
public boolean isGenerator() {
403-
long flags = getFlags();
404-
return (flags & (1 << FLAG_POS_GENERATOR)) > 0;
403+
return (getFlags() & (1 << FLAG_POS_GENERATOR)) > 0;
405404
}
406405

407406
public boolean takesVarArgs() {
408-
long flags = getFlags();
409-
return (flags & (1 << FLAG_POS_VAR_ARGS)) > 0;
407+
return (getFlags() & (1 << FLAG_POS_VAR_ARGS)) > 0;
410408
}
411409

412410
public boolean takesVarKeywordArgs() {
413-
long flags = getFlags();
414-
return (flags & (1 << FLAG_POS_VAR_KW_ARGS)) > 0;
411+
return (getFlags() & (1 << FLAG_POS_VAR_KW_ARGS)) > 0;
415412
}
416413

417414
private int getMinNumOfPositionalArgs() {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/function/AbstractFunctionBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public abstract static class GetDefaultsNode extends PythonBinaryBuiltinNode {
270270
protected final ConditionProfile nullDefaultsProfile = ConditionProfile.createBinaryProfile();
271271

272272
@TruffleBoundary
273-
private Object[] extractDefaults(PFunction function) {
273+
private static Object[] extractDefaults(PFunction function) {
274274
List<Object> defaultValues = new ArrayList<>();
275275
List<ReadKeywordNode> readKeywordNodes = NodeUtil.findAllNodeInstances(function.getFunctionRootNode(), ReadKeywordNode.class);
276276
for (ReadKeywordNode readKeywordNode : readKeywordNodes) {

0 commit comments

Comments
 (0)