You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2021/10/01 02:16:33 UTC
[GitHub] [hadoop] shuzirra commented on a change in pull request #3459: YARN-10962. Do not extend from CapacitySchedulerTestBase when not needed.
shuzirra commented on a change in pull request #3459:
URL: https://github.com/apache/hadoop/pull/3459#discussion_r719889968
##########
File path: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacitySchedulerTestUtilities.java
##########
@@ -26,16 +26,19 @@
import java.util.Set;
-public class CapacitySchedulerTestBase {
- protected final int GB = 1024;
+public final class CapacitySchedulerTestUtilities {
+ public static final int GB = 1024;
+
+ private CapacitySchedulerTestUtilities() {
+ throw new IllegalStateException("Utility class");
Review comment:
Perhaps this is a bit of an overkill, it's already private, we don't really need this exception.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org