Skip to content

Commit 08d281a

Browse files
committed
Fix style
1 parent b5ccf7d commit 08d281a

File tree

9 files changed

+8
-11
lines changed

9 files changed

+8
-11
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/builtins/modules/ConversionNodeTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
import com.oracle.graal.python.runtime.PythonContext;
5757
import com.oracle.graal.python.runtime.PythonContext.PythonThreadState;
5858
import com.oracle.graal.python.runtime.exception.PException;
59-
import com.oracle.graal.python.runtime.object.PythonObjectFactory;
6059
import com.oracle.truffle.api.RootCallTarget;
6160
import com.oracle.truffle.api.frame.VirtualFrame;
6261

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@
261261
import com.oracle.graal.python.runtime.exception.PException;
262262
import com.oracle.graal.python.runtime.formatting.ErrorMessageFormatter;
263263
import com.oracle.graal.python.runtime.interop.PythonMapScope;
264-
import com.oracle.graal.python.runtime.object.PythonObjectFactory;
265264
import com.oracle.graal.python.util.PythonUtils;
266265
import com.oracle.graal.python.util.Supplier;
267266
import com.oracle.truffle.api.CallTarget;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ast/AstModuleBuiltins.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
import com.oracle.graal.python.builtins.objects.type.PythonClass;
5555
import com.oracle.graal.python.nodes.function.PythonBuiltinBaseNode;
5656
import com.oracle.graal.python.runtime.object.PythonObjectFactory;
57-
import com.oracle.graal.python.runtime.object.PythonObjectSlowPathFactory;
5857
import com.oracle.truffle.api.dsl.NodeFactory;
5958

6059
@CoreFunctions(defineModule = "_ast")

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ctypes/LazyPyCArrayTypeBuiltins.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
import com.oracle.graal.python.nodes.object.GetClassNode;
7979
import com.oracle.graal.python.nodes.util.CastToJavaStringNode;
8080
import com.oracle.graal.python.runtime.PythonContext;
81-
import com.oracle.graal.python.runtime.object.PythonObjectFactory;
8281
import com.oracle.graal.python.runtime.object.PythonObjectSlowPathFactory;
8382
import com.oracle.truffle.api.CompilerDirectives;
8483
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ctypes/LazyPyCSimpleTypeBuiltins.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
import com.oracle.graal.python.nodes.function.BuiltinFunctionRootNode;
7777
import com.oracle.graal.python.nodes.function.PythonBuiltinBaseNode;
7878
import com.oracle.graal.python.nodes.function.builtins.PythonBinaryBuiltinNode;
79-
import com.oracle.graal.python.runtime.object.PythonObjectFactory;
8079
import com.oracle.graal.python.runtime.object.PythonObjectSlowPathFactory;
8180
import com.oracle.graal.python.util.PythonUtils;
8281
import com.oracle.truffle.api.CompilerDirectives;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/tuple/StructSequence.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
import com.oracle.graal.python.builtins.objects.tuple.StructSequenceFactory.NewNodeGen;
7070
import com.oracle.graal.python.builtins.objects.tuple.StructSequenceFactory.ReduceNodeGen;
7171
import com.oracle.graal.python.builtins.objects.tuple.StructSequenceFactory.ReprNodeGen;
72-
import com.oracle.graal.python.builtins.objects.tuple.TupleBuiltins.ReprNode;
7372
import com.oracle.graal.python.builtins.objects.type.PythonBuiltinClass;
7473
import com.oracle.graal.python.builtins.objects.type.TypeNodes.GetNameNode;
7574
import com.oracle.graal.python.lib.PyObjectReprAsJavaStringNode;
@@ -277,11 +276,13 @@ private static void createMember(PythonObjectSlowPathFactory factory, PythonLang
277276
PythonUtils.createMember(factory, language, klass, GetStructMemberNode.class, name, doc, idx, (l) -> new GetStructMemberNode(l, idx));
278277
}
279278

280-
private static void createMethod(PythonObjectSlowPathFactory factory, PythonLanguage language, Object klass, Descriptor desc, Class<?> nodeClass, Function<Descriptor, PythonBuiltinBaseNode> nodeSupplier) {
279+
private static void createMethod(PythonObjectSlowPathFactory factory, PythonLanguage language, Object klass, Descriptor desc, Class<?> nodeClass,
280+
Function<Descriptor, PythonBuiltinBaseNode> nodeSupplier) {
281281
PythonUtils.createMethod(factory, language, klass, nodeClass, PythonBuiltinClassType.PTuple, 0, () -> nodeSupplier.apply(desc), desc);
282282
}
283283

284-
private static void createConstructor(PythonObjectSlowPathFactory factory, PythonLanguage language, Object klass, Descriptor desc, Class<?> nodeClass, Function<Descriptor, PythonBuiltinBaseNode> nodeSupplier) {
284+
private static void createConstructor(PythonObjectSlowPathFactory factory, PythonLanguage language, Object klass, Descriptor desc, Class<?> nodeClass,
285+
Function<Descriptor, PythonBuiltinBaseNode> nodeSupplier) {
285286
PythonUtils.createConstructor(factory, language, klass, nodeClass, () -> nodeSupplier.apply(desc), desc);
286287
}
287288

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/control/TopLevelExceptionHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
import com.oracle.graal.python.runtime.exception.ExceptionUtils;
7070
import com.oracle.graal.python.runtime.exception.PException;
7171
import com.oracle.graal.python.runtime.exception.PythonExitException;
72-
import com.oracle.graal.python.runtime.object.PythonObjectFactory;
7372
import com.oracle.graal.python.util.PythonUtils;
7473
import com.oracle.truffle.api.CompilerDirectives;
7574
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@
211211
* repeated context lookups inside the factory.</li>
212212
* <li>When the current context is not available, but multiple objects will be created: lookup the
213213
* context and use {@link Python3Core#factory()}. This executes only one context lookup. Note: first
214-
* check if the caller could pass the context to avoid looking it up behind {@code TruffleBoundary}.</li>
214+
* check if the caller could pass the context to avoid looking it up behind {@code TruffleBoundary}.
215+
* </li>
215216
* <li>When the current context is not available, and only one object is to be created: use
216217
* {@link PythonObjectFactory#getUncached()}.</li>
217218
* </ul>

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/util/PythonUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,8 @@ public static void createMethod(PythonObjectFactory factory, PythonLanguage lang
576576
}
577577

578578
@TruffleBoundary
579-
public static void createConstructor(PythonObjectSlowPathFactory factory, PythonLanguage language, Object klass, Class<?> nodeClass, Supplier<PythonBuiltinBaseNode> nodeSupplier, Object... callTargetCacheKeys) {
579+
public static void createConstructor(PythonObjectSlowPathFactory factory, PythonLanguage language, Object klass, Class<?> nodeClass, Supplier<PythonBuiltinBaseNode> nodeSupplier,
580+
Object... callTargetCacheKeys) {
580581
Builtin builtin = nodeClass.getAnnotation(Builtin.class);
581582
assert __NEW__.equals(builtin.name());
582583
assert IsSubtypeNode.getUncached().execute(klass, PythonBuiltinClassType.PTuple);

0 commit comments

Comments
 (0)