mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
IDEA-123948 Constant condition and exceptions: false positive on MappedByteBuffer.getInt
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import java.nio.MappedByteBuffer;
|
||||
|
||||
class Test
|
||||
{
|
||||
public static int triggerBug(MappedByteBuffer buffer)
|
||||
{
|
||||
int a = buffer.getInt();
|
||||
int b = buffer.getInt();
|
||||
if(a == 0 && b == 1)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user