Polish "Add return type check on GetterPointcut"

See gh-30068
This commit is contained in:
Stephane Nicoll 2023-09-08 15:30:52 +02:00
parent d1dfac4e5d
commit 3e424e3ce7
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -126,7 +126,7 @@ public abstract class Pointcuts {
@Override
public boolean matches(Method method, Class<?> targetClass) {
return (method.getName().startsWith("get") &&
method.getParameterCount() == 0 &&
method.getParameterCount() == 0 &&
method.getReturnType() != Void.TYPE);
}