Skip to content

Commit 6576f40

Browse files
committed
fix style
1 parent 7e1ce8a commit 6576f40

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@
8484
import static com.oracle.graal.python.runtime.exception.PythonErrorType.ValueError;
8585

8686
import java.math.BigInteger;
87-
import java.nio.charset.Charset;
88-
import java.nio.charset.CodingErrorAction;
8987
import java.nio.charset.StandardCharsets;
9088
import java.util.Arrays;
9189
import java.util.List;
@@ -2231,7 +2229,7 @@ Object typeNew(VirtualFrame frame, Object cls, Object wName, PTuple bases, PDict
22312229
}
22322230

22332231
@Fallback
2234-
Object generic(Object cls, Object name, Object bases, Object namespace, Object kwds) {
2232+
Object generic(@SuppressWarnings("unused") Object cls, @SuppressWarnings("unused") Object name, Object bases, Object namespace, @SuppressWarnings("unused") Object kwds) {
22352233
if (!(bases instanceof PTuple)) {
22362234
throw raise(TypeError, ErrorMessages.ARG_D_MUST_BE_S_NOT_P, "type.__new__()", 2, "tuple", bases);
22372235
} else if (namespace == PNone.NO_VALUE) {
@@ -2698,6 +2696,7 @@ Object doNative(PythonAbstractNativeObject self, Object[] varargs, PKeyword[] kw
26982696
@Builtin(name = "NotImplementedType", minNumOfPositionalArgs = 1, constructsClass = PythonBuiltinClassType.PNotImplemented, isPublic = false)
26992697
@GenerateNodeFactory
27002698
public abstract static class NotImplementedTypeNode extends PythonBuiltinNode {
2699+
@SuppressWarnings("unused")
27012700
@Specialization
27022701
public PNotImplemented module(Object cls) {
27032702
return PNotImplemented.NOT_IMPLEMENTED;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/frame/AccessNameNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 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/frame/WriteNameNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 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

0 commit comments

Comments
 (0)