package com.alexrnl.jbetaseries.request.parameters;

/**
 * Parameter which allow to set the note of a show or an episode.<br />
 * @author Alex
 */
public class Note extends Parameter<Integer> {
	/** Name of the note parameter */
	public static final String	PARAMETER_NOTE	= "note";
	
	/**
	 * Constructor #1.<br />
	 * @param note
	 *        the note to set.
	 * @throws IllegalArgumentException
	 *         if the not is outside the range [1;5].
	 */
	public Note (final Integer note) throws IllegalArgumentException {
		super(PARAMETER_NOTE, note);
		if (note < 1 || 5 < note) {
			throw new IllegalArgumentException("The note must be comprise between 1 and 5.");
		}
	}
	
}

@@ -277,16 +277,186 @@
 %22note%22;%0A
+%09/** The minimum note allowed by the API */%0A%09public static final int%09%09NOTE_MIN%09%09= 1;%0A%09/** The maximum note allowed by the API */%0A%09public static final int%09%09NOTE_MAX%09%09= 5;%0A
 %09%0A%09/**%0A%09
@@ -733,21 +733,35 @@
 e %3C 
-1 %7C%7C 5 %3C note
+NOTE_MIN %7C%7C note %3E NOTE_MAX
 ) %7B%0A

Fix Sonar violation: create constants for note min/max