Skip to content

Commit 6bcd1b2

Browse files
committed
Fix style
1 parent 95a1f93 commit 6bcd1b2

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,7 @@ public static VirtualFrame frameForCall(ThreadState frame) {
363363
}
364364

365365
/**
366-
* Represents the current thread state information that needs to be passed
367-
* between calls.
366+
* Represents the current thread state information that needs to be passed between calls.
368367
*/
369368
@ValueType
370369
public static final class ThreadState {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object/PythonObjectLibrary.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,9 @@ public boolean isHashable(Object receiver) {
193193
}
194194

195195
/**
196-
* Returns the Python hash to use for the receiver. The {@code threadState}
197-
* argument must be the result of a {@link PArguments#getThreadState}
198-
* call. It ensures that we can use fastcalls and pass the thread state in
199-
* the frame arguments.
196+
* Returns the Python hash to use for the receiver. The {@code threadState} argument must be the
197+
* result of a {@link PArguments#getThreadState} call. It ensures that we can use fastcalls and
198+
* pass the thread state in the frame arguments.
200199
*/
201200
public long hashWithState(Object receiver, ThreadState threadState) {
202201
if (threadState == null) {
@@ -206,9 +205,8 @@ public long hashWithState(Object receiver, ThreadState threadState) {
206205
}
207206

208207
/**
209-
* Potentially slower way to get the Python hash for the receiver. If a
210-
* Python {@link Frame} is available to the caller, {@link #hashWithState}
211-
* should be preferred.
208+
* Potentially slower way to get the Python hash for the receiver. If a Python {@link Frame} is
209+
* available to the caller, {@link #hashWithState} should be preferred.
212210
*/
213211
public long hash(Object receiver) {
214212
return hashWithState(receiver, null);

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/referencetype/ReferenceTypeBuiltins.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ long getHash(PReferenceType self) {
113113
@Specialization(guards = "self.getHash() == HASH_UNSET")
114114
long computeHash(VirtualFrame frame, PReferenceType self,
115115
@Cached("createBinaryProfile()") ConditionProfile referentProfile,
116-
// n.b.: we cannot directly specialize on lib.getObject() here, because it might go away in the meantime!
116+
// n.b.: we cannot directly specialize on lib.getObject() here, because it
117+
// might go away in the meantime!
117118
@CachedLibrary(limit = "getCallSiteInlineCacheMaxDepth()") PythonObjectLibrary lib) {
118119
Object referent = self.getObject();
119120
if (referentProfile.profile(referent != null)) {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/util/CastToJavaLongNode.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@
5656
import com.oracle.truffle.api.nodes.ControlFlowException;
5757

5858
/**
59-
* Casts a Python integer to a Java long, lossy and without
60-
* coercion. <b>ATTENTION:</b> If the cast fails, the node will throw a {@link
61-
* CannotCastException}.
59+
* Casts a Python integer to a Java long, lossy and without coercion. <b>ATTENTION:</b> If the cast
60+
* fails, the node will throw a {@link CannotCastException}.
6261
*/
6362
@GenerateUncached
6463
@ImportStatic(PGuards.class)

0 commit comments

Comments
 (0)