CPD Results

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

Duplications

File Line
org/myorg/encconfig/ejb/ENCAuditorEJB.java 27
org/myorg/encconfig/ejb/LookupAuditorEJB.java 27
	@Resource(name="jms/topic")
	private Topic topic;

	@PostConstruct
	public void init() {
		super.setLog(log);
		super.setConnectionFactory(cf);
		super.setEntityManager(em);
		super.setTopic(topic);
		super.setPublishJMS(isPublishJMS());
	}	
	
	@Override
	public boolean isPublishJMS() {
		return publishJMS!=null && publishJMS;
	}
	@Override
	public boolean havePersistenceContext() {
		return em!=null;
	}
	@Override
	public boolean haveTopic() {
		return topic!=null;
	}
	@Override
	public boolean haveConnectionFactory() {
		return cf!=null;
	}
	
	@Override
	public int audit(String message) {
		return super.audit(message);
	}
}
File Line
org/myorg/encconfig/ejb/ENCAuditorEJB.java 31
org/myorg/encconfig/ejb/LookupAuditorEJB.java 31
org/myorg/encconfig/ejb/XMLInjectAuditorEJB.java 21
	public void init() {
		super.setLog(log);
		super.setConnectionFactory(cf);
		super.setEntityManager(em);
		super.setTopic(topic);
		super.setPublishJMS(isPublishJMS());
	}	
	
	@Override
	public boolean isPublishJMS() {
		return publishJMS!=null && publishJMS;
	}
	@Override
	public boolean havePersistenceContext() {
		return em!=null;
	}
	@Override
	public boolean haveTopic() {
		return topic!=null;
	}
	@Override
	public boolean haveConnectionFactory() {
		return cf!=null;
	}
	
	@Override
	public int audit(String message) {
		return super.audit(message);
	}
}
File Line
org/myorg/encconfig/ejb/ENCAuditorEJB.java 32
org/myorg/encconfig/ejb/JNDIAuditorEJB.java 43
org/myorg/encconfig/ejb/LookupAuditorEJB.java 32
org/myorg/encconfig/ejb/XMLInjectAuditorEJB.java 22
		super.setLog(log);
		super.setConnectionFactory(cf);
		super.setEntityManager(em);
		super.setTopic(topic);
		super.setPublishJMS(isPublishJMS());
	}	
	
	@Override
	public boolean isPublishJMS() {
		return publishJMS!=null && publishJMS;
	}
	@Override
	public boolean havePersistenceContext() {
		return em!=null;
	}
	@Override
	public boolean haveTopic() {
		return topic!=null;
	}
	@Override
	public boolean haveConnectionFactory() {
		return cf!=null;
	}
	
	@Override
	public int audit(String message) {
		return super.audit(message);
	}
}