MINOR: cleanup deprectaion annotations#6290
Conversation
|
Call for review @guozhangwang @bbejeck @vvcephei @ableegoldman |
There was a problem hiding this comment.
The naming convention is a bit broken (e.g it starts with a capital). Generally, it's a bit odd to be adding IDE specific values that are not standardized. For example, would we do the same for Eclipse, Atom, Visual Studio.net, etc.?
There was a problem hiding this comment.
I guess that's fair -- nobody complained so far -- we use multiple IntelliJ related suppression -- there is no guideline -- happy to define one -- if we don't want to use IntelliJ specific one, we should remove all of them.
There was a problem hiding this comment.
Fair point, I don't have an issue with it annotation itself, but maybe we are better off with not using an IDE specific value. Just my 2 cents though, I'll go with the majority on this one.
There was a problem hiding this comment.
@guozhangwang What does "sgtm" mean in this context? Keep the annotation or remove it?
There was a problem hiding this comment.
Ping @mjsax @guozhangwang this is ready for merging pending resolving this last comment regarding the annotations.
There was a problem hiding this comment.
It's still unclear to me how to proceed:
- remove IntelliJ suppressions?
1a. define guidelines that only Java annotation should be use? - keep the annotations?
2a. allow for other annotations of other IDEs?
\cc @ijuma @guozhangwang
There was a problem hiding this comment.
There was a problem hiding this comment.
It looks like this field is never used outside of this class, which also implies that its value is never read. Should we just delete it?
There was a problem hiding this comment.
The NoOpProcessorContext is contained in test package and thus is built to be used in multiple tests. Thus it should be generic IMHO, even if we don't use all available "features". Thoughts?
There was a problem hiding this comment.
I just meant that the forwardedValues are being captured but never referenced. Therefore, we don't need to capture them. No need to maintain features in test support classes that no tests use.
There was a problem hiding this comment.
It looks like this field is only referenced in the constructor. Should we make it private?
876868c to
9b2f390
Compare
| * @see org.apache.kafka.streams.kstream.SessionWindows | ||
| * @see org.apache.kafka.streams.processor.TimestampExtractor | ||
| */ | ||
| @InterfaceStability.Unstable |
There was a problem hiding this comment.
@guozhangwang This is a new cleanup on the side.
|
Test results not available any longer. Java11 failed. Java8 passed. Retest this please. |
|
LGTM. Thanks @mjsax ! |
|
Merged #6290 into trunk |
* warn-apache-kafka/trunk: (41 commits) MINOR: Avoid double null check in KStream#transform() (apache#6429) KAFKA-7944: Improve Suppress test coverage (apache#6382) KAFKA-3522: add missing guards for TimestampedXxxStore (apache#6356) MINOR: Change Trogdor agent's cleanup executor to a cached thread pool (apache#6309) KAFKA-7976; Update config before notifying controller of unclean leader update (apache#6426) KAFKA-7801: TopicCommand should not be able to alter transaction topic partition count KAFKA-8091; Wait for processor shutdown before testing removed listeners (apache#6425) MINOR: Update delete topics zk path in assertion error messages KAFKA-7939: Fix timing issue in KafkaAdminClientTest.testCreateTopicsRetryBackoff KAFKA-7922: Return authorized operations in Metadata request response (KIP-430 Part-2) MINOR: Print usage when parse fails during console producer MINOR: fix Scala compiler warning (apache#6417) KAFKA-7288; Fix check in SelectorTest to wait for no buffered bytes (apache#6415) KAFKA-8065: restore original input record timestamp in forward() (apache#6393) MINOR: cleanup deprectaion annotations (apache#6290) KAFKA-3522: Add TimestampedWindowStore builder/runtime classes (apache#6173) KAFKA-8069; Fix early expiration of offsets due to invalid loading of expire timestamp (apache#6401) KAFKA-8070: Increase consumer startup timeout in system tests (apache#6405) KAFKA-8040: Streams handle initTransactions timeout (apache#6372) KAFKA-7980 - Fix timing issue in SocketServerTest.testConnectionRateLimit (apache#6391) ...
If deprecated interface methods are inherited, the @Deprication tag should be used (instead on suppressing the deprecation warning). Reviewers: Guozhang Wang <wangguoz@gmail.com>, John Roesler <john@confluent.io>, Bill Bejeck <bbejeck@gmail.com>
If deprecated interface methods are inherited, the
@Depricationtag should be used (instead on suppressing the deprecation warning).Also adding comments to better explain when stuff will be fixed.
Also adding comments about deprecated ReadOnlyWindowStore methods, that we keep for WindowStore though (to avoid method removal because they are deprecated in parent interface).
Some additional side cleanup