Sentinel Remove redundant functional interfaces

uxhixvfz  于 2022-10-19  发布在  其他
关注(0)|答案(2)|浏览(259)

Issue Description

In sentinel-core moudle, there are many functional interfaces, such as Function , Consumer , BiConsumer , etc. they are all copied JDK8. I guess these functional interfaces were created because sentinel used a JDK version lower than 8, but we wanted to use functional interfaces. But now, sentinel depends on the JDK version. The minimum requirement is 8. Therefore, we can delete these interfaces and use the interfaces provided by JDK.

Describe what happened (or what feature you want)

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Anything else we need to know?

nbnkbykc

nbnkbykc1#

@sczyh30 bro, if you agree with me, can I mention a PR to delete these interfaces?

t0ybt7op

t0ybt7op2#

Contributions are welcomed.

相关问题