Skip to content

Commit 6964c99

Browse files
committed
Formatting
1 parent 0b0ddc4 commit 6964c99

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/floats/FloatBuiltins.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -880,28 +880,28 @@ abstract static class NegNode extends PythonUnaryBuiltinNode {
880880
@GenerateNodeFactory
881881
@Builtin(name = "real", fixedNumOfArguments = 1, isGetter = true, doc = "the real part of a complex number")
882882
static abstract class RealNode extends PythonBuiltinNode {
883-
883+
884884
@Child private GetClassNode getClassNode;
885-
885+
886886
protected PythonClass getClass(Object value) {
887887
if (getClassNode == null) {
888888
CompilerDirectives.transferToInterpreterAndInvalidate();
889889
getClassNode = insert(GetClassNode.create());
890890
}
891891
return getClassNode.execute(value);
892892
}
893-
893+
894894
@Specialization
895895
double get(double self) {
896896
return self;
897897
}
898898

899-
@Specialization (guards ="cannotBeOverridden(getClass(self))")
899+
@Specialization(guards = "cannotBeOverridden(getClass(self))")
900900
PFloat getPFloat(PFloat self) {
901901
return self;
902902
}
903-
904-
@Specialization (guards ="!cannotBeOverridden(getClass(self))")
903+
904+
@Specialization(guards = "!cannotBeOverridden(getClass(self))")
905905
PFloat getPFloatOverriden(PFloat self) {
906906
return factory().createFloat(self.getValue());
907907
}
@@ -915,7 +915,7 @@ static abstract class ImagNode extends PythonBuiltinNode {
915915
double get(@SuppressWarnings("unused") Object self) {
916916
return 0;
917917
}
918-
918+
919919
}
920920

921921
@Builtin(name = __GETFORMAT__, fixedNumOfArguments = 2)

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ints/IntBuiltins.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,17 +1855,17 @@ int bitLength(PInt argument) {
18551855
@GenerateNodeFactory
18561856
@Builtin(name = "real", fixedNumOfArguments = 1, isGetter = true, doc = "the real part of a complex number")
18571857
static abstract class RealNode extends PythonBuiltinNode {
1858-
1858+
18591859
@Child private GetClassNode getClassNode;
1860-
1860+
18611861
protected PythonClass getClass(Object value) {
18621862
if (getClassNode == null) {
18631863
CompilerDirectives.transferToInterpreterAndInvalidate();
18641864
getClassNode = insert(GetClassNode.create());
18651865
}
18661866
return getClassNode.execute(value);
18671867
}
1868-
1868+
18691869
@Specialization
18701870
int get(boolean self) {
18711871
return self ? 1 : 0;
@@ -1881,12 +1881,12 @@ long get(long self) {
18811881
return self;
18821882
}
18831883

1884-
@Specialization(guards ="cannotBeOverridden(getClass(self))")
1884+
@Specialization(guards = "cannotBeOverridden(getClass(self))")
18851885
PInt getPInt(PInt self) {
18861886
return self;
18871887
}
1888-
1889-
@Specialization(guards ="!cannotBeOverridden(getClass(self))")
1888+
1889+
@Specialization(guards = "!cannotBeOverridden(getClass(self))")
18901890
PInt getPIntOverriden(PInt self) {
18911891
return factory().createInt(self.getValue());
18921892
}
@@ -1904,9 +1904,9 @@ int get(@SuppressWarnings("unused") Object self) {
19041904
@GenerateNodeFactory
19051905
@Builtin(name = "numerator", fixedNumOfArguments = 1, isGetter = true, doc = "the numerator of a rational number in lowest terms")
19061906
static abstract class NumeratorNode extends RealNode {
1907-
1907+
19081908
}
1909-
1909+
19101910
@GenerateNodeFactory
19111911
@Builtin(name = "denominator", fixedNumOfArguments = 1, isGetter = true, doc = "the denominator of a rational number in lowest terms")
19121912
static abstract class DenominatorNode extends PythonBuiltinNode {
@@ -1915,7 +1915,7 @@ int get(@SuppressWarnings("unused") Object self) {
19151915
return 1;
19161916
}
19171917
}
1918-
1918+
19191919
@Builtin(name = SpecialMethodNames.__INT__, fixedNumOfArguments = 1)
19201920
@GenerateNodeFactory
19211921
abstract static class IntNode extends PythonBuiltinNode {

0 commit comments

Comments
 (0)