Change endpointId type to int to align with other override functions (#27922)

diff --git a/src/controller/java/src/chip/devicecontroller/model/ChipEventPath.java b/src/controller/java/src/chip/devicecontroller/model/ChipEventPath.java
index 5f6f7c6..f3798cc 100644
--- a/src/controller/java/src/chip/devicecontroller/model/ChipEventPath.java
+++ b/src/controller/java/src/chip/devicecontroller/model/ChipEventPath.java
@@ -83,7 +83,7 @@
   }
 
   /** Create a new {@link ChipEventPath} with only concrete ids. */
-  public static ChipEventPath newInstance(long endpointId, long clusterId, long eventId) {
+  public static ChipEventPath newInstance(int endpointId, long clusterId, long eventId) {
     return new ChipEventPath(
         ChipPathId.forId(endpointId),
         ChipPathId.forId(clusterId),