Skip to content

Commit ccbec81

Browse files
committed
Added some class documentation
1 parent 1081ae0 commit ccbec81

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

MyEnum.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package org.json.junit;
22

3+
/**
4+
* An enum with no methods or data
5+
*/
36
public enum MyEnum {
47
VAL1,
58
VAL2,

MyEnumField.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package org.json.junit;
22

3+
/**
4+
* An enum that contains getters and some internal fields
5+
*/
36
public enum MyEnumField {
47
VAL1(1, "val 1"),
58
VAL2(2, "val 2"),

StringsResourceBundle.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
import java.util.*;
44

5+
/**
6+
* A resource bundle class
7+
*/
58
public class StringsResourceBundle extends ListResourceBundle {
69
public Object[][] getContents() {
710
return contents;

TestRunner.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
import org.junit.runner.Result;
55
import org.junit.runner.notification.Failure;
66

7+
/**
8+
* Invoke this class main method if you want to run unit tests from the
9+
* command line. If successful, will print "true" to stdout.
10+
*/
711
public class TestRunner {
812
public static void main(String[] args) {
913
Result result = JUnitCore.runClasses(JunitTestSuite.class);

0 commit comments

Comments
 (0)