Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Interceptor interceptorWithoutPrerequisites = new InterceptorWithoutPrerequisites();
- List<Interceptor> interceptors = singletonList(new InterceptorWithoutPrerequisites());
- ИМХО читается лучше, чем
- List<Interceptor> interceptors = new ArrayList<>();
- Interceptor interceptor = new InterceptorLogical();
- Interceptor interceptorWithoutPrerequisites = new InterceptorWithoutPrerequisites();
- interceptors.add(interceptor);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement