The court delivered its advisory opinion on 22 July 2010 ; by a vote of 10 to 4 , it declared that `` the declaration of independence of the 17th of February 2008 did not violate general international law because international law contains no ` prohibition on declarations of independence ' . ''
On July 22 , 2010 the International Court of Justice ruled that the declaration did not violate international law .