package plugins.CENO;

import java.util.EnumSet;

import plugins.CENO.FreenetInterface.FreemailAPI.Freemail;

public class CENORequest extends Freemail {

	public enum CENOReqFlags {
		X_Ceno_Rewritten
	}

	private EnumSet<CENOReqFlags> reqFlags;

	public CENORequest(Freemail freemail) {
		super(freemail.getFreemailFrom(), freemail.getFreemailTo(), freemail.getSubject(), freemail.getBody());
	}

	public CENORequest(Freemail freemail, EnumSet<CENOReqFlags> reqFlags) {
		this(freemail);
		this.reqFlags = reqFlags;
	}

	public CENORequest(String freemailFrom, String[] freemailTo, String subject, String body) {
		super(freemailFrom, freemailTo, subject, body);
	}

	public CENORequest(String freemailFrom, String[] freemailTo, String subject, String body, EnumSet<CENOReqFlags> reqFlags) {
		this(freemailFrom, freemailTo, subject, body);
		this.reqFlags = reqFlags;
	}

	public EnumSet<CENOReqFlags> getReqFlags() {
		return reqFlags;
	}
}

package plugins.CENO;

import plugins.CENO.FreenetInterface.FreemailAPI.Freemail;

public class CENORequest extends Freemail {

	private CENOReqFlags[] reqFlags;

	public CENORequest(Freemail freemail) {
		super(freemail.getFreemailFrom(), freemail.getFreemailTo(), freemail.getSubject(), freemail.getBody());
	}

	public CENORequest(Freemail freemail, CENOReqFlags[] reqFlags) {
		this(freemail);
		this.reqFlags = reqFlags;
	}

	public CENORequest(String freemailFrom, String[] freemailTo, String subject, String body) {
		super(freemailFrom, freemailTo, subject, body);
	}

	public CENORequest(String freemailFrom, String[] freemailTo, String subject, String body, CENOReqFlags[] reqFlags) {
		this(freemailFrom, freemailTo, subject, body);
		this.reqFlags = reqFlags;
	}

	public CENOReqFlags[] getReqFlags() {
		return reqFlags;
	}
	
	public enum CENOReqFlags {
		X_Ceno_Rewritten
	}
}

--- 
+++ 
@@ -1,16 +1,22 @@
 package plugins.CENO;
+
+import java.util.EnumSet;
 
 import plugins.CENO.FreenetInterface.FreemailAPI.Freemail;
 
 public class CENORequest extends Freemail {
 
-	private CENOReqFlags[] reqFlags;
+	public enum CENOReqFlags {
+		X_Ceno_Rewritten
+	}
+
+	private EnumSet<CENOReqFlags> reqFlags;
 
 	public CENORequest(Freemail freemail) {
 		super(freemail.getFreemailFrom(), freemail.getFreemailTo(), freemail.getSubject(), freemail.getBody());
 	}
 
-	public CENORequest(Freemail freemail, CENOReqFlags[] reqFlags) {
+	public CENORequest(Freemail freemail, EnumSet<CENOReqFlags> reqFlags) {
 		this(freemail);
 		this.reqFlags = reqFlags;
 	}
@@ -19,16 +25,12 @@
 		super(freemailFrom, freemailTo, subject, body);
 	}
 
-	public CENORequest(String freemailFrom, String[] freemailTo, String subject, String body, CENOReqFlags[] reqFlags) {
+	public CENORequest(String freemailFrom, String[] freemailTo, String subject, String body, EnumSet<CENOReqFlags> reqFlags) {
 		this(freemailFrom, freemailTo, subject, body);
 		this.reqFlags = reqFlags;
 	}
 
-	public CENOReqFlags[] getReqFlags() {
+	public EnumSet<CENOReqFlags> getReqFlags() {
 		return reqFlags;
 	}
-	
-	public enum CENOReqFlags {
-		X_Ceno_Rewritten
-	}
 }
Replace CENOReqFlags array with an EnumSet
