Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Comment to discussion types.

  • Loading branch information...
commit f5ede44334fd3a510b0bfa58e50a94c010a6bfae 1 parent b088e1d
@ieb ieb authored
View
7 .../osgikernel/bundles/discussion/src/main/java/org/sakaiproject/kernel/api/discussion/DiscussionTypes.java
@@ -3,6 +3,13 @@
public enum DiscussionTypes {
discussion, comment;
+ // TODO: IMHO, hasValue should not do things like this. We have an enum, and we are
+ // encouraging abuse of the enum since Discssion DiScUsSiOn are all ok, but wont be
+ // searchable, and can't be coerced into the DiscussionType I would rather using
+ // DiscussionTypes.valueOf(string) and catch
+ // the InvalidArgumentException
+
+
public static boolean hasValue(String s) {
DiscussionTypes[] types = values();
for (DiscussionTypes t : types) {
Please sign in to comment.
Something went wrong with that request. Please try again.