src/java/org/apache/fulcrum/yaafi/service/reconfiguration/ReconfigurationEntry.java [137:195]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	private boolean isFirstInvocation() {
		return isFirstInvocation;
	}

	/**
	 * @return Returns the location.
	 */
	private String getLocation() {
		return location;
	}

	/**
	 * Creates an InputStream.
	 * 
	 * @return the input stream
	 * @throws IOException the creation failed
	 */
	public InputStream locate() throws IOException {
		return this.locator.locate(this.getLocation());
	}

	/**
	 * Creates a message digest.
	 *
	 * @param is the input stream as input for the message digest
	 * @return the message digest
	 * @throws Exception the creation failed
	 */
	private byte[] getDigest(InputStream is) throws Exception {
		byte[] result = null;
		byte[] content = null;

		// convert to byte array
		content = IOUtils.toByteArray(is);

		MessageDigest sha1 = MessageDigest.getInstance("SHA1");
		sha1.update(content);
		result = sha1.digest();

		return result;
	}

	/**
	 * @param digest The digest to set.
	 */
	private void setDigest(byte[] digest) {
		this.digest = digest;
	}

	/**
	 * Compares two byte[] for equality
	 *
	 * @param lhs the left-hand side
	 * @param rhs the right-hand side
	 * @return true if the byte[] are equal
	 */
	private static boolean equals(byte[] lhs, byte[] rhs) {
		// JDK provided method
		return Arrays.equals(lhs, rhs);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/java/org/apache/fulcrum/yaafi/service/shutdown/ShutdownEntry.java [138:191]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	private boolean isFirstInvocation() {
		return isFirstInvocation;
	}

	/**
	 * @return Returns the location.
	 */
	private String getLocation() {
		return location;
	}

	/**
	 * Creates an InputStream
	 * 
	 * @return InputStream of the location
	 * @throws IOException if unable to open the stream
	 */
	public InputStream locate() throws IOException {
		return this.locator.locate(this.getLocation());
	}

	/**
	 * Creates a message digest
	 * 
	 * @param is Input stream
	 * @return byte array of the input stream
	 */
	private byte[] getDigest(InputStream is) throws Exception {
		byte[] result = null;
		byte[] content = null;

		// convert to byte array
		content = IOUtils.toByteArray(is);

		MessageDigest sha1 = MessageDigest.getInstance("SHA1");
		sha1.update(content);
		result = sha1.digest();

		return result;
	}

	/**
	 * @param digest The digest to set.
	 */
	private void setDigest(byte[] digest) {
		this.digest = digest;
	}

	/**
	 * Compares two byte[] for equality
	 */
	private static boolean equals(byte[] lhs, byte[] rhs) {
		// JDK provided method
		return Arrays.equals(lhs, rhs);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



