Here you can find the source of toIntUnsigned(short x)
protected static int toIntUnsigned(short x)
//package com.java2s; /*// w w w . j a va 2s . c om * (c) the authors Licensed under the Apache License, Version 2.0. */ public class Main { protected static int toIntUnsigned(short x) { return x & 0xFFFF; } }