Skip to content

Commit 21da454

Browse files
author
Pavel Marek
committed
Fix style
(cherry picked from commit 6b2f677)
1 parent 4dc7bb8 commit 21da454

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/NativeDataAccess.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RStringVecNativeData.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ public class RStringVecNativeData implements TruffleObject, ShareableVectorData
4646

4747
/**
4848
* After nativized, the data array degenerates to a reference holder, which prevents the objects
49-
* from being GC'ed. This means that if someone changes the order of the CHARSXP elements on the native
50-
* side, this modification is not reflected in this reference holder array.
49+
* from being GC'ed. This means that if someone changes the order of the CHARSXP elements on the
50+
* native side, this modification is not reflected in this reference holder array.
5151
*
52-
* If the native code copies data of one string vector to another without
53-
* using the proper API, we are doomed.
52+
* If the native code copies data of one string vector to another without using the proper API,
53+
* we are doomed.
5454
*/
5555
private final CharSXPWrapper[] data;
5656

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/VectorDataLibrary.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public boolean isWriteable(Object data) {
158158
*
159159
* @see #materialize(Object)
160160
*/
161-
public Object materializeCharSXPStorage(Object data) throws UnsupportedMessageException {
161+
public Object materializeCharSXPStorage(@SuppressWarnings("unused") Object data) throws UnsupportedMessageException {
162162
throw UnsupportedMessageException.create();
163163
}
164164

@@ -1059,14 +1059,17 @@ public void setString(Object receiver, RandomAccessWriteIterator it, int index,
10591059
throw notWriteableError(receiver, "setString");
10601060
}
10611061

1062+
@SuppressWarnings("unused")
10621063
public void setCharSXPAt(Object receiver, int index, CharSXPWrapper value) {
10631064
throw notWriteableError(receiver, "setCharSXPAt");
10641065
}
10651066

1067+
@SuppressWarnings("unused")
10661068
public void setNextCharSXP(Object receiver, SeqWriteIterator it, CharSXPWrapper value) {
10671069
throw notWriteableError(receiver, "setNextCharSXP");
10681070
}
10691071

1072+
@SuppressWarnings("unused")
10701073
public void setCharSXP(Object receiver, RandomAccessWriteIterator it, int index, CharSXPWrapper value) {
10711074
throw notWriteableError(receiver, "setCharSXP");
10721075
}

0 commit comments

Comments
 (0)