CPD Results

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

Duplications

File Line
ejava/ejb/examples/encconfig/ejb/AnnotatedEJB.java 103
ejava/ejb/examples/encconfig/ejb/XMLConfiguredEJB.java 89
			jndi = new InitialContext();
			verify(jndi, "val", "value", value1, value2, value3);
			assert(value1==DEFAULT_VALUE) : "value1 value replaced";
			assert(!value2.equals(""+DEFAULT_VALUE)) : "value2 value not replaced";
			verify(jndi, "jdbc", "ds", ds1, ds2, ds3);
			verify(jndi, "jms", "queue", queue1, queue2, queue3);
			verify(jndi, "jms", "topic", topic1, topic2, topic3);
			verify(jndi, "jms", "cf", cf1, cf2, cf3);
			verify(jndi, "ejb", "ejb", ejb1, ejb2, ejb3, ejb4, ejb5, ejb6, ejb7, ejb8);
			verify(jndi, "jpa", "em", em1, em2, em3);
			verify(jndi, "jpa", "emf", emf1, emf2, emf3);
		} catch (NamingException ex) {
			throw new EJBException(ex);
		} finally {
			if (jndi!=null) {
				try { jndi.close(); }
				catch (NamingException ex) { ex.printStackTrace(); }
			}
		}
	}
}