Skip to content

Commit d961bc5

Browse files
Java: Remove non-ascii chars
1 parent faf8689 commit d961bc5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

java/ql/src/semmle/code/java/dataflow/FlowSteps.qll

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ private module Buffers {
154154
class BufferWrapMethod extends TaintPreservingCallable {
155155
BufferWrapMethod() {
156156
this.getDeclaringType() instanceof BufferType and
157-
// public static ByteBuffer wrap(byte[] array)
158-
// public static ByteBuffer wrap(byte[] array, int offset, int length)
157+
// public static ByteBuffer wrap(byte[] array)
158+
// public static ByteBuffer wrap(byte[] array, int offset, int length)
159159
this.hasName("wrap") and
160160
this.isStatic()
161161
}
@@ -187,9 +187,9 @@ private module Buffers {
187187
int idx;
188188

189189
BufferBulkGetMethod() {
190-
// public ByteBuffer get(byte[] dst)
191-
// public ByteBuffer get(byte[] dst, int offset, int length)
192-
// public ByteBuffer get(int index, byte[] dst, int offset, int length)
190+
// public ByteBuffer get(byte[] dst)
191+
// public ByteBuffer get(byte[] dst, int offset, int length)
192+
// public ByteBuffer get(int index, byte[] dst, int offset, int length)
193193
this.hasName("get") and
194194
this.getParameterType(idx) instanceof Array
195195
}
@@ -201,11 +201,11 @@ private module Buffers {
201201
int idx;
202202

203203
BufferBulkPutMethod() {
204-
// public final ByteBuffer put(byte[] src)
205-
// public ByteBuffer put(byte[] src, int offset, int length)
206-
// public ByteBuffer put(int index, byte[] src, int offset, int length)
207-
// public ByteBuffer put(ByteBuffer src)
208-
// public final CharBuffer put(String src)
204+
// public final ByteBuffer put(byte[] src)
205+
// public ByteBuffer put(byte[] src, int offset, int length)
206+
// public ByteBuffer put(int index, byte[] src, int offset, int length)
207+
// public ByteBuffer put(ByteBuffer src)
208+
// public final CharBuffer put(String src)
209209
this.hasName("put") and
210210
this.getParameterType(idx) instanceof RefType
211211
}

0 commit comments

Comments
 (0)