[fix][33899]Methods declared void must not return a value.
Close #3834