Просмотр исходного кода

Add policy for 'final' classes

Frida Johanne Tveit 9 лет назад
Родитель
Сommit
f06acc98f3
1 измененных файлов: 4 добавлений и 0 удалений
  1. 4
    0
      POLICIES.md

+ 4
- 0
POLICIES.md Просмотреть файл

42
 
42
 
43
 References: [[1](https://github.com/exercism/xjava/issues/178)]
43
 References: [[1](https://github.com/exercism/xjava/issues/178)]
44
 
44
 
45
+### Do not make user-facing classes `final`
46
+
47
+> Starter implementations and test classes should not include the `final` keyword in class declarations as it isn't strictly necessary and could be confusing to people unfamiliar with Java.
48
+
45
 ### Ignore noninitial tests
49
 ### Ignore noninitial tests
46
 
50
 
47
 > All but the first test in an exercise test suite should be annotated `@Ignore("Remove to run test")` (single test) or `@Ignore("Remove to run tests")` (parametrized test).
51
 > All but the first test in an exercise test suite should be annotated `@Ignore("Remove to run test")` (single test) or `@Ignore("Remove to run tests")` (parametrized test).