No person not wishing his land enclosed, and not occupying or using it otherwise than in common, shall be compelled to contribute to erect or maintain any fence dividing between his land and that of an adjacent owner; but when he encloses or uses his land otherwise than in common, he shall contribute to the partition fence as in this act is provided.