The complaint alleged that a wharf leased by the defendant to the plaintiff for the term of ten years from the 1st day of May, 1865, on or about the month of April, 1867, fell down and ivas wholly gone, and upon the refusal of the defendant to reconstruct *552it the plaintiff rebuilt it at an expense, including tbe loss of its business in the meantime, exceeding the sum of $30,000. It was alleged that the wharf was an old one and substantially destroyed by natural wear and decay, and hidden and secret defects concealed under the surface of the water at the time when the lease was made, and that it finally fell because of the defendant’s omission to substantially repair it; and for that reason, and also because it was represented by the defendant previous to the making of the lease that the substantial repairs would be made by it, and that the plaintiff should be under no obligation to make any other than the ordinary and usual repairs, it was claimed that the defendant was liable to reimburse the expenditures made and the loss incurred from the suspension of the plaintiff’s business. No fraud, either by intentional concealment or misrepresentation, was alleged against the defendant; and as the lease was in writing and subscribed by the parties in such a form as wholly to exclude proof of the representations mentioned* they can, neither of them, be considered for the purpose of determining the legal extent of the defendant’s obligation, for it is exceedingly well settled that all anterior representations of what either of the contracting parties may propose to do concerning the subject-matter of the contract become merged in the written instrument afterwards executed by them, and for that reason they are inoperative when no fraud or mistake has occasioned their omission from its terms. (2 Parsons on Contracts [5th ed.], 547, 549; Riley v. City of Brooklyn, 46 N. Y., 444.) As the plaintiff was in no way deceived or mistaken concerning the contents of the lease, it cannot impose any obligation upon the defendant in consequence of what may previously have been stated, but which Was allowed to form no part of it when it was afterwards reduced to writing and mutually executed.
An effort was made by the plaintiff’s .counsel to maintain the liability upon the duty resting upon the defendant to keep its wharves in a reasonably safe state of repair. But the serious difficulty in the way of sustaining that theory has been created by the stipulations which were inserted in the lease. They changed the burthen of the legal duty between these parties by imposing the obligation of its observance upon the plaintiff. They were plain and explicit, and expressed in the following manner: “And the parties of the *553second part (the plaintiffs) further covenant that during the continuance of said lease they will repair and keep the said wharves, piers or bulk-heads in good repair at their own proper cost and charges and surrender the same, at the expiration of said term, in as good condition as they are at the time they take possession thereof, the natural wear and decay excepted.
“And that all alterations and improvements and repairs, of whatsoever kind or nature, are to be made at the expense of the party of the second part.
“And the said parties of the second part for themselves, etc., hereby expressly covenant and agree that they will, during the continuance hereof, keep the wharves in good condition and safe and proper repair, including especially the string-pieces and other superficial portions thereof for safe usage, and in default of their so doing at any time after notice from the comptroller or other proper officer of the city that such repairs are necessary, and ten days thereafter the said parties of the first part may repair the same, and the said parties of the second part (plaintiffs) their successors and assigns agree to pay to the parties of the first part all expenses of such repairs and interest, damages by the elements alone excepted.”
And they subjected the plaintiff to the obligation of making all such repairs as should be required by the demised structure during the continuance of the term created in the lease. For that purpose no duty rested upon the defendant in the plaintiff’s favor. The duty insisted upon cannot be implied from their relations or from any thing contained in the written instrument. (Witty v. Matthews, 52 N. Y., 512 ; Lookrow v. Horgan, 58 id., 635.) For these reasons, and those also assigned in the opinion of Mr. Justice Donohue, upon the decision of the demurrer to the original complaint, the judgment ought to be affirmed.
Opinion of Donohue, J., at Special Term:
In this case the complaint in substance is that the plaintiffs, a corporation acting as common carrier by water, and having a large business, leased wharfage of the pier mentioned in the complaint, the plaintiffs to do the repairs of all and every kind during the lease. The ground of action is that the pier leased in April, 1865, in consequence of its then state from wear and tear and the addi*554tional use up to April, 1867, had to be repaired to the extent in the complaint stated; that the defendants were by law bound to keep the wharf in order and that the plaintiffs asked them to so put it, and that as the defendants would not plaintiffs did and ask to receive the money they paid for repairing it. To this defendants demur and I think the demurrer must be sustained.
Admitting all that is said about the public duty of the defendants, and that a man has a right to demand from the city the repair of the street in front of his house, and in default of the city doing it, he may, and charge them. Admitting for the argument all this, the plaintiffs have, by the terms of their lease, assumed all this duty, and whatever may be the rights of the public for injuries sustained by the non-performance by the city of its duties the plaintiff, who has assumed by the covenant of the lease this duty, cannot, as between it and the city, escape from its covenant.
In Taylor v. Atlantic Insurance Company (37 N. Y., 278) the General Term of the Superior Court held expressly, as between lessees of the pier and the city, that any obstructions which, as between the city and themselves, in order to enjoy their grant, the lessees were bound to remove, the duty being on them to do it, they had no redress for the loss except as against a. wrong-doer. (See 4th and 5th findings, page 278.) This was in no way disapproved by the Court of Appeals, but acquiesced in.
In Davenport v. Ruckman (37 N. Y., 568) the same principle, in substance, was stated, that the person whose duty it was to repair the sidewalks was responsible to third parties for defects in such sidewalk; and as to such third parties the city was also liable. That case was one where the city and householder held no relation by covenant with each other, and their obligations arose solely out of their obligations to the public.
In Robinson v. Chamberlain (34 N. Y., 389) the same doctrine, as contended for in this case by the defendant, is carried beyond what is required here. There it was expressly held that where a person acts as a public officer, but under a contract with the State to jaerform certain work, but does his work negligently, as to a party injured by such neglect to repair he was liable. If the principle contended for here by plaintiff is correct this could not be so.
In McCarthy v. The City of Syracuse (46 N. Y., 194) the casa *555turned entirely on the duty, as to third parties, of the city in keeping' the streets in repair, and so I find is the substance of the other cases cited by plaintiff. In none of them can I find any approval'of a principle holding that the city cannot, as between itself and its tenants, make such covenant as any other person can make, always saving the rights of third parties, and that it does not lie in the mouth of such tenant to say the covenant is improper, while he keeps the lease. In other words he cannot take all the benefit and throw all the loss on the city.
The statement of the case here is one showing no fraud or misrepresentation. Plaintiff had full means of ascertaining the condition of the pier, and did not offer to surrender but wanted to hold the contract and add to it a covenant to do what he had already covenanted to do.
The case, it seems to me, presents a single question on this covenant, who is bound for the expense, and it seems clear the plaintiff was. But it seems to me, further, that it is not for the plaintiff to assume what streets the defendant should keep open or what new streets it shall open, or what wharves the city shall keep uj) or what new ones build, and because it cannot get a pier to suit it as well as this rebuilt.
I know of no obligations on the city to rebuild or keep up any particular pier if they see fit to take it up, and it does not seem to mo that the city was bound, as regards this plaintiff, to build or rebuild a pier which would be more convenient to this plaintiff than in its dilapidated state.
In the judgment of the officers of the plaintiff this was the best pier for them; that judgment the city is not bound by. It has been a question of sound public policy whether these and similar steamboats should be allowed so low down at all. Whether plaintiffs áre to be allowed to determine this question and build or extend piers to suit them is not, it seems to me, open to question. They have no such right.
The city takes the ground that supposing they are wrong on both these points, that is as to the covenant obligations of plaintiff to do the work, and that the defendants were bound to maintain the existence of this wharf, it is not for the defendants to repair or rebuild and charge defendants with the price. It seems to me that on this point the city is equally right.
*556I know of no case going to the extent of holding that where a duty exists in a corporation of maintaining piers, that when they are in default any person claiming to be injured may do the duty thrown on the corporation and charge them with the value.
It is hardly necessary to discuss the question; such a principle would leave the corporate right much more embarrassed than either policy or justice would require.
Judgment for defendant.
Davis, P. J., and Brady, J., concurred in foregoing opinion o* Daniels, J.Judgment affirmed.