[ https://issues.apache.org/jira/browse/FLINK-6444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16210831#comment-16210831 ]
Hai Zhou UTC+8 commented on FLINK-6444: --------------------------------------- Hi [~pnowojski], You could take a look at the above discussion. I wrote a `flink-spotbugs-plugin` maven plugin with a detector to check this. although it is very simple to use, but I do not know where to put it and how to deploy to the public maven repository. I'd like to hear your thoughts. code commit: https://github.com/yew1eb/flink/commit/d8edc6625ad98302cca54d80c5321d7fe3948b82 > Add a check that '@VisibleForTesting' methods are only used in tests > -------------------------------------------------------------------- > > Key: FLINK-6444 > URL: https://issues.apache.org/jira/browse/FLINK-6444 > Project: Flink > Issue Type: Improvement > Components: Build System > Reporter: Stephan Ewen > Assignee: mingleizhang > > Some methods are annotated with {{@VisibleForTesting}}. These methods should > only be called from tests. > This is currently not enforced / checked during the build. We should add such > a check. -- This message was sent by Atlassian JIRA (v6.4.14#64029)