CPD Results

The following document contains the results of PMD's CPD 4.2.5.

Duplications

FileLine
com\trendmicro\grid\acl\l0\datatypes\FileInformation.java84
com\trendmicro\grid\acl\l0\datatypes\PackageInformation.java82
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public List<String> getTags() {
		if (tags == null) return Collections.emptyList();
		return Arrays.asList(tags);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void setTags(List<String> tags) {
		this.tags = tags == null || tags.isEmpty() ? null : tags.toArray(new String[tags.size()]);

		if (this.tags != null) StringCaches.getInstance().getTagsStringCache().toSharedStrings(this.tags);

		tagsAreSorted = false;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean containsTag(String tag) {
		if (tagsAreSorted && tags != null)
			return Arrays.binarySearch(tags, tag) >= 0;
		return getTags().contains(tag);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void sortTags() {
		if (tags != null)
			Arrays.sort(tags);
		tagsAreSorted = true;
	}

	public String getDisplayName() {