motan
motan copied to clipboard
ConsulRegistry.class 中 类型问题
ConsulRegistry.class 中 lookupServiceUpdate()变量 lastConsulIndexId 赋值 我这边0不能自动转Long类型
三元运算符会对后两个表达式的类型进行二进制提升,所以在运行时这条语句是没有问题的。 不过这样的写法不太严谨,下个版本会修改为0L。