Skip to content

Commit 1e5fae2

Browse files
kahgohthibault2705
authored andcommitted
Add notes about read only classes (exercism#3095)
- Adds Javadocs to Character and Destination classes in Wizards and Warriors 2 and the Item class in Knapsack to let students working offline know that they are treated as read only by the test runners. - TavelMethod made editable to allow students to experiment with making changes to the enum. Changes in commit does not change outcome of tests. [no important files changed] Resolves exercism#3092
1 parent 006f6cf commit 1e5fae2

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

exercises/concept/wizards-and-warriors-2/.meta/config.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
],
99
"files": {
1010
"solution": [
11-
"src/main/java/GameMaster.java"
11+
"src/main/java/GameMaster.java",
12+
"src/main/java/TravelMethod.java"
1213
],
1314
"test": [
1415
"src/test/java/GameMasterTest.java"
@@ -18,8 +19,7 @@
1819
],
1920
"editor": [
2021
"src/main/java/Character.java",
21-
"src/main/java/Destination.java",
22-
"src/main/java/TravelMethod.java"
22+
"src/main/java/Destination.java"
2323
],
2424
"invalidator": [
2525
"build.gradle"

exercises/concept/wizards-and-warriors-2/src/main/java/Character.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Represents a Character in the game.
3+
*
4+
* NOTE: There is no need to change this file and is treated as read only by the Exercism test runners.
5+
*/
16
public class Character {
27
private String characterClass;
38
private int level;

exercises/concept/wizards-and-warriors-2/src/main/java/Destination.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Represents a Destination.
3+
*
4+
* NOTE: There is no need to change this file and is treated as read only by the Exercism test runners.
5+
*/
16
public class Destination {
27
private String name;
38
private int inhabitants;

exercises/practice/knapsack/.meta/src/reference/java/Item.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Represents an item that can be placed in the knapsack.
3+
*
4+
* NOTE: There is no need to change this file and is treated as read only by the Exercism test runners.
5+
*/
16
class Item {
27

38
// Weight of the item

0 commit comments

Comments
 (0)