Changeset 10862 in josm for trunk/src/com/drew/lang/ByteArrayReader.java
- Timestamp:
- 2016-08-20T20:58:03+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/lang/ByteArrayReader.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 22 22 package com.drew.lang; 23 23 24 import java.io.IOException; 25 24 26 import com.drew.lang.annotations.NotNull; 25 26 import java.io.IOException;27 27 28 28 /** … … 40 40 private final byte[] _buffer; 41 41 42 @SuppressWarnings({ "ConstantConditions" })43 @com.drew.lang.annotations.SuppressWarnings(value = "EI_EXPOSE_REP2", justification = "Design intent")44 42 public ByteArrayReader(@NotNull byte[] buffer) 45 43 { … … 74 72 return bytesRequested >= 0 75 73 && index >= 0 76 && (long)index + (long)bytesRequested - 1L < (long)_buffer.length;74 && (long)index + (long)bytesRequested - 1L < _buffer.length; 77 75 } 78 76
Note:
See TracChangeset
for help on using the changeset viewer.