[java] implemented core correction.