diff src/luan/modules/HtmlLuan.java @ 1469:21f5edab1fbf

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 14 Apr 2020 13:15:18 -0600
parents a015a0b5c388
children 36c28be6d432
line wrap: on
line diff
--- a/src/luan/modules/HtmlLuan.java	Tue Apr 14 08:44:33 2020 -0600
+++ b/src/luan/modules/HtmlLuan.java	Tue Apr 14 13:15:18 2020 -0600
@@ -17,10 +17,9 @@
 
 	public static String encode(String s) throws LuanException {
 		Utils.checkNotNull(s);
-		char[] a = s.toCharArray();
+		final char[] a = s.toCharArray();
 		StringBuilder buf = new StringBuilder();
-		for( int i=0; i<a.length; i++ ) {
-			char c = a[i];
+		for( char c : a ) {
 			switch(c) {
 			case '&':
 				buf.append("&amp;");