if (currentByte != ((RST0 + nextRestartNumber) % 256)) {
if (currentByte != ((RST0 + nextRestartNumber) & 0xFF)) {
void processRestartInterval() {	do {		bufferCurrentPosition++;		if (bufferCurrentPosition > 511) {			resetInputBuffer();			bufferCurrentPosition = 0;		}		currentByte = dataBuffer[bufferCurrentPosition] & 0xFF;	} while (currentByte != 0xFF);	while (currentByte == 0xFF) {		bufferCurrentPosition++;		if (bufferCurrentPosition > 511) {			resetInputBuffer();			bufferCurrentPosition = 0;		}		currentByte = dataBuffer[bufferCurrentPosition] & 0xFF;	}	if (currentByte != ((RST0 + nextRestartNumber) % 256)) {		SWT.error(SWT.ERROR_INVALID_IMAGE);	}	bufferCurrentPosition++;	if (bufferCurrentPosition > 511) {		resetInputBuffer();		bufferCurrentPosition = 0;	}	currentByte = dataBuffer[bufferCurrentPosition] & 0xFF;	currentBitCount = 8;	restartsToGo = restartInterval;	nextRestartNumber = (nextRestartNumber + 1) % 8;	precedingDCs = new int[4];	eobrun = 0;}