[lsc-changes] r519 - lsc/trunk/src/main/java/org/lsc/utils/output

jclarke at lsc-project.org jclarke at lsc-project.org
Mon Nov 30 21:12:10 CET 2009


Author: jclarke
Date: 2009-11-30 21:12:09 +0100 (Mon, 30 Nov 2009)
New Revision: 519

Modified:
   lsc/trunk/src/main/java/org/lsc/utils/output/LdifLayout.java
Log:
Avoid pointless cast and variable

Modified: lsc/trunk/src/main/java/org/lsc/utils/output/LdifLayout.java
===================================================================
--- lsc/trunk/src/main/java/org/lsc/utils/output/LdifLayout.java	2009-11-30 19:57:41 UTC (rev 518)
+++ lsc/trunk/src/main/java/org/lsc/utils/output/LdifLayout.java	2009-11-30 20:12:09 UTC (rev 519)
@@ -173,12 +173,11 @@
 	 *            is this a new entry
 	 * @return the string to log
 	 */
-	private String listToLdif(final List<?> modificationItems, final boolean addEntry) {
+	private String listToLdif(final List<ModificationItem> modificationItems, final boolean addEntry) {
 		StringBuilder sb = new StringBuilder();
-		List<ModificationItem> items = (List<ModificationItem>) modificationItems;
 		boolean first = true;
 
-		for(ModificationItem mi: items) {
+		for(ModificationItem mi: modificationItems) {
 			Attribute attr = mi.getAttribute();
 			try {
 				if (!addEntry) {



More information about the lsc-changes mailing list