Skip to content

Commit fde368f

Browse files
committed
Fix style and copyrights.
1 parent b17ae6b commit fde368f

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/CodecsModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ private String castToString(Object encodingObj) {
578578
}
579579

580580
private boolean castToBoolean(VirtualFrame frame, Object object) {
581-
if(object == PNone.NO_VALUE) {
581+
if (object == PNone.NO_VALUE) {
582582
return false;
583583
}
584584
if (castToBooleanNode == null) {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/common/CExtCommonNodes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 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
@@ -123,7 +123,7 @@ static Object doReceiverCached(CExtContext nativeContext, String name,
123123
@Specialization(replaces = {"doReceiverCachedIdentity", "doReceiverCached"}, //
124124
limit = "1")
125125
static Object doWithContext(CExtContext nativeContext, String name,
126-
@CachedLibrary("nativeContext.getLLVMLibrary()") @SuppressWarnings("unused") InteropLibrary interopLib,
126+
@CachedLibrary("nativeContext.getLLVMLibrary()") InteropLibrary interopLib,
127127
@Cached PRaiseNode raiseNode) {
128128
return importCAPISymbol(raiseNode, interopLib, nativeContext.getLLVMLibrary(), name);
129129
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/common/CExtToNativeNode.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 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
@@ -41,7 +41,6 @@
4141
package com.oracle.graal.python.builtins.objects.cext.common;
4242

4343
import com.oracle.graal.python.nodes.PNodeWithContext;
44-
import com.oracle.graal.python.runtime.PythonContext;
4544

4645
public abstract class CExtToNativeNode extends PNodeWithContext {
4746

0 commit comments

Comments
 (0)