If your 2530 switch is operated inside the specifications that are in the data-sheet, I would expect the unit to be replaced. If you have corrosion on a switch, and it is exposed to salty water, I doubt if that is within the specifications.
Check here on the warranty rules. The FAQ (Q17) excludes external causes or contamination, which water damage is in my opinion:
Does my warranty coverage apply to damage caused directly or indirectly by a fire?
No. As described in the warranty statement, HPE’s warranty does not apply to products that have been damaged or rendered defective due to external causes or contamination.
Furthermore, HPE Networking does not have decontamination processes, nor has HPE Networking qualified third-party cleaning processes. Depending on the nature and location of the fire and how it was extinguished, there could be direct or residual effects from heat, moisture, shock and vibration, or airborne chemicals and particles released by either material that burned or by firefighting equipment, any of which could ultimately lead to equipment failure. It is difficult to predict actual failure symptoms or the timeframe in which any such symptoms might appear. Visual inspection combined with successful operation of the equipment would not necessarily identify if the equipment was subject to any of these direct or residual effects and ultimately fail prematurely. You should contact your insurance carrier to see if fire or contamination related damage is covered under your insurance policy.
Please find out what happened to the switch. If it is operated normally, within specifications and with the usual precautions, and you think it is reasonable that the switch should be replaced under warranty, you can start a warranty claim direct or via your partner. That is also described in the FAQ mentioned above.