Typo fix in javadoc

spec -> otherSpec