Skip to content

Commit a664d48

Browse files
committed
fix style
1 parent f8f5c0d commit a664d48

File tree

7 files changed

+17
-10
lines changed

7 files changed

+17
-10
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/advance/LeakTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private MBeanServer doFullGC() {
190190
server = ManagementFactory.getPlatformMBeanServer();
191191
try {
192192
ObjectName objectName = new ObjectName("com.sun.management:type=DiagnosticCommand");
193-
server.invoke(objectName, "gcRun", new Object[] { null }, new String[]{String[].class.getName()});
193+
server.invoke(objectName, "gcRun", new Object[]{null}, new String[]{String[].class.getName()});
194194
} catch (MalformedObjectNameException | InstanceNotFoundException | ReflectionException | MBeanException e) {
195195
throw new RuntimeException(e);
196196
}
@@ -284,7 +284,7 @@ protected String getLanguageId() {
284284

285285
@Override
286286
protected String[] getDefaultLanguages() {
287-
return new String[] { languageId };
287+
return new String[]{languageId};
288288
}
289289

290290
@Override

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2324,7 +2324,8 @@ abstract static class MakeMayRaiseWrapperNode extends PythonBuiltinNode {
23242324

23252325
private static final RootCallTarget createWrapperCt(PFunction func, Object errorResult) {
23262326
CompilerDirectives.transferToInterpreter();
2327-
assert errorResult instanceof Integer || errorResult instanceof Long || errorResult instanceof Double || errorResult == PNone.NONE || InteropLibrary.getUncached().isNull(errorResult) : "invalid wrap";
2327+
assert errorResult instanceof Integer || errorResult instanceof Long || errorResult instanceof Double || errorResult == PNone.NONE ||
2328+
InteropLibrary.getUncached().isNull(errorResult) : "invalid wrap";
23282329
PythonLanguage lang = PythonLanguage.getCurrent();
23292330
RootNode rootNode = new MayRaiseNode(lang, func.getSignature(), func.getCallTarget(), errorResult);
23302331
return PythonUtils.getOrCreateCallTarget(rootNode);

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/HashingStorage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ HashingStorage doSequence(VirtualFrame frame, PythonObject iterable, PKeyword[]
236236
@Cached IsBuiltinClassProfile errorProfile,
237237
@Cached IsBuiltinClassProfile isTypeErrorProfile) {
238238

239-
return addSequenceToStorage(frame, iterable, kwargs, (isStringKey, expectedSize) -> PDict.createNewStorage(lang, isStringKey, expectedSize), iterableLib, nextNode, createListNode, seqLenNode, lengthTwoProfile, raise, getItemNode, isTypeErrorProfile,
239+
return addSequenceToStorage(frame, iterable, kwargs, (isStringKey, expectedSize) -> PDict.createNewStorage(lang, isStringKey, expectedSize), iterableLib, nextNode, createListNode,
240+
seqLenNode, lengthTwoProfile, raise, getItemNode, isTypeErrorProfile,
240241
errorProfile, lib);
241242
}
242243

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/generator/PGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ private static void assignClosure(PCell[] closure, MaterializedFrame generatorFr
128128
}
129129
}
130130

131-
private PGenerator(PythonLanguage lang, String name, String qualname, RootCallTarget[] callTargets, GeneratorInfo generatorInfo, FrameDescriptor frameDescriptor, Object[] arguments, PCell[] closure, Object iterator) {
131+
private PGenerator(PythonLanguage lang, String name, String qualname, RootCallTarget[] callTargets, GeneratorInfo generatorInfo, FrameDescriptor frameDescriptor, Object[] arguments,
132+
PCell[] closure, Object iterator) {
132133
super(PythonBuiltinClassType.PGenerator, PythonBuiltinClassType.PGenerator.getInstanceShape(lang));
133134
this.name = name;
134135
this.qualname = qualname;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/HiddenAttributes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/argument/CreateArgumentsNode.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ Object[] doMethodFunctionAndSelfCached(PythonObject method, Object[] userArgumen
132132
return createAndCheckArgumentsNode.execute(method, userArguments, keywords, signature, cachedSelf, defaults, kwdefaults, isMethodCall(cachedSelf));
133133
}
134134

135-
@Specialization(guards = {"isMethod(method)", "getFunction(method) == cachedFunction"}, limit = "getVariableArgumentInlineCacheLimit()", replaces = "doMethodFunctionAndSelfCached", assumptions = "singleContextAssumption()")
135+
@Specialization(guards = {"isMethod(method)",
136+
"getFunction(method) == cachedFunction"}, limit = "getVariableArgumentInlineCacheLimit()", replaces = "doMethodFunctionAndSelfCached", assumptions = "singleContextAssumption()")
136137
Object[] doMethodFunctionCached(PythonObject method, Object[] userArguments, PKeyword[] keywords,
137138
@Cached("create()") CreateAndCheckArgumentsNode createAndCheckArgumentsNode,
138139
@Cached("create()") GetSignatureNode getSignatureNode,

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/object/PythonObjectFactory.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -793,15 +793,18 @@ public PDictKeyIterator createDictKeyIterator(HashingStorageIterator<Object> ite
793793
}
794794

795795
public PDictKeyIterator createDictReverseKeyIterator(HashingStorageIterator<Object> iterator, HashingStorage hashingStorage, int initialSize) {
796-
return trace(new PDictKeyIterator(PythonBuiltinClassType.PDictReverseKeyIterator, PythonBuiltinClassType.PDictReverseKeyIterator.getInstanceShape(getLanguage()), iterator, hashingStorage, initialSize));
796+
return trace(new PDictKeyIterator(PythonBuiltinClassType.PDictReverseKeyIterator, PythonBuiltinClassType.PDictReverseKeyIterator.getInstanceShape(getLanguage()), iterator, hashingStorage,
797+
initialSize));
797798
}
798799

799800
public PDictValueIterator createDictValueIterator(HashingStorageIterator<Object> iterator, HashingStorage hashingStorage, int initialSize) {
800-
return trace(new PDictValueIterator(PythonBuiltinClassType.PDictValueIterator, PythonBuiltinClassType.PDictValueIterator.getInstanceShape(getLanguage()), iterator, hashingStorage, initialSize));
801+
return trace(new PDictValueIterator(PythonBuiltinClassType.PDictValueIterator, PythonBuiltinClassType.PDictValueIterator.getInstanceShape(getLanguage()), iterator, hashingStorage,
802+
initialSize));
801803
}
802804

803805
public PDictValueIterator createDictReverseValueIterator(HashingStorageIterator<Object> iterator, HashingStorage hashingStorage, int initialSize) {
804-
return trace(new PDictValueIterator(PythonBuiltinClassType.PDictReverseValueIterator, PythonBuiltinClassType.PDictReverseValueIterator.getInstanceShape(getLanguage()), iterator, hashingStorage,
806+
return trace(new PDictValueIterator(PythonBuiltinClassType.PDictReverseValueIterator, PythonBuiltinClassType.PDictReverseValueIterator.getInstanceShape(getLanguage()), iterator,
807+
hashingStorage,
805808
initialSize));
806809
}
807810

0 commit comments

Comments
 (0)