Skip to content

Commit e137b1a

Browse files
committed
Fixed eclipseformat issues
1 parent 3acd011 commit e137b1a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ protected PComplex specialValue(ComplexConstant[][] table, double real, double i
116116
}
117117

118118
/**
119-
* Creates an instance of ComplexConstant. The name of this factory method is intentionally short to allow
120-
* subclassess compact definition of their tables of special values.
119+
* Creates an instance of ComplexConstant. The name of this factory method is intentionally
120+
* short to allow subclassess compact definition of their tables of special values.
121+
*
121122
* @param real the real part of the complex constant
122123
* @param imag the imaginary part of the complex constant
123124
* @return a new instance of ComplexConstant representing the complex number real + i * imag
@@ -254,8 +255,8 @@ PTuple doD(double value) {
254255

255256
@Specialization
256257
PTuple doC(PComplex value) {
257-
//TODO: the implementation of abs(z) should be shared with ComplexBuiltins.AbsNode, but it currently does
258-
//not pass the overflow test
258+
// TODO: the implementation of abs(z) should be shared with ComplexBuiltins.AbsNode, but
259+
// it currently does not pass the overflow test
259260
double r;
260261
if (!Double.isFinite(value.getReal()) || !Double.isFinite(value.getImag())) {
261262
if (Double.isInfinite(value.getReal())) {
@@ -284,6 +285,7 @@ PTuple doGeneral(VirtualFrame frame, Object value, @Cached CoerceToComplexNode c
284285
@GenerateNodeFactory
285286
abstract static class SqrtNode extends CmathComplexUnaryBuiltinNode {
286287

288+
// @formatter:off
287289
@CompilerDirectives.CompilationFinal(dimensions = 2)
288290
private static final ComplexConstant[][] SPECIAL_VALUES = {
289291
{C(INF, -INF), C(0.0, -INF), C(0.0, -INF), C(0.0, INF), C(0.0, INF), C(INF, INF), C(NAN, INF)},
@@ -294,6 +296,7 @@ abstract static class SqrtNode extends CmathComplexUnaryBuiltinNode {
294296
{C(INF, -INF), C(INF, -0.0), C(INF, -0.0), C(INF, 0.0), C(INF, 0.0), C(INF, INF), C(INF, NAN)},
295297
{C(INF, -INF), C(NAN, NAN), C(NAN, NAN), C(NAN, NAN), C(NAN, NAN), C(INF, INF), C(NAN, NAN)},
296298
};
299+
// @formatter:on
297300

298301
@Override
299302
PComplex compute(double real, double imag) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ PComplex toComplex(VirtualFrame frame, Object x) {
8282
if (x instanceof PComplex) {
8383
return (PComplex) x;
8484
}
85-
//TODO taken from BuiltinConstructors, should probably be refactored somehow
85+
// TODO taken from BuiltinConstructors, should probably be refactored somehow
8686
if (callComplexFunc == null) {
8787
CompilerDirectives.transferToInterpreterAndInvalidate();
8888
callComplexFunc = insert(LookupAndCallUnaryNode.create(__COMPLEX__));

0 commit comments

Comments
 (0)